LR:Web_ get_ int_property函数

陈磊

#Web_ get_ int_property函数

#1 作用 记录Http的响应信息 #2 参数

http_info_return_code: 返回http代码 http_info_download_size:返回页面字节数 http_info_download_time:返回页面下载时间 #3 例子

int HttpRetCode=0;
web_url("dogbert",

	"URL=http://dogbert",

	"TargetFrame=_TOP",

	LAST);

HttpRetCode = web_get_int_property(HTTP_INFO_RETURN_CODE);

if (HttpRetCode == 200)

	lr_log_message("The Vuser successfully accessed the Dogbert home page");

else

	lr_log_message("The Vuser failed to access the Dogbert home page ");