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.

demouser123
3,5325 gold badges30 silver badges41 bronze badges
asked Aug 19, 2015 at 6:13
7
  • Not sure, but is it artoftesting.com/performanceTesting/restAPIJMeter.html what you're looking for? Commented 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. Commented 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. Commented 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 ? Commented 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. Commented 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.

answered Aug 20, 2015 at 10:13

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.