1

I have recorded JMeter script for a website.

One of the HTTP request is the below screenshot where a refresh_token is already set as a hard-coded parameter when I recorded the script first time. This HTTP request uses this refresh token to post a request and obtain an access token and the access token is used in the subsequent API requests.

enter image description here

My problem is, the refresh token expires after 24 hours and since this refresh token is not obtained as a response from any of the previous HTTP requests, I am unsure how to use a regex extractor to corelate it.

Any help would be appreciated.

1
  • If I were you, I would ask the developer to provide a test API that will return the token. Commented Feb 12, 2021 at 2:39

1 Answer 1

1

The access token is something you're getting as the result of the OAuth 2.0 authorization code flow

It's not a single request, it's a series of requests which you need to implement somehow:

enter image description here

the options are in:

More information: How to Run Performance Tests on OAuth Secured Apps with JMeter

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.