51Testing软件测试论坛

标题: LR录制机票预订系统的脚本后设置文本检查点后回放报错怎么解决求指点 [打印本页]

作者: wpgdkd    时间: 2016-7-22 18:56
标题: LR录制机票预订系统的脚本后设置文本检查点后回放报错怎么解决求指点
脚本如下
Action()
{

        web_url("WebTours",
                "URL=http://127.0.0.1:1080/WebTours/",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t1.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=http://feeds.bbci.co.uk/news/rss.xml?edition=int", "Referer=", ENDITEM,
                LAST);

        web_reg_find("Text=welcome",
                LAST);

        lr_start_transaction("login");

        lr_think_time(5);

        web_submit_data("login.pl",
                "Action=http://127.0.0.1:1080/WebTours/login.pl",
                "Method=POST",
                "TargetFrame=body",
                "RecContentType=text/html",
                "Referer=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
                "Snapshot=t2.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=userSession", "Value=118998.047468611zVcAQzcpAzzzzzzHDzHcfpHHct", ENDITEM,
                "Name=username", "Value=beipiao", ENDITEM,
                "Name=password", "Value=123456", ENDITEM,
                "Name=login.x", "Value=48", ENDITEM,
                "Name=login.y", "Value=9", ENDITEM,
                "Name=login", "Value=Login", ENDITEM,
                "Name=JSFormSubmit", "Value=off", ENDITEM,
                LAST);

        lr_end_transaction("login",LR_AUTO);

        lr_think_time(5);

        web_url("SignOff Button",
                "URL=http://127.0.0.1:1080/WebTours/welcome.pl?signOff=1",
                "TargetFrame=body",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://127.0.0.1:1080/WebTours/nav.pl?page=menu&in=home",
                "Snapshot=t3.inf",
                "Mode=HTML",
                LAST);

        return 0;
}
报错为
Action.c(16): 注册 web_reg_find 成功          [MsgId: MMSG-26390]
Action.c(19): 通知: 事务 "login" 已启动。
Action.c(23): 错误 -26366: 找不到 web_reg_find 的“Text=welcome”          [MsgId: MERR-26366]




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2