心有多大,舞台就有多大,希望结识做网站测试的朋友们;
测试需要横向扩展也需要纵向延伸
我相信自己会在测试的道路上走的很远..............................
LR中判断HTTP返回状态
上一篇 /
下一篇 2010-12-26 15:53:58
/ 个人分类:自动化测试工具
web_get_int_property()的应用
Action()
{
int HttpRetCode;
web_url("www.hao123.com",
"URL=http://www.hao123.com/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
HttpRetCode =web_get_int_property(HTTP_INFO_RETURN_CODE);
if (HttpRetCode == 200)
lr_log_message("终于成功了!!我不容易呀!!!");
else
lr_log_message("唉,又失败了,不过这才是正常的! ");
return 0;
}
收藏
举报
TAG: