|
执行场景时,发生以下错误,找不出原因,哪位能给我指点指点,谢谢
Action.c(5): Error -27796: Failed to connect to server "localhost:80": [10061] Connection refused
脚本如下:
#include "web_api.h"
Action()
{
web_url("MercuryWebTours",
"URL=http://localhost/MercuryWebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
lr_rendezvous("登陆");
lr_start_transaction("登陆");
web_submit_form("login.pl",
"Snapshot=t2.inf",
ITEMDATA,
"Name=username", "Value=wwb", ENDITEM,
"Name=password", "Value=123456", ENDITEM,
"Name=login.x", "Value=45", ENDITEM,
"Name=login.y", "Value=15", ENDITEM,
LAST);
lr_end_transaction("登陆", LR_AUTO);
web_find("web_find",
"What=wwb",
LAST);
web_image("SignOff Button",
"Alt=SignOff Button",
"Snapshot=t3.inf",
LAST);
return 0;
} |
|