Reputation: 445
I recorded the .JMX script in Jmeter and one of the request is as below
POST http://www.hello.com/auth/nqa/md/login
Body data: {"domainId":"nqa","code":"12345skdkdk"}
I would like to send the "code" field dynamically and for that I added the regular expressing extractor as below enter image description here
When i re run the script , the code value is not replaced with the dynamic value.
Not sure what part i am missing in the regular expression extractor or in the Body data field
Upvotes: 4
Views: 10874
Reputation: 127
you should do three-step of below
Define random variable name . in this case we set variable name to code1 and set min & max value to this
Upvotes: 10
Reputation: 168002
domainId
, nqa
, code
or 12345skdkdk
. Going forward if you need to get some dynamic data from JSON go for JSON Extractor or JSON JMESPath ExtractorUpvotes: 3