sharepoint-onlinesharepoint-2016jmeter-5.0

While performing load testing on SharePoint app, it shows error for WinAuth, how to resolve it?


I have recorded the script in JMeter, and while validating it, it is throwing an error for the winauth/sso, how to resolve it. my app has oAuth and me have to authenticate it.

I'm running the script for WinAuth, it gets highlighted in red color and under Response Body, it is displaying "Unauthorized" I have added the HTTP Cookie Manager (check CookieManager.save.cookies=true in jmeter.properties), HTTP Authorization Manager.[images are added down the below for verification purpose]

Images:

1. showing winAuth sso error

showing winAuth sso error

2. showing all parameters with its respective values.

 showing all parameters with its respective values.


Solution

  • You have to do at least three steps:

    1. Add HTTP Cookie Manager (and check CookieManager.save.cookies=true in jmeter.properties)
    2. Add HTTP Authorization Manager
    3. Using the Regular Expression Extractor extract Authentification token from the first request (from login page) and send it to the second requests.

    See that article to get ideas about how to use the Regular Expression Extractor to extract authentication token https://dzone.com/articles/how-to-load-test-saml-sso-secured-websites-with-jm