by This article talks about how to test OAuth API's using JMeter There are two major steps involved in OAuth testing: Request for Token.

Name it as "Demo Group" Right-Click the "Thread Group" --> Add --> Sampler --> HttpRequest Add Request details and "Save" Add "View Result Tree" & "JSON Token Extrator" Now add the JSON Path Expression where you can find the token (from View Result tree --> Response). This is my response in "View Result Tree".

Step 2: Pass that Token to the Subsequent API's a) Follow the same Step above to create an HTTP Request and add the second API b) Add "HTTP Message Header" and "View Result Tree" c) Now Add the token value which you got in Step 1 - e as ${C_Token}

Related Articles