Reputation: 41
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. Please let me know how to resolve the issue?
Windows security authentication
Upvotes: 1
Views: 1344
Reputation: 336
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."
The above explanation clearly explains that credentials can be parametrized.
Upvotes: 1
Reputation: 168122
JMeter will not be able to capture this window as it doesn't really generate a HTTP Request. 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.
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.
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.
See Windows Authentication with Apache JMeter article for more information on how to deal with external authentication systems in JMeter tests.
Upvotes: 0