在SharePoint应用程序上执行负载测试时,它显示WinAuth的错误,如何解决? [英] While performing load testing on SharePoint app, it shows error for WinAuth, how to resolve it?

查看:210
本文介绍了在SharePoint应用程序上执行负载测试时,它显示WinAuth的错误,如何解决?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在JMeter中记录了该脚本,并且在对其进行验证时,它为winauth/sso抛出了错误,以及如何解决它.我的应用程序具有oAuth,我必须对其进行身份验证.

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.

我正在运行WinAuth脚本,它以红色突出显示,并且在响应正文"下显示未经授权" 我添加了HTTP Cookie管理器(在jmeter.properties中检查CookieManager.save.cookies = true),HTTP授权管理器.[在下面添加图像以进行验证]

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]

  • 我也无法查看Token_id.

图片:

1.显示winAuth sso错误

1. showing winAuth sso error

2.显示所有参数及其各自的值.

2. showing all parameters with its respective values.

推荐答案

您必须至少执行三个步骤:

You have to do at least three steps:

  1. 添加 HTTP Cookie管理器(并检查 jmeter.properties中的CookieManager.save.cookies = true)
  2. 添加 HTTP授权管理器
  3. 使用正则表达式提取器从第一个请求中提取身份验证令牌(从登录页面)并将其发送到第二个请求.
  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

这篇关于在SharePoint应用程序上执行负载测试时,它显示WinAuth的错误,如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆