I was testing some REST endpoint with JMeter. Each request requires access_token
for calling any of this API. My access tokens are in a CSV file, for removing duplication I've used a test fragment Request Header
in this test fragment I've read the CSV file and initialized HTTP Header Manager
using the access token. Later imported the Request Header
test fragment in each request with Module Controller
. But for those request test fragment HTTP Header Manager
is not inheriting from Request Header
and shows
{
"message": "Missing Authorization Header"
}
But if I use this HTTP Header Manager
in each request individually it works fine. Yeah, I can continue with duplication but need to remove those duplications.
Structure of my test plan