Punyam
Punyam

Reputation: 11

JMeter HTTP Authorization Manager Error

I have recorded an application in Jmeter. It shows one auto-generated 'Http Authorization Manager' where username is appearing as '${Auth_Login}' and password as ${Auth_password}. Here a pop is appearing where we are giving an OTP in the application. Please find the below screenshot: enter image description here

While running the script it is appearing as: enter image description here

Please help .

Upvotes: 0

Views: 1655

Answers (2)

Dmitri T
Dmitri T

Reputation: 168002

Looking into KERBEROS authentication mechanism my expectation is that you are trying to load test application which is using Kerberos protocol. I'm not sure you will be able to record and replay Kerberos-based login, you will need to specify domain/realm in the HTTP Authorisation Manager and also perform the relevant configuration in krb5.conf and jaas.conf file in the "bin" folder of your JMeter installation.

More information:

Upvotes: 0

manish
manish

Reputation: 96

This can be solved using a HTTP Header Manager, where you will need to set the Authorisation header. Here is all you will have to do

Create a base64 encoded value of your username and password combination

echo -n user123:pas123 | base64

The command will output an encoded value like example: dXNlcjEyMzpwYXNzMTIz, copy this value

In the HTTP Header Manager, create a new header, with name Authorization and the value Basic

Here's a screenshot

enter image description here

Upvotes: 1

Related Questions