javarestperformance-testingload-testingsiege

How to do load testing for JWT Secured Rest API


I am developing a REST API (HTTPS) with Spring and now need to load test to 1000 concurrent users.The problem is I used siege to load test but it cannot test over the jwt token header.Which is the best way to perform load test in my scenario?


Solution

  • You can use Jmeter for testing JWT Secured Rest API.

    You can include jwt token in "HTTP Header Manager" along with the request.

    Refer:http://jmeter.apache.org/usermanual/build-adv-web-test-plan.html#header_manager