简体   繁体   English

jmeter不捕获/记录窗口认证凭证窗口

[英]jmeter not capturing/recording windows authentication credential window

jmeter https test script recorder not capturing/recording windows authentication credential window (may be NTLM) , it is bypassing the window always.. I need to record/capture the username and password. jmeter https测试脚本记录器未捕获/记录Windows身份验证凭据窗口(可能是NTLM),它始终绕过该窗口。我需要记录/捕获用户名和密码。 Please let me know how to resolve the issue? 请让我知道如何解决该问题?

Windows security authentication Windows安全认证

As per the Jmeter documentation "When looking for a match against a URL, JMeter checks each entry in turn, and stops when it finds the first match. Thus the most specific URLs should appear first in the list, followed by less specific ones. Duplicate URLs will be ignored. If you want to use different usernames/passwords for different threads, you can use variables. These can be set up using a CSV Data Set Config Element." 按照Jmeter文档的说明:“当寻找与URL的匹配项时,JMeter依次检查每个条目,并在找到第一个匹配项时停止。因此,最具体的URL应该首先出现在列表中,然后是不太具体的URL。重复URL将被忽略。如果您想为不同的线程使用不同的用户名/密码,则可以使用变量。可以使用CSV数据集配置元素进行设置。”

The above explanation clearly explains that credentials can be parametrized. 上面的解释清楚地说明了凭据可以参数化。

JMeter will not be able to capture this window as it doesn't really generate a HTTP Request . JMeter将无法捕获此窗口,因为它实际上不会生成HTTP请求 When you enter your credentials the browser creates Authorization header and depending on the header value provider the server either lets you in or not. 当您输入凭据时,浏览器将创建Authorization标头,然后服务器根据标头值提供者允许您进入或不允许您进入。

JMeter provides HTTP Authorization Manager to deal with external authentication types which may cause these modal pop-ups most probably in your case it is NTLM or Kerberos . JMeter提供HTTP授权管理器来处理外部身份验证类型,这种身份验证可能在您的情况下是NTLMKerberos导致这些模式弹出窗口。

So add the HTTP Authorization Manager to your Test Plan and provide your credentials, domain, realm, etc. there - if everything goes well the server will let you in. 因此,将HTTP授权管理器添加到您的测试计划中,并在其中提供您的凭据,域,领域等-如果一切顺利,服务器将允许您进入。

See Windows Authentication with Apache JMeter article for more information on how to deal with external authentication systems in JMeter tests. 有关如何在JMeter测试中处理外部身份验证系统的更多信息,请参见使用Apache JMeter进行Windows身份验证

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM