51Testing软件测试论坛

标题: LR回放脚本时报 Error -26627这个错,如何获取rbasDate的日期值 [打印本页]

作者: dzr00    时间: 2011-9-7 10:28
标题: LR回放脚本时报 Error -26627这个错,如何获取rbasDate的日期值
web_submit_data("bespeakRegisterHospital!insert.action",
                "Action=http://10.1.4.42:18083/12580/hospital/bespeakRegisterHospital!insert.action?ticket={time_a}",
                "Method=POST",
                "RecContentType=application/json",
                "Referer=http://10.1.4.42:18083/12580/pages/registerList.jsp?type=1&TELNO=13551030001&SERIALNO=36552000&CCID=32&AGENTNO=32&DATE=2011-08-30&ACCESSCITY=2&GLOBALID=3&MAREAID=3&USERNAME=rrr&oldocxcode=333#",
                "Snapshot=t14.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=bespeakRegisterHospital.mobile", "Value={mobile1}", ENDITEM,
                "Name=bespeakRegisterHospital.cardId", "Value=444555555555555555", ENDITEM,
                "Name=radio", "Value=", ENDITEM,
                "Name=bespeakRegisterHospital.sex", "Value=1", ENDITEM,
                "Name=bespeakRegisterHospital.seeNumber", "Value=", ENDITEM,
                "Name=bespeakRegisterHospital.age", "Value=44", ENDITEM,
                "Name=bespeakRegisterHospital.userName", "Value=444444444", ENDITEM,
                "Name=bespeakRegisterHospital.address", "Value=4444", ENDITEM,
                "Name=bespeakRegisterHospital.rbasDate", "Value=2011-09-07", ENDITEM,
                "Name=dept", "Value=妇产科", ENDITEM,


----上述直接回放时,报如下错:
Action.c(57): Error -26627: HTTP Status-Code=404 (/12580/portal/404.jsp) for "http://10.1.4.42:18083/12580/hospital/bespeakRegisterHospital!insert.action?ticket={time_a}"          [MsgId: MERR-26627]
Action.c(57): Warning -26200: At least one of the resources specified by EXTRARES has not been downloaded due to the above error(s)          [MsgId: MWAR-26200]
Action.c(57): web_submit_data("bespeakRegisterHospital!insert.action") highest severity level was "ERROR", 0 body bytes, 130 header bytes, 5 chunking overhead bytes          [MsgId: MMSG-26387]


但是把脚本中下面这行的2011-09-07日期值去掉,脚本就回放成功了..但是测试过程中又需要此日期数据值,请高手指点下,这个日期值怎么获取到???
"Name=bespeakRegisterHospital.rbasDate", "Value=2011-09-07", ENDITEM,




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