1

I have a requirement to do load test on an API (which is having response as a json .No UI and etc).

What is the best component to use to test with 100 users or more .Which thread group is best to use .

If someone has any examples please share alongwith screenshots here.

7
  • Not sure, but is it artoftesting.com/performanceTesting/restAPIJMeter.html what you're looking for? Aug 19, 2015 at 10:17
  • Thanks for sharing url @Mr.log_file , right now I was following the same way but I my requests are getting failed with more than 25 users.So I felt there is some alternative approach.
    – QAMember
    Aug 19, 2015 at 10:30
  • Try increasing number of users and RampUp i.e. Number of users = 100 and RampUp = 5. Try with this configuration and see if it works.
    – Dhiman
    Aug 19, 2015 at 13:28
  • @Dhiman : if I configure Rampup time then the response time will increase ? bcoz it will wait for the 5 sec for every new user/thread right ?
    – QAMember
    Aug 19, 2015 at 13:31
  • No, your response time will not increase. Rampup time is not added in Response Time, but yes if you have used Timers in your script, then it might get added to Response Time depending upon the configuration you have selected. So you can increase RampUp without any issue.
    – Dhiman
    Aug 19, 2015 at 13:49

1 Answer 1

2

I hope you not using JMeter in GUI mode. If you do - please switch to command-line non-GUI mode as JMeter GUI is very resource intensive and may ruin your test.

The same for the Listeners: if you have View Results Tree or View Results in Table listeners added and enabled - remove or disable them as they consume a lot of CPU and RAM.

Follow recommendations from JMeter Performance and Tuning Tips guide - this way you will be able to simulate much more than 100 virtual users.

Another piece of advice: if you going to do some testing on REST API - it's likely that you'll have to deal with JSON data. Vanilla JMeter's JSON support is not so good so I recommend using the following test elements:

Both are available via "Extras with Libs" set of the JMeter Plugins project.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.