jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Eade <se...@backstagetech.com.au>
Subject Re: regexFunction
Date Thu, 12 Dec 2002 10:11:14 GMT
I still had a copy of the jmx file that didn't work, after re-examination I
have realised that there were a bunch of image file retrievals between the
two http requests that will obviously have impacted the data on which the
regex was running.  My mind had simply been ignoring the images, believing
they were not material to the flow of the script.  When I moved the two
requests out of the Recording Controller they were then next to one and
other and hence the function worked.

To be sure, I have confirmed the correct behaviour when a Recording
Controller exists as a parent to the two HTTP Request.

To summarise: All is well, I screwed up.

Cheers,

Scott
-- 
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au
AIM: seade@mac.com

> From: "Mike Stover" <mstover1@apache.org>
> Reply-To: "JMeter Users List" <jmeter-user@jakarta.apache.org>
> Date: Thu, 12 Dec 2002 04:22:57 -0500
> To: JMeter Users List <jmeter-user@jakarta.apache.org>
> Subject: Re: regexFunction
> 
> Yeow, I looked at the Recording Controller, and I can't see anything that
> would be 
> a problem.  What???  This makes no sense.
> 
> -Mike
> 
> On 12 Dec 2002 at 20:23, Scott Eade wrote:
> 
>> Okay, I have managed to make it work.
>> 
>> The problem was the Recording Controller that was the parent of the HTTP
>> Requests.  I included it in the original post just in case it was relevant
>> and it turns out that it was.  It existed because I originally recorded the
>> script using the proxy.  Now that I am manipulating the script by hand I
>> have moved the requests out of the Recording Controller and the regex
>> functions now work.
>> 
>> Thanks for your help Mike.
>> 
>> Scott
>> -- 
>> Scott Eade
>> Backstage Technologies Pty. Ltd.
>> http://www.backstagetech.com.au
>> 
>> 
>>> From: Scott Eade <seade@backstagetech.com.au>
>>> Reply-To: "JMeter Users List" <jmeter-user@jakarta.apache.org>
>>> Date: Thu, 12 Dec 2002 20:05:59 +1100
>>> To: JMeter Users List <jmeter-user@jakarta.apache.org>
>>> Subject: Re: regexFunction
>>> 
>>> Nah, I mistyped it in the email message.
>>> 
>>> I have been using the Function Helper Dialog with the same result.
>>> 
>>> Any other suggestions?
>>> 
>>> Scott
>>> -- 
>>> Scott Eade
>>> Backstage Technologies Pty. Ltd.
>>> http://www.backstagetech.com.au
>>> 
>>>> From: "Mike Stover" <mstover1@apache.org>
>>>> Reply-To: "JMeter Users List" <jmeter-user@jakarta.apache.org>
>>>> Date: Thu, 12 Dec 2002 03:48:35 -0500
>>>> To: JMeter Users List <jmeter-user@jakarta.apache.org>
>>>> Subject: Re: regexpFunction
>>>> 
>>>> Could it be that you are using "__regexpFunction" when the name is actually
>>>> "__regexFunction"?  (ie, no 'p').  At first, I thought it was just a typo
>>>> in
>>>> your email, 
>>>> but I noticed you did it twice....
>>>> 
>>>> Using the Function Dialog Helper would avoid such problems too.
>>>> 
>>>> -Mike
>>>> 
>>>> On 12 Dec 2002 at 16:56, Scott Eade wrote:
>>>> 
>>>>> I can't for the life of me get a regexp function to work.  Here is what
I
>>>>> have set up:
>>>>> 
>>>>> JMeter version: cvs head
>>>>> JDK: 1.4.0_01
>>>>> 
>>>>> Test Plan
>>>>>   Thread Group
>>>>>     Recording Controller
>>>>>       HTTP Request 1: Output includes numerous anchor elements
>>>>>       HTTP Request 2 (POST): Sends a parameter thus:
>>>>>         Name: parm1
>>>>>         Value: ${__regexpFunction(<a href=(.*)>,$1$,1,,,)}
>>>>>         Encode: No
>>>>> 
>>>>> This is a contrived example based on Mike's original posting of the regexp
>>>>> functionality, the real expression I would like to execute is quite
>>>>> different.  My problem is that I cannot get this to work - the result
is
>>>>> always empty (i.e. The query data always shows "parm1=" rather than
>>>>> "parm1=_some_value_found_by_the_regexp_function_").
>>>>> 
>>>>> Any assistance you can provide with making this work would be greatly
>>>>> appreciated.
>>>>> 
>>>>> Cheers,
>>>>> 
>>>>> Scott
>>>>> -- 
>>>>> Scott Eade
>>>>> Backstage Technologies Pty. Ltd.
>>>>> http://www.backstagetech.com.au
>>>>> 
>>>>> 
>>>>> 
>>>>> --
>>>>> To unsubscribe, e-mail:
>>>>> <mailto:jmeter-user-unsubscribe@jakarta.apache.org>
>>>>> For additional commands, e-mail:
>>>>> <mailto:jmeter-user-help@jakarta.apache.org>
>>>>> 
>>>> 
>>>> 
>>>> 
>>>> --
>>>> Michael Stover
>>>> mstover1@apache.org
>>>> Yahoo IM: mstover_ya
>>>> ICQ: 152975688
>>>> AIM: mstover777
>>>> 
>>>> --
>>>> To unsubscribe, e-mail:
>>>> <mailto:jmeter-user-unsubscribe@jakarta.apache.org>
>>>> For additional commands, e-mail:
>>>> <mailto:jmeter-user-help@jakarta.apache.org>
>>>> 
>>> 
>>> 
>>> --
>>> To unsubscribe, e-mail:
>>> <mailto:jmeter-user-unsubscribe@jakarta.apache.org>
>>> For additional commands, e-mail:
>>> <mailto:jmeter-user-help@jakarta.apache.org>
>>> 
>> 
>> 
>> --
>> To unsubscribe, e-mail:   <mailto:jmeter-user-unsubscribe@jakarta.apache.org>
>> For additional commands, e-mail: <mailto:jmeter-user-help@jakarta.apache.org>
>> 
> 
> 
> 
> --
> Michael Stover
> mstover1@apache.org
> Yahoo IM: mstover_ya
> ICQ: 152975688
> AIM: mstover777
> 
> --
> To unsubscribe, e-mail:   <mailto:jmeter-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:jmeter-user-help@jakarta.apache.org>
> 


--
To unsubscribe, e-mail:   <mailto:jmeter-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jmeter-user-help@jakarta.apache.org>


Mime
View raw message