jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ZK <stevesenio...@gmail.com>
Subject Re: changing variable in recording jmeter
Date Tue, 13 Nov 2012 16:27:27 GMT
Hi,
cool... you are nearly there (actually your reg
Ex works for me!!!), so.... try this (from your original example):

Regular Expression Extractor Settings:

Reference Name : yourVar
Regular Expression : <div class="textOptionView" style="white-space:
nowrap;">(.+?)</div>
Template : $1$
Match No. : 1
Default Value: NOT_FOUND



The regular expression extractor needs to be CHILD of the HTTP Sampler that
receives the response that has the value you are after 

Also try adding a DEBUG Sampler after the HTTP Sampler (Jmeter properties
=false; Jmaeter variable =true; System properties = false)

Also have a 'View Response Tree'' in the root of your test plan
You can then check what value yourVar has after the test has ran in the
'View Response Tree'


ZK






--
View this message in context: http://jmeter.512774.n5.nabble.com/changing-variable-in-recording-jmeter-tp5715303p5715308.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Mime
View raw message