If you did not mind the extra samples, you could add a Java Sampler to exercise the _javascript function.
If the function returned any information, this could be put into whatever response field you wanted, and it would then show up in the log and listeners. Maybe we need a post-processor to exercise functions / dump variables. S. -----Original Message----- From: Michael Stover [mailto:[EMAIL PROTECTED] Sent: 11 June 2004 14:52 To: JMeter Users List Subject: Re: JS Function - where to put it? I imagine what you'd really like to be able to do is write ${__javascript($1$)} in the regex's template field. But, I bet that wouldn't work. Too bad - I may have to do something about that. Otherwise, the normal solution is to put the function in the first place you want to use it, but that would be outside of controller one, making your test maintenance more difficult... If you could find a place in your Assertion for the function to live, that should work, because assertions go after post-processors. -Mike Then, put your On Fri, 2004-06-11 at 09:15, Casadonte, Joe wrote: > I need to use the _javaScript function, but I can't figure out where to put > it. I have: > > Simple Controller One > Sampler One > Sampler Two > Assertion > Regex Extractor > Simple Controller Two > Sampler Three > Sampler Four > > I would like to run the java script code on the results of the Regex > Extractor. I like to group samplers by controllers to facilitate moving > things around or deleting branches of the test and so forth, so I'd like to > keep the JS function call inside of Simple Controller One. I think what I'm > after is a new element of some kind that simply executes a function, at a > specific point. Otherwise, I think I need to use.....something....after the > Regex Extractor. But what? I'm afraid after re-reading the scoping rules > that a config element or a pre-processor as a child of Sampler Two would > execute before Sampler Two. None of the post-processor elements look like > they could be helpful, in terms of giving me a place to stick a function, > and in any event, I'm not sure how to guarantee that it runs after the Regex > Extractor. Any ideas? Thanks! > > -- > Regards, > > > joe > Joe Casadonte > [EMAIL PROTECTED] > > 1016 West Ninth Avenue > King of Prussia, PA 19406 > 610-491-9881 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover <[EMAIL PROTECTED]> Apache Software Foundation --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___________________________________________________________________________ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. ___________________________________________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

