-1

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

2 Answers2

1

You can use a csv file that contains your users credentials

users1, password1 users2, password2 ....

then add a config Element as CSV Data and make the path to your csv file.

you can follow this guide
https://www.oodlestechnologies.com/blogs/how-to-use-csv-file-for-login-multiple-users-through-jmeter/

hacenesh
  • 75
  • 5
1

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
Dmitri T
  • 159,985
  • 5
  • 83
  • 133