How to get the response time of calls made within an API with Jmeter

元气小坏坏 提交于 2021-01-29 18:32:51

问题


I'm using J-meter to get response time for an API via HTTP request but this API internally few more api services. Now, i need the response time taken by these internal calls too. Pls could anyone assist to get this one sorted via J-meter


回答1:


Below is what I can think of:-

Check on "Follow Redirect" and then use listener like "View Result tree" or "Simple Data Writer" to write the output in an XML format instead of CSV. There you can find the redirected URLs and response time. But, XML creation will consumer a lot of resource and should be avoided.

Second, use post processor and fetch the response time from the sampler results along with redirected URL and write it in a csv. This requires some coding.



来源:https://stackoverflow.com/questions/50404677/how-to-get-the-response-time-of-calls-made-within-an-api-with-jmeter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!