I have recorded scripts for all test cases, and run all test cases due to the OAuth 2.0 it is failing all of the test cases.
Now I have to authenticate OAuth 2.0 in JMeter, I have following information:
client_id, response_mode, protectedtokena, response_type, resources, scope, nonce,redirect_uri,wsucxt, cobrandid, client-request-id
.
Add (or parametrize) parameter
Authorization
in your HTTP Header Manager. AddBearer ${AuthToken}
value. You should parse that token from previouse request.Check this guide about How to parse auth token
来源:https://stackoverflow.com/questions/54401892/how-to-authorise-with-oauth-2-0-in-jmeter-having-sharepoint-online-app