Reputation: 7204
How can I create variable from a response data?
I want to create variable n1 which will get the value from variable v1, because v1 is dynamic variable.
Response part:
q=q.replace("v1=2780");
Upvotes: 1
Views: 3384
Reputation: 7707
Can you clarify your question a little? is "v1" a JMETER variable, or a variable in the program you are testing?
It sounds like you want to use a regular expression to extract the value of v1 and save the results as jmeter variable n1.
http://jmeter.apache.org/usermanual/component_reference.html#Regular_Expression_Extractor
Upvotes: 2