Reputation: 349
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 ?
Upvotes: 0
Views: 16476
Reputation: 168072
On the "Advanced" tab of the HTTP Request sampler (or even better HTTP Request Defaults) there is Timeouts
section where you can define maximum value for establishing the connection and/or getting the response.
If JMeter fails to get the response within the time frame (in milliseconds) the relevant sampler will be marked as failed.
In order to see individual response times - add the variable from the CSV file as HTTP Request label (or prefix or postfix) - this way you will see the associated URLs in the listeners and in the HTML Reporting Dashboard :
Upvotes: 1
Reputation: 308
Add listener Summary report
which has columns as average, minimum and maximum response time taken by a hit.You can also save this report by clicking on Save Table data
button.
Also, add View Results Tree
listener in which Sampler Result
tab has all the details corresponding to that hit.
Upvotes: 1
Reputation: 58772
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.
Upvotes: 1