HTTP Authorization Manager

JMeter – HTTP Authorization Manager

JMeter script handles browser authentication pop-ups using HTTP Authorization Manager. A ‘gatekeeper’ pop-up, like the one below, frequently occurs while downloading a file from an FTP server:

A browser displays this popup when the server requests a username and password. Regardless of the framework, which varies by browser (for example, Mozilla Firefox, Apple Safari, or Microsoft Internet Explorer), a username and password are required to access what are often fairly simple resources. You need to manage this with “HTTP Authorization Manager”, where the term “HTTP Authorization” comes from.

For websites that are restricted by server authentication, you can specify one or more user logins using the Authorization Manager.

How to add ‘HTTP Authorization Manager’ in the JMeter script?

You can follow below steps:

  1. Select the “Test Plan” node
  2. Right-click on the “Test Plan” node
  3. Hover the mouse on “Add”
  4. Hover the mouse on Config Element
  5. Click ‘HTTP Authorization Manager

Input fields of ‘HTTP Authorization Manager

  1. Name: to name the element
  2. Leave any comments randomly.
  3. Clear authentication every cycle? Kerberos authentication uses this option. If authentication is checked, it will be executed every time the main thread pool loop repeats, even if it has already been done. If each iteration of the main thread pool corresponds to a single virtual user, this is often useful.
  4. Set up thread groups to control deletion – With this option, you can specify whether a new iteration will involve the same user or a new one. It is linked to the “Same user each iteration” option in the Thread group.
  5. Username: Enter this username when requesting authorization.
  6. Password: The authorization password to use.
  7. Domain: The NTLM domain to use.
  8. Realm: The NTLM realm to use. The HttpClient sampler is the only application for the Realm.
  9. Mechanism: the type of authentication chosen. Depending on the Http Samplers used, JMeter can perform different types of authentications.
  10. Java
    1. BASIC
  11. HttpClient 3.1
    1. BASIC
    2. DIGEST
  12. HttpClient 4
    1. BASIC
    2. DIGEST
    3. KERBEROS
Scroll to Top