ID

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ID

Puneet Varma
I am creating multiple record and it generate ID as follows:
{1A5993BC-F381-3888-C089-3E7B5DFFAEEB}

I would like to capture all of the id when I create a new record and able
to use it in the csv file and go to another screen to approve the record
based on the IDs.  Anyway to do this?

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: ID

glinius@live.com
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: [hidden email]
For additional commands, e-mail: [hidden email]