action{
int HttpRetCode;
web_url("login",
"URL=http://www.163.com",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
HttpRetCode = web_get_int_property(HTTP_INFO_RETURN_CODE);
lr_output_message( "HTTP_INFO_RETURN_CODE %d",HttpRetCode);
//Check HttpRetCode
if (HttpRetCode == 200) {
lr_log_message("The script successfully accessed the login page");
}
else {
lr_log_message("The script failed to access the login page ");
}
}
通过跳转页面的内容进行校验。
使用web_reg_find函数。