标签:== ast http服务 inf load page led 判断 tar
利用LoadRunner判断HTTP服务器的返回状态
举例:
#include "web_api.h"
Action()
{
int HttpRetCode;
web_url("网易",
"URL=http://www.163.com",
"TargetFrame=_TOP",
LAST);
HttpRetCode = web_get_int_property(HTTP_INFO_RETURN_CODE);
if (HttpRetCode == 200)
lr_log_message("The Vuser successfully accessed the 网易 page");
else
lr_log_message("The Vuser failed to access the 网易 page ");
return 0;
}
其实所有的东西都可以通过关联函数从服务器的返回数据中取,然后自己动手解析.
参考文章地址:http://www.rickyzhu.com/2007/03/23/case-one-of-loadrunner/
标签:== ast http服务 inf load page led 判断 tar
原文地址:http://www.cnblogs.com/lexiaofei/p/7434650.html