Loadrunner运行与录制场景时间戳不一致时处理方式

ZIGEYANZHENG()
{

	lr_start_transaction("资格验证");

	web_save_timestamp_param("tStamp0", LAST); 

	lr_save_var(lr_eval_string("{tStamp0}")+0,10,0,"a");

	web_submit_data("www.xl.mianshui365.net_4", 
		//"Action=http://www.xl.mianshui365.net/?_c=order&_a=confirm_new&_t=1482721692", 
		"Action=http://www.xl.mianshui365.net/?_c=order&_a=confirm_new&_t={a}", 
		"Method=POST", 
		"RecContentType=text/html", 
		"Referer=http://www.xl.mianshui365.net/cart.html?_t={tStamp7}", 
		"Snapshot=t37.inf", 
		"Mode=HTML", 
		ITEMDATA, 
		"Name=trac_order_key", "Value=80251d2c", ENDITEM, 
		"Name=temp_order_sign", "Value=0", ENDITEM, 
		 LAST);

	web_save_timestamp_param("tStamp1", LAST); 

	lr_save_var(lr_eval_string("{tStamp1}")+0,10,0,"d");

	web_save_timestamp_param("tStamp6", LAST); 

	web_url("www.xl.mianshui365.net_5", 
		//"URL=http://www.xl.mianshui365.net/?_c=order&_a=findTicket_new&_t=1482721976772&idcard=130700197408245853&temp_order_key=Order_Temp_1178537_1482721912&type=", 
		"URL=http://www.xl.mianshui365.net/?_c=order&_a=findTicket_new&_t={tStamp6}&idcard=130700197408245853&temp_order_key=Order_Temp_1178537_{d}&type=", 
		"Resource=0", 
		"RecContentType=text/html", 
		"Referer=http://www.xl.mianshui365.net/?_c=order&_a=confirm_new&_t={a}", 
		"Snapshot=t39.inf", 
		"Mode=HTML", 
		 LAST);

	web_save_timestamp_param("tStamp", LAST); 

	lr_end_transaction("资格验证",LR_AUTO);

	return 0;
}

 

转载于:https://my.oschina.net/jimmylee216/blog/827969

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值