Reputation: 1
How to extract a token value which is available only in Inspect elements-> Application (Not in Inspect Elements-> Network) thru Jmeter?
Upvotes: -1
Views: 1663
Reputation: 168157
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:
Upvotes: 1
Reputation: 1841
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
Upvotes: 1