Loadrunner 怎么将response的数据下载下来

我们请求url时候会遇见返回的数据格式为json格式。但是怎么显示到reply页面呢?其实有一个参数需要设置成0

	web_url("GetRequestData", 
		"URL=https://eit200-i.svcs.hp.com/requestmanagement/RequestTracking/GetRequestData?status=ApprovalPending&_search=false&nd=1370243480589&rows=10&page=1&sidx=OrderID&sord=desc", 
		"Resource=0", 
		"RecContentType=application/json", 
		"Referer=https://eit200-i.svcs.hp.com/requestmanagement/RequestTracking/RequestTracking?orderStatus=ApprovalPending", 
		"Snapshot=t160.inf", 
		LAST);

里面的resource 参数解释 0 -就是永远都会下载 1-只有你在runtime setting里面开启‘ Download non-HTML resources ’才会下载

If Resource is set to 0, the URL is always downloaded during replay.

If Resource is set to 1, the URL is downloaded only if the Download non-HTML resources option is checked (see Runtime Settings > Browser Emulation tab).


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值