Cannot force JMeter to authenticate to the site during recording

I am new to Jmeter and have the following problem. He wasted a couple of days for me, and I really hope someone can help:

When I go on to record the login page for the website (IIS Hosting, Windoes Authentication), I end up with an unauthorized 401. The login screen pops up again after entering the data. The same details work correctly when viewed on a site without using Jmeter.

Situation: Intranet Proxy> JMeter Proxy> Website

I started JMeter with Intranet proxy information:

jmeter -H -P 8080 -u -a -N localhost

I created an HTTP Proxy Server in WorkBench in JMeter

HTTP Sample Settings = HttpClient 3.1 / Redirection / Follow and Keep Alive

I added an HTTP authorization manager to the thread group, providing my data

I have uncommented httpclient.parameters.file = httpclient.parameters in jmeter.properties file

I have an uncommented http.proxyDomain = NTLM domain if an HTTPClient sampler in the same file is required

I have uncommented http.authentication.preemptive $ Boolean = true in the httpclient.parameters file

I believe that NTLM credentials are lost somewhere along the way, but I donโ€™t know where to go at this moment.

Let me know if any other information is helpful.

Thanks in advance, Yon.

+4
source share
2 answers

If you are behind a proxy server that requires authentication, make sure you install this:

-H PROXY_HOST -P PROXY_PORT -u PROXY_USERNAME -a PROXY_PASSWORD -N localhost 

Second check JMeter proxy configuration JMETER PROXY SETUP STEP BY STEP

Finally, if you have NTLM, then it is not sure that it can work, at least it is not sure during recording, it also depends on your version of NTLM, see this:

See this:

Finally, try to ask this question on the jmeter user mailing list, as soon as you do not get the answer, I suggest you put JMeter in DEBUG mode (jmeter.properties) and attach your logs to the BugZilla problem that you open on this (I will look at it As soon as possible).

+2
source

Works for me on Firefox 40 and IIS with Kerberos authentication if I installed HTTP(S) Test Script Recorder HTTP Sampler settings Type = Java . You need to enter authentication several times, then when I canceled Firefox, it is authenticated and I canโ€™t record the site without problems.

+2
source

Source: https://habr.com/ru/post/1435252/


All Articles