JMeter – Login Config Element

JMeter - Login Config Element

The simple definition of ‘Login Config Element’ component in JMeter is the element which is used as a global component to add or override the credential in the following Samplers added to the test plan. This element is specially used for authentication. You can mention username and password in the login-config element and that can be replaced in the sampler.

How to add ‘Login Config Element’?

You can follow steps to add Login Config element:

  1. Select ‘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 ‘Login Config’
JMeter - Login Config Element
Figure 01

Input fields of ‘Login Config Element’

‘Login Config Element’ has the following input fields:

  1. Name: To provide element name
  2. Comments: To provide arbitrary comments (if any)
  3. Username: The username which needs to be added or override.
  4. Password: The default password to log in. Please note it stores the unencrypted password and passes the same to the test plan.

Leave a Reply

Your email address will not be published. Required fields are marked *