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

Deadly 提交于 2019-12-08 06:30:58

问题


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]

  • I'm not able to view the Token_id also.

Images:

1. showing winAuth sso error

2. showing all parameters with its respective values.


回答1:


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



来源:https://stackoverflow.com/questions/54211607/while-performing-load-testing-on-sharepoint-app-it-shows-error-for-winauth-how

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!