On 03/04/06, Kornelis Sietsma <[EMAIL PROTECTED]> wrote:
> I did it eventually with a BeanShell function - and I've remembered why
> I have a love/hate relationship with Jmeter in the past - it's great
> when it works, but when something breaks, it has some of the worst error
> messages in the world...
Please file bugs for ones that are not clear.
> I'm sure there are cleaner ways to do this, but what I did was:
> - Create a beanshell init file (for a single point for global bean shell
> functions)
> - Add a function to this file:
> fixAmps(s) {
> return new String(s).replaceAll("&","&");
> }
>
> - In my request, assuming the regexp containing my parameters is FOOBAR,
> set the Path to:
> /myquery.do${__BeanShell(fixAmps("${FOOBAR}"))}
>
> I tried this first in Javascript, but got so many meaningless error
> messages I gave up and tried BeanShell, which I could at least put
> neatly in a stand-alone file.
The errors were probably because of unescaped commas...
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]