Jmeter- how to extract data from redirection

天涯浪子 提交于 2019-12-13 02:11:33

问题


I have any API. When i hit this API by jmeter, ir redirects to server A(do some processing), then redirects to B, and finally redirects to C( which is a HTML page).

In view result tree, i only get he final HTML response. Is there some way, by which i can see the request response to server A & B


回答1:


Just uncheck "Follow redirects" option in HTTP Request

See:

  • http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request

You will then need to emit yourselft the requests by Using A Regexp Extractor to extract from Header the URL and then call it.



来源:https://stackoverflow.com/questions/33823194/jmeter-how-to-extract-data-from-redirection

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