lr的脚本,http状态吗,web_reg_find检查点,事物点
版权声明:转载记得给我留个名啊
Action()
{
int httpCde=0;
lr_start_transaction("spoon");
web_reg_find("Text=3","Fail=NotFound",LAST);
web_url("spoon",
"URL=http://XXXX",
"Resource=1",
"RecContentType=application/json",
"Referer=",
"Snapshot=t1.inf",
LAST);
httpCde=web_get_int_property(HTTP_INFO_RETURN_CODE);
if(httpCde!=200)
lr_error_message("time out");
lr_end_transaction("spoon",LR_AUTO);
return 0;
}
本文介绍了一种使用LoadRunner进行HTTP测试的方法,包括如何设置web_reg_find检查点、定义事物点以及验证HTTP状态码,确保测试的有效性和准确性。
76

被折叠的 条评论
为什么被折叠?



