Can i check at a time multiple api in jMeter?



  • I have started the JMeter in the mobile Application can I test the Multiple API at a time in Jmeter if yes then how can I check the output?



  • With JMeter you can do whatever you want, if you need to hit multiple API endpoints with multiple threads (virtual users) at exactly the same moment you need to consider following configuration:

    1. List your endpoints in a CSV file, for example:

      http://example.com/endpoint1
      http://example.com/endpoint2
      http://example.com/endpoint3
      
    2. Use CSV Data Set Config so JMeter could read the endpoints from the CSV file

      enter image description here

    3. Set the number of threads in the Thread Group to be equal to the number of concurrent requests you want to send (in my case 3)

      enter image description here

    4. Add a Synchronizing Timer to your test plan and set Number of Simultaneous Users to Group by to be equal to the number of threads in the Thread Group:

      enter image description here

    5. Run your test and observe Samplers start times using i.e. View Results in Table listener

    As you can see all 3 requests were executed at exactly the same moment of time:

    enter image description here



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2