LR录制正常,回放报错,详细信息如下:..
报错信息:Action.c(56): Error -26377: No match found for the requested parameter "Siebel_Analytic_ViewState5". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 1864 bytes, use web_set_max_html_param_len to increase the parameter size
Action.c(56): web_url("配件合同") highest severity level was "ERROR", 54882 body bytes, 1518 header bytes
这里录制的是增加合同功能。
里面有个合同号是自动生成的,可能是关联和参数问题。具体怎么解决,帮忙帮忙!
脚本script:
Action()
{
web_set_max_html_param_len("1864");
/* Registering parameter(s) from source task id 4
// {Siebel_Analytic_ViewState2} = "dDwtMTc5MTcwMTM4Ozs+fxHBmVq9P3Vr/HAPZxxf1yB3klI="
// */
web_reg_save_param("Siebel_Analytic_ViewState2",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
web_url("logon.aspx",
"URL=http://10.3.1.101/quote/secure/logon.aspx",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_submit_data("logon.aspx_2",
"Action=http://10.3.1.101/quote/secure/logon.aspx",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://10.3.1.101/quote/secure/logon.aspx",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState2}", ENDITEM,
"Name=LogonUserIdTextBox", "Value=yh", ENDITEM,
"Name=LogonPasswordTextBox", "Value=1", ENDITEM,
"Name=LogonButton", "Value=", ENDITEM,
LAST);
/* Registering parameter(s) from source task id 30
// {Siebel_Analytic_ViewState5} = "dDwxOTQ4NDgzMDt0PDtsPGk8MT47PjtsPHQ8O2w8aTwxPjtpPDU+Oz47bDx0PDtsPGk8MD47PjtsPHQ8cDxwPGw8VGV4dDs+O2w85bCk57qiICAgIOasoui/juWFieS4tO+8gTs+Pjs+Ozs+Oz4+Pjs+Pjs+Pjs+Pjt0PHA8cDxsPFZpc2libGU7PjtsPG88Zj47Pj47PjtsPGk8NTc+Oz47bDx0PEAwPDs7Ozs7Ozs7Ozs+Ozs+Oz4+O3Q8cDxwPGw8VmlzaWJsZTs+O2w8bzxmPjs+Pjs+O2w8aTw1Nz47PjtsPHQ8QDA8Ozs7Ozs7Ozs7Oz47Oz47Pj47Pj47Pj47Pj47PncrShoKoC/+f7vwUXaquoQvMuYt"
// */
web_reg_save_param("Siebel_Analytic_ViewState5",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
web_url("配件合同",
"URL=http://10.3.1.101/quote/secure/Partscontract.aspx",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.3.1.101/quote/secure/index.aspx",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
/* Registering parameter(s) from source task id 37
// {Siebel_Analytic_ViewState7} = "dDwxOTQ4NDgzMDt0PDtsPGk8MT47PjtsPHQ8O2w8aTwxPjtpPDU+Oz47bDx0PDtsPGk8MD47PjtsPHQ8cDxwPGw8VGV4dDs+O2w85bCk57qiICAgIOasoui/juWFieS4tO+8gTs+Pjs+Ozs+Oz4++Ozs+O3Q8dDxwPHA8bDxEYXRhVGV4dEZpZWxkOz47bDxOYW1lOz4+Oz47dDxpPDc+O0A8Rk9CO0NJRjtDRlI7Q0lQO0RBRjtFWFc7dGVzdDs+O0A8Rk9CO0NJRjtDRlI7Q0lQO0RBRjtFWFc7dGVzdDs+Pjs+Ozs+O3Q8cDxwPGw8VGV4dDs+O2w8MTs+Pjs+Ozs+O3Q8QDA8Ozs7Ozs7Ozs7Oz47Oz47Pj47dDxwPHA8bDxWaXNpYmxlOz47bDxvPGY+Oz4+Oz47bDxpPDU3Pjs+O2w8dDxAMDw7Ozs7Ozs7Ozs7Pjs7Pjs+Pjs+Pjs+Pjs+Pjs+A7ZbYUrrWQ6lMKeBWQqtxWOjCJY="
// */
web_reg_save_param("Siebel_Analytic_ViewState7",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
web_submit_data("Partscontract.aspx",
"Action=http://10.3.1.101/quote/secure/Partscontract.aspx",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://10.3.1.101/quote/secure/Partscontract.aspx",
"Snapshot=t4.inf",
"Mode=HTML",
ITEMDATA,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState5}", ENDITEM,
"Name=cmdadd1", "Value=增加自营合同", ENDITEM,
"Name=txtbao1", "Value=", ENDITEM,
"Name=auflag", "Value=", ENDITEM,
"Name=txtyun1", "Value=", ENDITEM,
LAST);
/* Registering parameter(s) from source task id 38
// {Siebel_Analytic_ViewState9} = "dDwxOTQ4NDgzMDt0PDtsPGk8MT47PjtsPHQ8O2w8aTwxPjtpPDU+Oz47bDx0PDtsPGk8MD47PjtsPHQ8cDxwPGw8VGV4dDs+O2w85bCk57qiICAgIOasoui/juWFieS4tO+8gTs+Pjs+Ozs+Oz4+O3Q8O2w8aTwxNT47aTwxNz47aTwxOT47PjtsPHQ8cDxsPFZpc2libGU7PjtsPG88Zj47Pj47bDxpPDE+O2k8Mz47PjtsPHQ8QDA8cDxwPGw8VmlzaWJsZTtQYWdlQ291bnQ7XyFEYXRhU291cmNlSXRlbUNvdW50O18hSXRlbUNvdW50O0RhdGFLZXlzOz47bDxvPGY+O2k8MT47aTwwPjtpPDA+O2w8Pjs+Pjs++Oz47Oz47dDxwPHA8bDxUZXh0Oz47bDwxMDAuMDA7Pj47Pjs7Pjt0PHA8cDxsPFRleHQ7PjtsPDEwMC4wMDs+Pjs+Ozs+Oz4+Oz4+Oz4+Oz4+O3Q8cDxwPGw8VmlzaWJsZTs+O2w8bzxmPjs+Pjs+O2w8aTw1Nz47PjtsPHQ8QDA8Ozs7Ozs7Ozs7Oz47Oz47Pj47Pj47Pj47Pj47PtJRhs+MpoTHxEKIEEUEOx7BOK4k"
// */
web_reg_save_param("Siebel_Analytic_ViewState9",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
lr_think_time(22);
web_submit_data("Partscontract.aspx_2",
"Action=http://10.3.1.101/quote/secure/Partscontract.aspx",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://10.3.1.101/quote/secure/Partscontract.aspx",
"Snapshot=t5.inf",
"Mode=HTML",
ITEMDATA,
"Name=__EVENTTARGET", "Value=Bp1", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState7}", ENDITEM,
"Name=txtdd", "Value=PHA0407001", ENDITEM,
"Name=htdate", "Value=2007-7-27", ENDITEM,
"Name=jgtk", "Value=FOB", ENDITEM,
"Name=yunf", "Value=0", ENDITEM,
"Name=baof", "Value=0", ENDITEM,
"Name=yongj", "Value=0", ENDITEM,
"Name=txtsum", "Value=0", ENDITEM,
"Name=sname", "Value=ANHUI HELI INDUSTRIAL VENHICLE IMP & EXP CO.,LTD", ENDITEM,
"Name=bname", "Value=dwef", ENDITEM,
"Name=saddr", "Value=ADD:15 WANG JIANG WEST ROAD HEFEI CHINA", ENDITEM,
"Name=baddr", "Value=ADD:", ENDITEM,
"Name=stel", "Value=TEL:0551-3639258 FAX:(0551)363966", ENDITEM,
"Name=btel", "Value=", ENDITEM,
"Name=txtPjname1", "Value=aaa", ENDITEM,
"Name=txtTj1", "Value=", ENDITEM,
"Name=txtMzh1", "Value=", ENDITEM,
"Name=txtbzh1", "Value=", ENDITEM,
"Name=txtshl1", "Value=1", ENDITEM,
"Name=txtdw1", "Value=dd", ENDITEM,
"Name=txtdjMoney1", "Value=100", ENDITEM,
"Name=sumMoney1", "Value=100", ENDITEM,
"Name=Hidden1", "Value=0", ENDITEM,
"Name=Hidden2", "Value=0", ENDITEM,
"Name=zyqx", "Value=", ENDITEM,
"Name=fktj", "Value=", ENDITEM,
"Name=zyka", "Value=", ENDITEM,
"Name=ysfs", "Value=", ENDITEM,
"Name=mdg", "Value=", ENDITEM,
"Name=bx", "Value=", ENDITEM,
"Name=bz", "Value=", ENDITEM,
"Name=txtbao1", "Value=0", ENDITEM,
"Name=auflag", "Value=add", ENDITEM,
"Name=txtyun1", "Value=0", ENDITEM,
LAST);
web_submit_data("Partscontract.aspx_3",
"Action=http://10.3.1.101/quote/secure/Partscontract.aspx",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://10.3.1.101/quote/secure/Partscontract.aspx",
"Snapshot=t6.inf",
"Mode=HTML",
ITEMDATA,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState9}", ENDITEM,
"Name=txtdd", "Value=PHA0407001", ENDITEM,
"Name=htdate", "Value=2007-7-27", ENDITEM,
"Name=jgtk", "Value=FOB", ENDITEM,
"Name=yunf", "Value=0", ENDITEM,
"Name=baof", "Value=0", ENDITEM,
"Name=yongj", "Value=0", ENDITEM,
"Name=txtsum", "Value=100", ENDITEM,
"Name=sname", "Value=ANHUI HELI INDUSTRIAL VENHICLE IMP & EXP CO.,LTD", ENDITEM,
"Name=bname", "Value=dwef", ENDITEM,
"Name=saddr", "Value=ADD:15 WANG JIANG WEST ROAD HEFEI CHINA", ENDITEM,
"Name=baddr", "Value=ADD:", ENDITEM,
"Name=stel", "Value=TEL:0551-3639258 FAX:(0551)363966", ENDITEM,
"Name=btel", "Value=", ENDITEM,
"Name=txtPjname1", "Value=", ENDITEM,
"Name=txtTj1", "Value=", ENDITEM,
"Name=txtMzh1", "Value=", ENDITEM,
"Name=txtbzh1", "Value=", ENDITEM,
"Name=txtshl1", "Value=1", ENDITEM,
"Name=txtdw1", "Value=", ENDITEM,
"Name=txtdjMoney1", "Value=0", ENDITEM,
"Name=sumMoney1", "Value=0", ENDITEM,
"Name=Hidden1", "Value=0", ENDITEM,
"Name=Hidden2", "Value=0", ENDITEM,
"Name=zyqx", "Value=", ENDITEM,
"Name=fktj", "Value=", ENDITEM,
"Name=zyka", "Value=", ENDITEM,
"Name=ysfs", "Value=", ENDITEM,
"Name=mdg", "Value=", ENDITEM,
"Name=bx", "Value=", ENDITEM,
"Name=bz", "Value=", ENDITEM,
"Name=Cmds", "Value=确定", ENDITEM,
"Name=txtbao1", "Value=0", ENDITEM,
"Name=auflag", "Value=add", ENDITEM,
"Name=txtyun1", "Value=0", ENDITEM,
LAST);
web_url("配件合同_2",
"URL=http://10.3.1.101/quote/secure/Partscontract.aspx",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t7.inf",
"Mode=HTML",
LAST);
web_url("重新登录",
"URL=http://10.3.1.101/quote/secure/logon.aspx",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.3.1.101/quote/secure/Partscontract.aspx",
"Snapshot=t8.inf",
"Mode=HTML",
LAST);
return 0;
} 关联有问题 能否将你的整个脚本打包贴出来, 只是贴出来代码比较难以分析问题原因所在! 很明显, 你关联的参数没有找到。。。你可以对比一下 replay和record的 server response 楼主的问题是:怎么解决这个问题。不要老说:”关联有问题!“。 是个人都知道关联有问题!
回帖子的人应该给出的是具体的解决方案, 作技术不同于作管理, 要厚道! 我也碰到同样的问题,
你录制合同的时候,肯定会生成一个合同号,而角本回放的时候,没对生成的单据号做关联,会找已经生成的合同号。
期盼解决 我导进来一份,我录制的角本,对部分数据,我已做参数化,
盼高人解决问题 楼上的数据有丢失,你那外网能访问不?
[ 本帖最后由 haiquan180 于 2007-8-1 18:15 编辑 ] web_reg_save_param("Siebel_Analytic_ViewState2",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
你的左右关联的参数都是空的啊?你用的是自动关联吧? web_set_max_html_param_len("1864");
我将参数长度改成99999,就不报错了。
sdlkfj4 你的问题解决了吗?我也是遇到同样的问题! 关联设置的参数有问题 我也遇到类似的问题。你的问题解决了吗? 原帖由 tanbofish 于 2007-8-1 22:46 发表 http://bbs.51testing.com/images/common/back.gif
web_reg_save_param("Siebel_Analytic_ViewState2",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
...
要做关联真在研究 有结果了我会粘贴出来
页:
[1]