yb0921 发表于 2013-11-27 16:51:53

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       
Apply.c(31): web_submit_data("login") highest severity level was "ERROR", 4615 body bytes, 376 header bytes       

Nio 发表于 2013-12-31 16:36:56

右边界设置错误"RB=\";\r\n\r\n</script",

\r\n\r\n 是你要匹配的字符么? \\r\\n\\r\\n

我是真不会 发表于 2014-1-1 21:49:51

直接使用手动关联,应该更靠谱一些。
页: [1]
查看完整版本: LR11脚本回放无法正常关联