Your "ID" value is utterly like to be a GUID
<https://en.wikipedia.org/wiki/Universally_unique_identifier> so you can
extract it using Regular Expression Extractor
<http://jmeter.apache.org/usermanual/component_reference.html> configured
like:
1. Reference Name: anything meaningful, i.e. *id*
2. Regular Expression:
*([A-Fa-f0-9]{8}[\-][A-Fa-f0-9]{4}[\-][A-Fa-f0-9]{4}[\-][A-Fa-f0-9]{4}[\-]([A-Fa-f0-9]){12})*
3. Template: *$1$*
4. Match No: if you have >1 IDs in the response and you would like to have
them all - use *-1*. If you want a random one - use *0*. If you want the
first one - use *1*, etc.
See Using RegEx (Regular Expression Extractor) with JMeter
<https://guide.blazemeter.com/hc/en-us/articles/207421325-Using-RegEx-Regular-Expression-Extractor-with-JMeter>
article for more information if needed.
--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]