Reputation: 17
JMeter path contents some dynamically generated value. Eg
[HTTP Request]
[path-home/user?p=er3562]
This "p" value is dynamically generated. I want to get this parameter value in the first HTTP request path. This parameter value should pass through each HTTP request path.
I am new to JMeter. Please help me to solve this?
Upvotes: 1
Views: 2941
Reputation: 168002
You need to extract it somehow and convert into a JMeter Variable for later reuse. JMeter provides several PostProcessors for extracting data from different responses types, in your case the most suitable one will be Regular Expression Extractor.
path-home/user?p=er3562
valueConfigure it as follows:
Main sample and sub-samples
Body
but in your case it may be i.e. URL
path-home
path-home/user\?p=er(\d+)
$1$
Refer extracted value as ${path-home}
where required.
References and tips:
Upvotes: 1
Reputation: 2311
By using correlation concept , regular expression extractor concept & try this key p=er(.*?)
Upvotes: 0