|
脚本
Action()
{
web_url("WebTours",
"URL=http://127.0.0.1:1080/WebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t4.inf",
"Mode=HTML",
LAST);
lr_think_time(5);
web_submit_form("login.pl",
"Snapshot=t5.inf",
ITEMDATA,
"Name=username", "Value=jojo", ENDITEM,
"Name=password", "Value=bean", ENDITEM,
"Name=login.x", "Value=27", ENDITEM,
"Name=login.y", "Value=13", ENDITEM,
LAST);
web_image("SignOff Button",
"Alt=SignOff Button",
"Snapshot=t6.inf",
LAST);
return 0;
}
录制的是LR自带的机票预订系统,只录制了登录和退出的过程,但在重新的回放的时候,出现了以下的错误:
Action.c(4): Error -26610: HTTP Status-Code=502 (Proxy Error ( 鎷掔粷杩炴帴 )) for "http://127.0.0.1:1080/WebTours/" [MsgId: MERR-26610]
Action.c(4): web_url("WebTours") highest severity level was "ERROR", 4164 body bytes, 209 header bytes [MsgId: MMSG-26388]
本人刚接触LR,请高手解决一下,顺便问下上面的乱码问题,如何解决。
已经按照网上的说法,在Tools—Recording Options—Advanced—Support charset改为了UTF-8,仍有乱码 |
|