I know that it is possible to add some constant headers in http protocol, but I can’t find a way to add them in scenario.
scenario(“some scenario”) .exec(landingRequest) .exec(authRequest) .exec(verifyUserRequest) .exec(verifyPasswordRequest) //at this moment auth id is received which should be used in all following requests .exec(userActionRequest)
Is there any option to automatically add header in the middle of scenario?
In jmeter i could use configuration bloc and in LR there was a function web_add_autoheader and another function to remove header.
Auth requests are part of the load test, so I don’t want to move them to separate function to use it in protocol.
Authentication is just an example, there are some other cases when i want something like auto header function.