1
votes

I'm setting up test plan using JMeter and using csv file for login data (2 data) and passing the token to another request using JSON extractor. I set up number of user in JMeter 10 users and the result is sometimes request get 401 code. I assume that maybe when user 1 login and create token for next request, then JMeter execute login request with same data so change the token. Can someone help me to fix the issue ?

JMeter picture

1
It is happening sometimes. At that instance, either credentials are wrong or dynamic token is not changed or correlation issue. Try with 1 user and then with 2 and further to dig the problem. I know it is not the answer but with limited information it is hard to tell as it is happening sometimes. Meanwhile, some expert might give some more good inputs.sunny_teo
Hi @sunny_teo thank you for the response, I tried that before, it still get 401 code sometimes, and when I use that for large number of users, more than 90% request get 401 code too.Rezki Oksaputri

1 Answers

0
votes

Extract the token value with the help Regular expression and passed it in the next request.