|
lr脚本录制参数化,关联后回放页面出错。脚本录制好,不做任何改动回放又是正确的,纠结。
环境:lr11、IE8、录制web html的oa办公软件
源代码: 代码解释:此处的web_submit_data("WorkLog_Edit.aspx_2",中的data=2013-5-16及"Name=AutoForm1$LogDate", "Value=2013-05-16", ENDITEM,是我录制时修改的是这天的数据,所以不需要关联和参数化
lr_rendezvous("worklog");
lr_start_transaction("worklog");
web_add_auto_header("Accept-Language",
"zh-cn");
lr_think_time(19);
web_submit_data("WorkLog_Edit.aspx_2",
"Action=http://192.168.222.9:1010/WorkLog/WorkLog_Edit.aspx?date=2013-5-16&type=0&id={CorrelationParameter_2}",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://192.168.222.9:1010/WorkLog/WorkLog_Edit.aspx?date=2013-5-16&type=0&id={CorrelationParameter_2}",
"Snapshot=t13.inf",
"Mode=HTML",
ITEMDATA,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState9}", ENDITEM,
"Name=__EVENTVALIDATION", "Value=/{CorrelationParameter_11}", ENDITEM,
"Name=AutoForm1$LogDate", "Value=2013-05-16", ENDITEM,
"Name=AutoForm1$Creatus", "Value={creatus}", ENDITEM,
"Name=AutoForm1$YearSign", "Value=2013", ENDITEM,
"Name=AutoForm1$CreatDept", "Value={creatdept}", ENDITEM,
"Name=AutoForm1$WLContent", "Value=刷水水水水水水水水刷水水水水水水水水刷水水水水水水水水刷水水水水水水水水", ENDITEM,
"Name=Editor1", "Value=刷水水水水水水水水刷水水水水水水水水刷水水水水水水水水刷水水水水水水水水", ENDITEM,
"Name=btn_Save", "Value=保存", ENDITEM,
LAST);
web_url("My97DatePicker.htm_3",
"URL=http://192.168.222.9:1010/Js/DatePicker/My97DatePicker.htm",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.222.9:1010/WorkLog/WorkLog_Edit.aspx?date=2013-5-16&type=0&id={CorrelationParameter_2}",
"Snapshot=t14.inf",
"Mode=HTML",
LAST);
web_url("WorkLog_ManageList.aspx_2",
"URL=http://192.168.222.9:1010/WorkLog/WorkLog_ManageList.aspx",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.222.9:1010/WorkLog/WorkLog_Edit.aspx?date=2013-5-16&type=0&id={CorrelationParameter_2}",
"Snapshot=t15.inf",
"Mode=HTML",
EXTRARES,
"URL=../images/btn_Go.gif", ENDITEM,
"URL=../images/edit.gif", ENDITEM,
"URL=../images/listheadline_left.png", ENDITEM,
"URL=../images/mjkpBox_footer_left.gif", ENDITEM,
"URL=../images/mjkpBox_footer_center.gif", ENDITEM,
"URL=../images/pathbg.png", ENDITEM,
"URL=../images/path_icon.gif", ENDITEM,
"URL=../images/searchBar.png", ENDITEM,
"URL=../images/listheadline_right.png", ENDITEM,
"URL=../images/mjkpBox_footer_right.gif", ENDITEM,
"URL=../images/listheadline_center.png", ENDITEM,
LAST);
web_revert_auto_header("Accept-Language");
lr_think_time(5);
web_custom_request("URSTelemetry.asmx_3",
"URL=https://telemetry.urs.microsoft.com/URSTelemetry.asmx?MSTel-Client-Key=V6aVVTigNBQtKNrJH4ah2Q%3d%3d&MSTel-Patented-Lock=jbEbRBJpMwI%3d",
"Method=POST",
"TargetFrame=",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t16.inf",
"Mode=HTML",
"EncType=text/xml; charset=utf-8",
"Body=<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\"><soap:Body><TelRep xmlns=\"http://Microsoft.Live.URSTelemetry/\"><Guid>{2CEDBFBC-DBA8-43AA-B1FD-CC8E6316E3E2}</Guid><DV>8.0.6001.9</DV><FV>8.00.6001.18669</FV><OSV>5.2.3790.2.0</OSV><CN>zh-cn</CN><PRG>{7CE0D270-AEC1-4A49-8064-15B729846707}</PRG><RType>POST</RType><CID>5ED4782C-959E-43FB-8169-F3DB13125A70</CID><CTU>http://192.168.222.9/worklog/worklog_edit.aspx?date=2013-5-16&type=0&id={CorrelationParameter_2}</CTU><CWIp>NULL</CWIp><TUIp>192.168.222.9</TUIp><CS>64</CS><IB soapenc:arrayType=\"xsd:double[5]\"><double>100</double><double>100</double><double>75</double><double>100</double><double>6.5</double></IB><Frames xmlns:q1=\"http://Microsoft.Live.URSTelemetry/\" soapenc:arrayType=\"q1:Frame[1]\"><Frame><FUrl>http://192.168.222.9/worklog/worklog_edit.aspx?date=201"
"3-5-16&type=0&id={CorrelationParameter_2}</FUrl><Z>KVHN</Z><CR>32D32000|2830015|0|80001064|FC0|0</CR><Kwds>3a003a00</Kwds><UType>TOP</UType><HIP>192.168.222.9</HIP></Frame></Frames></TelRep></soap:Body></soap:Envelope>",
LAST);
lr_end_transaction("worklog", LR_AUTO);
错误日志:[/b
]Action.c(460): 正在重定向 "http://192.168.222.9:1010/WorkLog/WorkLog_Edit.aspx?date=2013-5-16&type=0&id=211405" (重定向深度为 0) [MsgId: MMSG-26694]
Action.c(460): 目标位置“http://192.168.222.9:1010/ErrorMessg.aspx” [MsgId: MMSG-26693]
Action.c(460): 在 HTML“http://192.168.222.9:1010/ErrorMessg.aspx”中找到资源“” [MsgId: MMSG-26659]
Action.c(460): 在 HTML“http://192.168.222.9:1010/ErrorMessg.aspx”中找到资源“” [MsgId: MMSG-26659]
Action.c(460): 在 HTML“http://192.168.222.9:1010/ErrorMessg.aspx”中找到资源“” [MsgId: MMSG-26659]
Action.c(460): 在 HTML“http://192.168.222.9:1010/ErrorMessg.aspx”中找到资源“” [MsgId: MMSG-26659]
Action.c(460): 在 HTML“http://192.168.222.9:1010/ErrorMessg.aspx”中找到资源“” [MsgId: MMSG-26659]
从以上日志可看出,刚开始的定向目标链接是对的,可是后面就变成error页面了。
我仔细观察、调试了2天了,还是找不到问题。求高手赐教 |
|