Reputation: 117
We currently employ a non-standard authentication method and provide that in our authorization header for requests.
Due to this, we're at a bind with using a software such as JMeter. I've done some digging but we have no experience in this area.
What would be the best way to move forward with this?
Upvotes: 2
Views: 227
Reputation: 168002
There are several workarounds:
Upvotes: 2
Reputation: 34516
The approach to do that is to use JSR223 Sampler with Groovy.
JMeter exposes:
You'll get a value using:
vars["varName"]
and store new variable using:
vars.put("newVarName", newVarThatYouComputeInGroovy);
You can then use the variables as:
${newVarName}
If you need to use content from a Request/ Response you can use extractors and export them to variables:
Upvotes: 1