51Testing软件测试论坛

标题: 脚本录制好后回放出错,请求帮助 [打印本页]

作者: zhos    时间: 2005-8-8 14:53
标题: 脚本录制好后回放出错,请求帮助
脚本录制好后回放出错,页面分2步提交数据:
Action()
{

        lr_think_time( 1 );

        web_url("folder.gif",
                "URL=http://130.252.89.202:9898/web/Image/folder.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://130.252.89.202:9898/web/Entry/mtMenu.jsp",
                LAST);

        web_url("folder.gif_2",
                "URL=http://130.252.89.202:9898/web/Image/folder.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://130.252.89.202:9898/web/Entry/mtMenu.jsp",
                LAST);

        web_url("folder.gif_3",
                "URL=http://130.252.89.202:9898/web/Image/folder.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://130.252.89.202:9898/web/Entry/mtMenu.jsp",
                LAST);

        web_url("folder.gif_4",
                "URL=http://130.252.89.202:9898/web/Image/folder.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://130.252.89.202:9898/web/Entry/mtMenu.jsp",
                LAST);

        web_url("folder.gif_5",
                "URL=http://130.252.89.202:9898/web/Image/folder.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://130.252.89.202:9898/web/Entry/mtMenu.jsp",
                LAST);

        web_url("folder.gif_6",
                "URL=http://130.252.89.202:9898/web/Image/folder.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://130.252.89.202:9898/web/Entry/mtMenu.jsp",
                LAST);

        web_url("folder.gif_7",
                "URL=http://130.252.89.202:9898/web/Image/folder.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://130.252.89.202:9898/web/Entry/mtMenu.jsp",
                LAST);

        web_url("folder.gif_8",
                "URL=http://130.252.89.202:9898/web/Image/folder.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://130.252.89.202:9898/web/Entry/mtMenu.jsp",
                LAST);

        web_url("folder2.gif",
                "URL=http://130.252.89.202:9898/web/Image/folder2.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://130.252.89.202:9898/web/Entry/mtMenu.jsp",
                "Snapshot=t3.inf",
                LAST);

        web_url("folder.gif_9",
                "URL=http://130.252.89.202:9898/web/Image/folder.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://130.252.89.202:9898/web/Entry/mtMenu.jsp",
                LAST);

        web_url("goAgtRchg.do",
                "URL=http://130.252.89.202:9898/web/goAgtRchg.do",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://130.252.89.202:9898/web/Entry/mtMenu.jsp",
                "Snapshot=t4.inf",
                "Mode=HTML",
                LAST);

        lr_think_time( 2 );

        web_submit_form("agtRchgSt1.do",
                "Snapshot=t5.inf",
                ITEMDATA,
                "Name=custno", "Value=Agt0001", ENDITEM,
                "Name=currencyType", "Value=EUR", ENDITEM,
                "Name=rchgAmount", "Value=1100", ENDITEM,
                "Name=amount", "Value=1100", ENDITEM,
                "Name=select", "Value=Check", ENDITEM,
                "Name=receipt", "Value=2563", ENDITEM,
                LAST);

        web_submit_form("agtRchgSt2.do",
                "Snapshot=t6.inf",
                ITEMDATA,
                "Name=saTxnPwd", "Value=111111", ENDITEM,
                LAST);

        return 0;
}

[ Last edited by zhos on 2005-8-8 at 14:56 ]
作者: kernzhang    时间: 2005-8-8 20:39
错误信息呢?




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