I have a JMeter script which tests around 25 different REST API's (this is not a load test but API functional test). All these API's require an OAuth based access token which I generate at the start of the test and save in a variable which is then used by all the subsequent API calls.
The issue is that the expiry of a token is 10 mins and if the test exceeds that duration then rest of the calls fail with 401. Is there a way by which I can repeat the first call I made repeatedly after 5 mins so that a fresh access token is always available? Thanks.
Not sure of this image will help but the opentokenID call generates the access token followed by all other calls which use it. I want to know if there is some mechanism to re-execute opentokenId call in the middle of tests so as to get a new access token.