Am 09.09.20 um 14:58 schrieb SAS:
> I am not creating manual HTTP requests to add authentication manually.
>
> The issue I am facing is happening during the recording process.  shouldn't
> the tool automatically detect the authentication and pass through this
> step?

JMeter acts as a proxy and doesn't care about the authentication
mechanism of the website you are using.

To help you here, we probably need more information on the headers, that
your client sends and that the webserver is replying with. If you
started your test plan (and the proxy) from the template "Recording with
think time" (which I recommend), than you will find all the requests in
the View Results Tree element under the HTTP(s) Test Script Recorder.

Have a look at the headers and if you can, show them to us. Most
interesting will be the headers that are named Authorization and
WWW-Authenticate.

Note, that the value of the Authorization header includes your
credentials, so replace them with something safe.

Also note, that JMeter will not extract your credentials from the
headers. You have to insert those into the test plan by hand after the
recording has finished. But I understood that this is not your problem.

Felix

>
> Thanks,
> Sastry
>
> On Wed, Sep 9, 2020 at 1:06 AM Amit Dhumal <amitdhumal...@gmail.com> wrote:
>
>> Please verify the type of authentication in HTTP request header. In case of
>> NTLM authentication please follow steps as per:
>> https://www.blazemeter.com/blog/windows-authentication-apache-jmeter
>>
>> On Wed, Sep 9, 2020 at 9:18 AM SAS <sastry...@gmail.com> wrote:
>>
>>>> Hi,
>>>>
>>>> I am trying to record the script using JMeter for a web application
>> that
>>>> has windows authentication enabled.  I have setup a proxy in Firefox
>> for
>>>> recording purposes.
>>>>
>>>> However, when I tried recording the script, "Authentication required"
>>>> message kept popping up even after I provided valid credentials.  If I
>>> hit
>>>> cancel on the popup message, I see the "401 Unauthorized" message.
>>>>
>>>> Please note, it happens only during recording.  I am able to
>> successfully
>>>> login to the website when I was not recording.
>>>>
>>>> Please let me know how we can resolve this-
>>>>
>>>>
>>>> Thanks
>>>> SASTRY
>>>>
>>
>> --
>> Thanks & Regards,
>> Amit Dhumal
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org

Reply via email to