jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Layton, Andrew" <>
Subject RE: Regular Expression
Date Tue, 20 Jun 2006 15:10:38 GMT
Try this lot: 

Name: PersonID

ReferenceName: PersonID

Regular Expression: name=\"ResourceID\" value=\"(\d+)

Template: $1$

Match N0. : 1

I presume that Resource ID will only be numeric.

Andrew Layton
Test Automation Consultant
-----Original Message-----
From: Massimo Forno [] 
Sent: 20 June 2006 15:18
To: JMeter Users List
Subject: Regular Expression



I'd like to know if I'm working correctly with RegEx.


I've to get an ID form the HTT Response and HTTP the code is (
name="ResourceID" value="300187") and the value changes every time the
request is performed.


I've been defined a Post Processor --> Regular Expression Extractor as


Name: PersonID

ReferenceName: PersonID

Regular Expression: name="ResourceID" value="(.+?)"

Template: $0$

Match N0. : 0

Default Value:


and I've inserted that element as a child of the sampler getting the
Response where I'd like to extract the ID.


The problem is that in the next sampler (the following) using as a Post
parameter for ResourceID the reference name ${PersonID} ,  JMeter send
as a parameter the Reference name (${PersonID) instead of the value.


Thank for the help,




This e-mail and the documents attached are confidential and intended
solely for the addressee; it may also be privileged. If you receive this
e-mail in error, please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos Origin group
liability cannot be triggered for the message content. Although the
sender endeavours to maintain a computer virus-free network, the
sender does not warrant that this transmission is virus-free and will
not be liable for any damages resulting from any virus transmitted. 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message