How to extract a token value which is available only in Inspect elements-> Application (Not in Inspect Elements-> Network) thru Jmeter?
Asked
Active
Viewed 726 times
2 Answers
1
The access token value is available in the response headers. You can use a post-processor element to extract the access token from the header.
Here is an example to extract the access token using a Regular Expression Extractor Post-processor

Janesh Kodikara
- 1,670
- 1
- 12
- 23
1
It comes as a Cookie so the easiest way to extract it is to:
Add HTTP Cookie manager to your Test Plan
Add the next line to user.properties file (lives in "bin" folder of your JMeter installation)
CookieManager.save.cookies=true
Restart JMeter to pick the change from point 2
Once done you should be able to access the token as
${COOKIE_accesstoken}
where required
More information:

Dmitri T
- 159,985
- 5
- 83
- 133