jmeterperformance-testingload-testingstress-testing

How to add load test with multiple user with auth header value in Jemeter?


I am came to this step, but always getting first users request in my API enter image description here


Solution

  • You need to parameterize your HTTP Header Manager somehow, depending on where and how you can get these headers it might be:

    1. Storing headers in the CSV file and using CSV Data Set Config so each user would have its own header
    2. Getting authorization data from the database using JDBC test elements
    3. Calculating the header using relevant JMeter Functions
    4. Extracting headers from the previous response where you perform login or open the login page, this is called correlation