51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 2286|回复: 8
打印 上一主题 下一主题

[求助] loadrunner 错误 -35061: 找不到请求的参数“CorrelationParameter_1”的匹配项。

[复制链接]
  • TA的每日心情
    奋斗
    2018-11-1 08:22
  • 签到天数: 3 天

    连续签到: 1 天

    [LV.2]测试排长

    跳转到指定楼层
    1#
    发表于 2018-10-25 15:17:13 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    错误 -35061: 找不到请求的参数“CorrelationParameter_1”的匹配项。检查请求的边界是否存在于响应数据中。
    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    2018-11-1 08:22
  • 签到天数: 3 天

    连续签到: 1 天

    [LV.2]测试排长

    3#
     楼主| 发表于 2018-10-25 15:20:03 | 只看该作者
    Action()
    {

            web_url("WebTours",
                    "URL=http://localhost:1080/WebTours/",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=",
                    "Mode=HTTP",
                    LAST);

            web_url("header.html",
                    "URL=http://localhost:1080/WebTours/header.html",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://localhost:1080/WebTours/",
                    "Mode=HTTP",
                    LAST);

            web_url("welcome.pl",
                    "URL=http://localhost:1080/WebTours/welcome.pl?signOff=true",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://localhost:1080/WebTours/",
                    "Snapshot=t1.inf",
                    "Mode=HTTP",
                    LAST);
        web_set_max_html_param_len("1024000");
            web_concurrent_start(NULL);
       
            web_url("home.html",
                    "URL=http://localhost:1080/WebTours/home.html",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://localhost:1080/WebTours/welcome.pl?signOff=true",
                    "Mode=HTTP",
                    LAST);

    //Correlation comment - Do not change!Original value='124783.274767112ztVifDQpzQfiDDDDDifVVpcDiVHf' Name ='CorrelationParameter_1'
       
            web_reg_save_param_ex(
                    "ParamName=CorrelationParameter_1",
                    "LB=name=userSession value=",
                    "RB=>",
                    SEARCH_FILTERS,
                    "Scope=Body",
                    "RequestUrl=*/nav.pl*",
                    LAST);

            web_url("nav.pl",
                    "URL=http://localhost:1080/WebTours/nav.pl?in=home",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://localhost:1080/WebTours/welcome.pl?signOff=true",
                    "Snapshot=t2.inf",
                    "Mode=HTTP",
                    LAST);

            web_concurrent_end(NULL);

            lr_think_time(7);

            web_submit_data("login.pl",
                    "Action=http://localhost:1080/WebTours/login.pl",
                    "Method=POST",
                    "RecContentType=text/html",
                    "Referer=http://localhost:1080/WebTours/nav.pl?in=home",
                    "Snapshot=t3.inf",
                    "Mode=HTTP",
                    ITEMDATA,
                    "Name=userSession", "Value={CorrelationParameter_1}", ENDITEM,
                    "Name=username", "Value=jojo", ENDITEM,
                    "Name=password", "Value=bean", ENDITEM,
                    "Name=login.x", "Value=40", ENDITEM,
                    "Name=login.y", "Value=3", ENDITEM,
                    "Name=login", "Value=Login", ENDITEM,
                    "Name=JSFormSubmit", "Value=off", ENDITEM,
                    LAST);

            web_url("nav.pl_2",
                    "URL=http://localhost:1080/WebTours/nav.pl?page=menu&in=home",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://localhost:1080/WebTours/login.pl",
                    "Snapshot=t4.inf",
                    "Mode=HTTP",
                    LAST);

            web_url("Search Flights Button",
                    "URL=http://localhost:1080/WebTours/welcome.pl?page=search",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://localhost:1080/WebTours/nav.pl?page=menu&in=home",
                    "Snapshot=t5.inf",
                    "Mode=HTTP",
                    LAST);

            web_concurrent_start(NULL);

            web_url("nav.pl_3",
                    "URL=http://localhost:1080/WebTours/nav.pl?page=menu&in=flights",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://localhost:1080/WebTours/welcome.pl?page=search",
                    "Snapshot=t6.inf",
                    "Mode=HTTP",
                    LAST);

            web_url("reservations.pl",
                    "URL=http://localhost:1080/WebTours/reservations.pl?page=welcome",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://localhost:1080/WebTours/welcome.pl?page=search",
                    "Snapshot=t7.inf",
                    "Mode=HTTP",
                    LAST);

            web_concurrent_end(NULL);

            web_concurrent_start(NULL);

            web_url("FormDateUpdate.class",
                    "URL=http://localhost:1080/WebTours/FormDateUpdate.class",
                    "Resource=1",
                    "RecContentType=*/*",
                    "Referer=http://localhost:1080/WebTours/reservations.pl?page=welcome",
                    "Snapshot=t8.inf",
                    LAST);

            web_url("FormDateUpdate.class_2",
                    "URL=http://localhost:1080/WebTours/FormDateUpdate.class",
                    "Resource=1",
                    "RecContentType=*/*",
                    "Referer=http://localhost:1080/WebTours/reservations.pl?page=welcome",
                    "Snapshot=t9.inf",
                    LAST);

            web_concurrent_end(NULL);

            lr_think_time(4);

            web_submit_data("reservations.pl_2",
                    "Action=http://localhost:1080/WebTours/reservations.pl",
                    "Method=POST",
                    "RecContentType=text/html",
                    "Referer=http://localhost:1080/WebTours/reservations.pl?page=welcome",
                    "Snapshot=t10.inf",
                    "Mode=HTTP",
                    ITEMDATA,
                    "Name=advanceDiscount", "Value=0", ENDITEM,
                    "Name=depart", "Value=Denver", ENDITEM,
                    "Name=departDate", "Value=10/26/2018", ENDITEM,
                    "Name=arrive", "Value=Denver", ENDITEM,
                    "Name=returnDate", "Value=10/27/2018", ENDITEM,
                    "Name=numPassengers", "Value=1", ENDITEM,
                    "Name=seatPref", "Value=None", ENDITEM,
                    "Name=seatType", "Value=Business", ENDITEM,
                    "Name=findFlights.x", "Value=60", ENDITEM,
                    "Name=findFlights.y", "Value=4", ENDITEM,
                    "Name=.cgifields", "Value=roundtrip", ENDITEM,
                    "Name=.cgifields", "Value=seatType", ENDITEM,
                    "Name=.cgifields", "Value=seatPref", ENDITEM,
                    LAST);

            web_submit_data("reservations.pl_3",
                    "Action=http://localhost:1080/WebTours/reservations.pl",
                    "Method=POST",
                    "RecContentType=text/html",
                    "Referer=http://localhost:1080/WebTours/reservations.pl",
                    "Snapshot=t11.inf",
                    "Mode=HTTP",
                    ITEMDATA,
                    "Name=outboundFlight", "Value=001;0;10/26/2018", ENDITEM,
                    "Name=numPassengers", "Value=1", ENDITEM,
                    "Name=advanceDiscount", "Value=0", ENDITEM,
                    "Name=seatType", "Value=Business", ENDITEM,
                    "Name=seatPref", "Value=None", ENDITEM,
                    "Name=reserveFlights.x", "Value=45", ENDITEM,
                    "Name=reserveFlights.y", "Value=13", ENDITEM,
                    LAST);

            web_submit_data("reservations.pl_4",
                    "Action=http://localhost:1080/WebTours/reservations.pl",
                    "Method=POST",
                    "RecContentType=text/html",
                    "Referer=http://localhost:1080/WebTours/reservations.pl",
                    "Snapshot=t12.inf",
                    "Mode=HTTP",
                    ITEMDATA,
                    "Name=firstName", "Value=Joseph", ENDITEM,
                    "Name=lastName", "Value=Marshall", ENDITEM,
                    "Name=address1", "Value=234 Willow Drive", ENDITEM,
                    "Name=address2", "Value=San Jose/CA/94085", ENDITEM,
                    "Name=pass1", "Value=Joseph Marshall", ENDITEM,
                    "Name=creditCard", "Value=", ENDITEM,
                    "Name=expDate", "Value=", ENDITEM,
                    "Name=oldCCOption", "Value=", ENDITEM,
                    "Name=numPassengers", "Value=1", ENDITEM,
                    "Name=seatType", "Value=Business", ENDITEM,
                    "Name=seatPref", "Value=None", ENDITEM,
                    "Name=outboundFlight", "Value=001;0;10/26/2018", ENDITEM,
                    "Name=advanceDiscount", "Value=0", ENDITEM,
                    "Name=returnFlight", "Value=", ENDITEM,
                    "Name=JSFormSubmit", "Value=off", ENDITEM,
                    "Name=buyFlights.x", "Value=37", ENDITEM,
                    "Name=buyFlights.y", "Value=2", ENDITEM,
                    "Name=.cgifields", "Value=saveCC", ENDITEM,
                    LAST);

            web_url("Itinerary Button",
                    "URL=http://localhost:1080/WebTours/welcome.pl?page=itinerary",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://localhost:1080/WebTours/nav.pl?page=menu&in=flights",
                    "Snapshot=t13.inf",
                    "Mode=HTTP",
                    LAST);

            web_concurrent_start(NULL);

            web_url("itinerary.pl",
                    "URL=http://localhost:1080/WebTours/itinerary.pl",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://localhost:1080/WebTours/welcome.pl?page=itinerary",
                    "Snapshot=t14.inf",
                    "Mode=HTTP",
                    LAST);

            web_url("nav.pl_4",
                    "URL=http://localhost:1080/WebTours/nav.pl?page=menu&in=itinerary",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://localhost:1080/WebTours/welcome.pl?page=itinerary",
                    "Snapshot=t15.inf",
                    "Mode=HTTP",
                    LAST);

            web_concurrent_end(NULL);

    return 0;
    }
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    奋斗
    2018-11-1 08:22
  • 签到天数: 3 天

    连续签到: 1 天

    [LV.2]测试排长

    4#
     楼主| 发表于 2018-10-25 15:21:17 | 只看该作者
       web_set_max_html_param_len("1024000");
            web_concurrent_start(NULL);
       
            web_url("home.html",
                    "URL=http://localhost:1080/WebTours/home.html",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://localhost:1080/WebTours/welcome.pl?signOff=true",
                    "Mode=HTTP",
                    LAST);

    //Correlation comment - Do not change!Original value='124783.274767112ztVifDQpzQfiDDDDDifVVpcDiVHf' Name ='CorrelationParameter_1'
       
            web_reg_save_param_ex(
                    "ParamName=CorrelationParameter_1",
                    "LB=name=userSession value=",
                    "RB=>",
                    SEARCH_FILTERS,
                    "Scope=Body",
                    "RequestUrl=*/nav.pl*",
                    LAST);

            web_url("nav.pl",
                    "URL=http://localhost:1080/WebTours/nav.pl?in=home",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://localhost:1080/WebTours/welcome.pl?signOff=true",
                    "Snapshot=t2.inf",
                    "Mode=HTTP",
                    LAST);

            web_concurrent_end(NULL);

            lr_think_time(7);

            web_submit_data("login.pl",
                    "Action=http://localhost:1080/WebTours/login.pl",
                    "Method=POST",
                    "RecContentType=text/html",
                    "Referer=http://localhost:1080/WebTours/nav.pl?in=home",
                    "Snapshot=t3.inf",
                    "Mode=HTTP",
                    ITEMDATA,
                    "Name=userSession", "Value={CorrelationParameter_1}", ENDITEM,
                    "Name=username", "Value=jojo", ENDITEM,
                    "Name=password", "Value=bean", ENDITEM,
                    "Name=login.x", "Value=40", ENDITEM,
                    "Name=login.y", "Value=3", ENDITEM,
                    "Name=login", "Value=Login", ENDITEM,
                    "Name=JSFormSubmit", "Value=off", ENDITEM,
                    LAST);
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    奋斗
    2018-11-1 08:22
  • 签到天数: 3 天

    连续签到: 1 天

    [LV.2]测试排长

    5#
     楼主| 发表于 2018-10-25 15:23:53 | 只看该作者
    哪位高手回答一下,卡在这了,百度了半天,解决不了问题啊。。。。
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    6#
    发表于 2018-10-30 11:03:23 | 只看该作者
    要么关联位置不对,要么左右边界取值错误
    回复 支持 反对

    使用道具 举报

  • TA的每日心情

    2016-11-1 14:56
  • 签到天数: 6 天

    连续签到: 1 天

    [LV.2]测试排长

    7#
    发表于 2018-11-5 17:56:08 | 只看该作者
    从你的脚本中来看,关联不对。
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    奋斗
    2015-9-9 14:44
  • 签到天数: 27 天

    连续签到: 2 天

    [LV.4]测试营长

    9#
    发表于 2018-11-16 16:19:02 | 只看该作者
    要把日志的该部分贴出来才能确定关联的左右边界,遇到"前面要加转意符\,猜测一下大约是改成这样,试一下
    web_reg_save_param_ex(
                    "ParamName=CorrelationParameter_1",
                    "LB=name=userSession\"  \"value=\"",
                    "RB=\"",
                    SEARCH_FILTERS,
                    "Scope=Body",
                    "RequestUrl=*/nav.pl*",
                    LAST);
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-5-20 23:55 , Processed in 0.079219 second(s), 23 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表