You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by ZK <st...@gmail.com> on 2012/11/13 13:38:43 UTC

Re: changing variable in recording jmeter

Hi,
you need to use the  regular expression extractor
<http://jmeter.apache.org/usermanual/component_reference.html#Regular_Expression_Extractor>  
(post processor)


ZK



--
View this message in context: http://jmeter.512774.n5.nabble.com/changing-variable-in-recording-jmeter-tp5715303p5715304.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


Re: changing variable in recording jmeter

Posted by ZK <st...@gmail.com>.
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


Re: changing variable in recording jmeter

Posted by ZK <st...@gmail.com>.
Hi,
as previously mentioned use the regular expression extractor


ZK



--
View this message in context: http://jmeter.512774.n5.nabble.com/changing-variable-in-recording-jmeter-tp5715303p5715306.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