Search code examples
jmeterperformance-testingload-testingjmeter-pluginsstress-testing

API load testing from different servers with unique AUTH_TOKEN


I want to test an API endpoint which requires AUTH header and I want to run them from different servers, so they'll hit different threads. However, I don't know how to do this because AUTH tokens should be different on each of this test servers. Is there a way to organize it using JMeter with redline13 specifically?


Solution

  • Parameterize your server and Auth_Token with a cvs file and upload the JMX and csv file to Redline13 to run the load test

    1. Create a csv file and map IP address with Auth Token. enter image description here 2.Add a header config manager to your http request , you can use ${variablename} to replace ip and authtoken as shown below

    enter image description here enter image description here

    Result: enter image description here

    For more info on running a JMeter test please read this article