Great, I got it! Using the __log function I figured I had to enclose
the whole regex function in double quotes.
Thanks again
On Tue, May 27, 2008 at 3:48 PM, sebb <[EMAIL PROTECTED]> wrote:
> On 27/05/2008, David Wouters <[EMAIL PROTECTED]> wrote:
>> Thanks sebb, I don't know how I didn't see that. However I still can't
>> get this to work... :(
>>
>> With the beanshell method, here is what I'm putting in the "Path"
>> field of the HTTP sampler:
>>
>>
>> ${__BeanShell(fixAmps(${__regexFunction(url><!\\[CDATA\\[http://(.+?):(.+?)/(.*?)\\]\\],$3$,1)}))}
>>
>> but then the results are as if I left the path field empty. I've tried
>> escaping the , characters but then the HTTP sampler won't execute at
>> all.
>>
>> (BTW I did update the jmeter.properties file and if I put a dummy
>> string as fixAmp's argument, it works fine.)
>>
>
> Try replacing __BeanShell with __log
>
> This will log the parameter, and return it unchanged to the sampler,
> so you can see if you are passing the correct data to BeanShell.
>
> Alternatively, add some debug print statements to fixAmps().
>
>> I've tried the jexl method too, but with no better results...
>>
>> Any ideas? Thanks
>>
>>
>>
>> On Tue, May 27, 2008 at 12:41 PM, sebb <[EMAIL PROTECTED]> wrote:
>> >
>> > On 27/05/2008, David Wouters <[EMAIL PROTECTED]> wrote:
>> > > Hi all, here is my situation:
>> > >
>> > > I have a test plan with two samplers. The first one is a Webservice
>> and the
>> > > second one is an HTTP sampler. The URL use for the http sampler is
>> extracted
>> > > from the WS response using a regex. My problem is that the WS's
>> response
>> > > content has its special characters replaced with codes. For exemple,
>> instead
>> > > of the url...
>> > >
>> > > http://www.mysite.com/index.jsp?arg=test&arg2=test2
>> > >
>> > > I get...
>> > >
>> > > http://www.mysite.com/index.jsp?arg=test&arg2=test2
>> > >
>> > > and that doesn't work.
>> > >
>> > > Any ideas how to fix this? Thanx.
>> > >
>> >
>> > http://wiki.apache.org/jakarta-jmeter/EscapedURLs
>> >
>>
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]