1
votes

Need help. Need to log in multiple users, so, I'm using CSV Data Set Config. Received dynamic authCode I'm storing in another .csv file, and as the result finaly I'm receiving token, which I also store in .csv. While posting HTTP request I'm passing token with user data from .csv, How can I differentiate tokens, to post 1000 of request using 4 users only?

1

1 Answers

0
votes

Short Answer: JMeter automatically does it for you. you no need to save authCode & token in the CSV files.

Long Answer:

  1. Save the authCode using Regular Expression Extractor. name the variable as authCode.
  2. Replace with ${authCode} wherever authCode value is sent in subsequent requests.
  3. Capture the token value using Regular Expression Extractor and store the value in a variable token
  4. Replace with ${token} wherever token value is sent in subsequent requests.

you no need to worry about the thread/vuser, to associate authCode, token and the corresponding thread. JMeter handles it for you by storing those authCode, token values for each thread and maintains the state.

For more specific answer, please share your Test Plan and mention what exactly you want to achieve.