简体   繁体   中英

How can we achieve NTLM authentication using Jmeter Automation

I was previously used Visual studio web test for automation. Now we have moved to Jmeter . We are trying to solve NTLM Authentication issues here but are unable to find out where to pass Credentials. The parameters below are required for file authentication in VS webtest:

  1. CredentialUserName="CredentialUserName"
  2. CredentialPassword="CredentialPassword"
  3. PreAuthenticate="True"

I have found some helpful links and understand how NTLM works but am unable to find out how to use them in Jmeter.

I have found some useful links but am unable to get any information how to use NTLM in Jmeter.

hc.apache.org

apache.http.auth.NTCredentials

JMeter provides HTTP Authorization Manager which deals with Basic, NTML and Kerberos authentication types, just add it to your Test Plan and provide username, password and domain there, JMeter will automatically build the relevant Authorization header and add it to your request(s).

See Windows Authentication with Apache JMeter article for more information.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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