jmeterresponse-time

Measure response time for an API


I have 416 webservice API's to test . I am loading those url's from a CSV file . my test need to find an API which takes more than 2 sec to respond . I couldn't find a way to measure response time for an API .

I am using

     Thread Users - 416 
     Ramp up Period - 1
     Loop Count - 1 

I have tried "View Results in Table" listener which shows the sample time . But the sample time does not show individual response time .

Please let me know if you find any solution ?


Solution

  • You shouldn't use listeners as View Results in Table in Load test because it consumes a lot of resources

    this visualizer uses a lot of memory.

    Use Duration Assertion instead, defined it with 2000 milliseconds in your case

    Duration Assertion tests that each response was received within a given amount of time. Any response that takes longer than the given number of milliseconds (specified by the user) is marked as a failed response.