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]