'How to carry out API testing testing using JMeter on API url

I have an API url and body data in xml format. How to do load testing of available API url using JMeter?. I need to check the API performance for multiple user login.



Solution 1:[1]

  1. Add a Thread Group to your Test Plan and specify the desired number of threads (virtual users), iterations and test duration

    Below setup will run the request with 10 users for 1 minute:

    enter image description here

  2. Add a HTTP Request sampler as a child of the Thread Group and specify the URL and the body there:

    enter image description here

  3. You may also need to add HTTP Header Manager to send the relevant Content-Type header

    enter image description here

  4. Run your test in command-line non-GUI mode

  5. Generate HTML Reporting Dashboard and analyze the results

More information:

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dmitri T