51Testing软件测试论坛

标题: LR回放问题 [打印本页]

作者: luzhijj@yahoo    时间: 2013-3-6 15:44
标题: LR回放问题
为什么,我回放时出错后,关联了动态会话值后,再次回放,是成功的。
但是后面回放就开始出错。

Action.c(37): Error -35061: No match found for the requested parameter "CorrelationParameter_1". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size          [MsgId: MERR-35061]
Action.c(37): web_url("WebTours") highest severity level was "ERROR", 6876 body bytes, 1808 header bytes          [MsgId: MMSG-26388]

上面是出错信息

下面是我关联后生成的代码
//Correlation comment - Do not change!Original value='5690563' Name ='CorrelationParameter_1'

        web_reg_save_param_ex(
                "ParamName=CorrelationParameter_1",
                "LB=110372.9",
                "RB=f",
                SEARCH_FILTERS,
                "Scope=Body",
                "RequestUrl=*/nav.pl*",
                LAST);

//Correlation comment - Do not change!Original value='ipQHAiDDDD' Name ='CorrelationParameter_2'

        web_reg_save_param_ex(
                "ParamName=CorrelationParameter_2",
                "LB=A",
                "RB=D",
                SEARCH_FILTERS,
                "Scope=Body",
                "RequestUrl=*/nav.pl*",
                LAST);

//Correlation comment - Do not change!Original value='Dicf' Name ='CorrelationParameter_3'

        web_reg_save_param_ex(
                "ParamName=CorrelationParameter_3",
                "LB=f",
                "RB=>\n<table border",
                SEARCH_FILTERS,
                "Scope=Body",
                "RequestUrl=*/nav.pl*",
                LAST);
作者: qiqiloveyunyun    时间: 2013-3-20 10:55
一看就是自动关联的,这种方式可能会不准确的,手动关联吧,欢迎加入测试群:260113421
作者: msnshow    时间: 2013-3-20 13:46
的确自动关联有时太笨了一点
作者: standmyground    时间: 2013-3-20 17:13
路过




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