So I have the following response after login:
Response Data: {"status":"ok","userId":"GTBA6520506207","token":"74bb0ba8be426d50"}
Request type : POST
I need to form my Regular expression extractor. What should be the parameters? I am using the following:
Reference name : token
Regular expression : "$token":"(.+?)"
Template: $1$.
Sample Request header:
Request Headers:
Connection: keep-alive
Referer: ****************/
Accept-Language: en-US,en;q=0.5
X-Token: 59d7ff6833495fcc
X-User-Id: R1RCQTY1MjA1MDYyMDc=
DNT: 1
Accept-Encoding: gzip, deflate, br
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
Accept: application/json, text/plain, */*
Host: **************
The token changes on each login for the login page in Jmeter but for all the other pages the token remains the same and it is not changing. What should I do to solve that?
Jmeter Results Tree:
Login Page - (Token changes on each Jmeter run)
Page 1 Page 2 & Page 3 - Token remains the same.
Thank you