passing authorization token to subsequent request using JSON extractor in jmeter. I have 2 requests
- Token
- Get Policy Scenario : Generate the token and pass that token in header of 'Get Policy' request.
I have generated token and extracted using JSON extractor (name of the variable is TOKEN) and Using Debug sampler i verified that bearer token is extracted. after that i added 'HTTP Header Manager' to the next request. and added Authorization there like
Name = Authorization and Value = ${TOKEN}.
Getting 'Unauthorized access running the script while running the script for second (Get Policy) request.
