51Testing软件测试论坛

标题: LR11脚本回放无法正常关联 [打印本页]

作者: yb0921    时间: 2013-11-27 16:51
标题: LR11脚本回放无法正常关联
脚本刚做完后回放了两次,都是回放成功的,但是过了一会,再次回放的时候便报35061的错。为什么会有这种情况发生呢??????求解吖!!!!

脚本:
//Correlation comment - Do not change!Original value='ST-101-JtOlgHe2SNX4Yf6aq6LG' Name ='CorrelationParameter_2'
        web_reg_save_param_ex(
                "ParamName=CorrelationParameter_2",
                "LB=ticket=",
                "RB=\";\r\n\r\n</script",
                SEARCH_FILTERS,
                "Scope=Body",
                "RequestUrl=*/login*",
                LAST);
        web_submit_data("login",
                "Action=http://10.3.1.200/sso/login?service=http%3A%2F%2F10.1.29.2%3A7001%2Ftpp-bm%2Ftpp-bm%2Fmain.jsp",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://10.3.1.200/sso/login?service=http%3A%2F%2F10.1.29.2%3A7001%2Ftpp-bm%2Ftpp-bm%2Fmain.jsp",
                "Snapshot=t2.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=lt", "Value=LT-311-pwY1Qmpktb2QiTkGsMPq", ENDITEM,
                "Name=username", "Value=huhm", ENDITEM,
                "Name=email_prefix", "Value=huhm", ENDITEM,
                "Name=password", "Value=password", ENDITEM,
                LAST);

        web_add_cookie("1; DOMAIN=10.1.29.2");

        web_url("main.jsp_2",
                "URL=http://10.1.29.2:7001/tpp-bm/tpp-bm/main.jsp?ticket={CorrelationParameter_2}",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t3.inf",
                "Mode=HTML",
                EXTRARES,
                "URL=images/Lplus.png", "Referer=http://10.1.29.2:7001/tpp-bm/tpp-bm/menu.jsp", ENDITEM,
                "URL=images/foldericon.png", "Referer=http://10.1.29.2:7001/tpp-bm/tpp-bm/menu.jsp", ENDITEM,
                "URL=images/I.png", "Referer=http://10.1.29.2:7001/tpp-bm/tpp-bm/menu.jsp", ENDITEM,
                "URL=images/blank.png", "Referer=http://10.1.29.2:7001/tpp-bm/tpp-bm/menu.jsp", ENDITEM,
                "URL=images/Tplus.png", "Referer=http://10.1.29.2:7001/tpp-bm/tpp-bm/menu.jsp", ENDITEM


报错:
Apply.c(31): Error -35061: No match found for the requested parameter "CorrelationParameter_2". 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]
Apply.c(31): web_submit_data("login") highest severity level was "ERROR", 4615 body bytes, 376 header bytes          [MsgId: MMSG-26388]
作者: Nio    时间: 2013-12-31 16:36
右边界设置错误"RB=\";\r\n\r\n</script",

\r\n\r\n 是你要匹配的字符么? \\r\\n\\r\\n
作者: 我是真不会    时间: 2014-1-1 21:49
直接使用手动关联,应该更靠谱一些。




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