Jmeter-如何从重定向中提取数据 [英] Jmeter- how to extract data from redirection

查看:873
本文介绍了Jmeter-如何从重定向中提取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有任何API.当我用jmeter打这个API时,ir重定向到服务器A(进行一些处理),然后重定向到B,最后重定向到C(HTML页面).

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).

在视图结果树中,我只能得到他的最终HTML响应.有什么办法可以让我看到对服务器A和服务器的请求响应. B

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

推荐答案

只需取消选中HTTP请求中的跟随重定向"选项

Just uncheck "Follow redirects" option in HTTP Request

请参阅:

然后,您需要使用Regexp提取程序从标头中提取URL,然后调用它,以发出请求.

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

这篇关于Jmeter-如何从重定向中提取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆