|
Action()
{
int httpretcode;
web_url("shiyan",
"url=http://www.google.com",
LAST);
httpretcode=web_get_int_property(HTTP_INFO_RETURN_CODE);
if(httpretcode==200)
lr_log_message("欢迎,欢迎,热烈欢迎!");
else
lr_log_message("你给我出来!");
return 0;
}
我想自己写个能够利用loadrunner自带的web_get_int_property函数来验证http返回信息的函数
执行上述函数后报了以下的错误:
Action.c(5): Error -27796: Failed to connect to server "www.google.com:80": [10051] Network is unreachable [MsgId: MERR-27796]
Action.c(5): Warning -26000: Empty or no response for URL="http://www.google.com" [MsgId: MWAR-26000]
Action.c(5): web_url("shiyan") highest severity level was "ERROR", 0 body bytes, 0 header bytes [MsgId: MMSG-26388]
Ending action Action.
请赐教,不甚感激 |
|