In 2.2 (and previously), PostProcessors are run in reverse order -
don't know why this was the case.

This will be fixed in the next release.

S///
On 24/04/07, aurel' <[EMAIL PROTECTED]> wrote:

Hi sebb-2,

I've got some news :
I suspect my problem to be linked with the JMeter GUI behavior.

Here a more detailed description of my testing scenario :
1. [Parent node] The URL string I want to parse with RE is generated by a
Java class implementing the JavaSamplerClient interface. The URL is returned
thanks to the setResponseData() and setResponseMessage() methods.
The URL string is NEVER the same, but the 'template' is.

Then, I'm using RE to extract some significant data from the URL :
1.1. Protocol :
- variable : protocol
- regular expression : (.*)://
- template : $1$
- num : 1
-default : UNKNOWN

1.2. Host :
- variable : host
- regular expression : ${protocol}://(.*):.*
- template : $1$
- num : 1
-default : UNKNOWN

2. Extracted values are reinjected in the parameters of an HTTP-GET request
:
http://...?protocol=${protocol}&host=${host}

With this configuration, the sent request is :
http://...?protocol=https&host=UNKNOWN

If I reverse the order of value extraction (steps 1.1 & 1.2), the sent
request is :
http://...?protocol=https&host=idp1


I believe that RE operations are 'reverse executed'.
Can someone confirm this?

Aurel'




sebb-2 wrote:
>
> On 23/04/07, aurel' <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I want to extract the protocol name of a URL with a regular expression :
>> ex : https://www.test.com => https
>>
>> I'm using the regular expression extractor of JMeter 2.2 to assign a
>> variable :
>> - variable : testVar
>> - regular expression : (.*)://.*
>
> The trailing .* is unnecessary and should be removed.
>
>> - template : $1$
>> - num : 1
>
> Set the default Value to something like "NOTFOUND" so you can tell if
> the problem is in the matching or elsewhere.
>
>> With this configuration, testVar is not assigned.
>>
>> But, if I modify the template parameter like this :
>> - template : $1$---
>> testVar is assigned with 'https---'
>>
>> Rq : the same result occurs also with JMeter 2.1
>>
>> I cannot explain this behaviour.
>
> Nor can I.
>
>> Can you help me?
>
> Are you absolutely sure that you are applying the RE to the same data?
>
>> Aurel'
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Regular-expression-tf3632255.html#a10142129
>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> 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]
>
>
>

--
View this message in context: 
http://www.nabble.com/Regular-expression-tf3632255.html#a10158261
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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]

Reply via email to