51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 7793|回复: 5
打印 上一主题 下一主题

[求助] loadrunner11验证回放you've reached this page incorrectly

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2013-2-25 10:14:26 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
击验证回放的时候出现you've reached this page incorrectly(probably a bad user session value).please use this link.显示不了原本录制的内容,这是怎么回事啊,录制的时候都好好的,都可以用的呀··
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2013-2-25 12:14:02 | 只看该作者
你没做关联,导致sessionid验证错误
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2013-2-26 11:27:22 | 只看该作者
回复 2# 云层


    奇怪呀,我后面又重现录制了一遍,结果验证回放的时候又可以了,这又是什么原因呢?
回复 支持 反对

使用道具 举报

该用户从未签到

4#
发表于 2018-10-14 09:15:49 | 只看该作者
作为新手,我要碰到这个坑, 按照其说明,加了关联session的代码,就回放成功了, 供参考:

Action()
{  
        web_reg_save_param("web_session",    //add a the web_seesion to record the session value
                                           "LB=name=userSession value=",
                                           "RB=>",
                                           "Ord=1",
                                           "Search=body",
                                           LAST);

        web_url("WebTours",
                "URL=http://127.0.0.1:1080/WebTours/",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t4.inf",
                "Mode=HTML",
                LAST);

        lr_think_time(8);

        web_submit_data("login.pl",
                "Action=http://127.0.0.1:1080/WebTours/login.pl",
                "Method=POST",
                "TargetFrame=body",
                "RecContentType=text/html",
                "Referer=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
                "Snapshot=t5.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=userSession", "Value={web_session}", ENDITEM,  //here we use the web_session param
                "Name=username", "Value=admin", ENDITEM,
                "Name=password", "Value=admin", ENDITEM,
                "Name=JSFormSubmit", "Value=off", ENDITEM,
                "Name=login.x", "Value=58", ENDITEM,
                "Name=login.y", "Value=9", ENDITEM,
                LAST);

        web_reg_find("Text=pansc", LAST ); //check whether the login process is successful or failed.

        lr_think_time(10);

        web_url("SignOff Button",
                "URL=http://127.0.0.1:1080/WebTours/welcome.pl?signOff=1",
                "TargetFrame=body",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://127.0.0.1:1080/WebTours/nav.pl?page=menu&in=home",
                "Snapshot=t6.inf",
                "Mode=HTML",
                LAST);

        return 0;
}

回复 支持 反对

使用道具 举报

该用户从未签到

5#
发表于 2018-10-14 10:49:47 | 只看该作者
Action()
{  
        web_reg_save_param("web_session",    //add a the web_seesion to record the session value
                                           "LB=name=userSession value=",
                                           "RB=>",
                                           "Ord=1",
                                           "Search=body",
                                           LAST);

        web_url("WebTours",
                "URL=http://127.0.0.1:1080/WebTours/",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t4.inf",
                "Mode=HTML",
                LAST);

        lr_think_time(8);

        web_reg_find("Text=admin",
                                 "SaveCount=account_count",
                                  LAST ); //check whether the login process is successful or failed.

        web_submit_data("login.pl",
                "Action=http://127.0.0.1:1080/WebTours/login.pl",
                "Method=POST",
                "TargetFrame=body",
                "RecContentType=text/html",
                "Referer=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
                "Snapshot=t5.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=userSession", "Value={web_session}", ENDITEM,  //here we use the web_session param
                "Name=username", "Value=admin", ENDITEM,
                "Name=password", "Value=admin", ENDITEM,
                "Name=JSFormSubmit", "Value=off", ENDITEM,
                "Name=login.x", "Value=58", ENDITEM,
                "Name=login.y", "Value=9", ENDITEM,
                LAST);

        lr_think_time(10);

        //check result
        if (atoi(lr_eval_string("{account_count}")) > 0) {
                lr_output_message("Log on successful.");
        }
        else{
                lr_error_message("Log on failed");
        }

           
        web_image_check("web_image_check",
                "Src=/WebTours/images/signoff.gif",
                LAST);

        web_url("SignOff Button",
                "URL=http://127.0.0.1:1080/WebTours/welcome.pl?signOff=1",
                "TargetFrame=body",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://127.0.0.1:1080/WebTours/nav.pl?page=menu&in=home",
                "Snapshot=t6.inf",
                "Mode=HTML",
                LAST);

        return 0;
}
回复 支持 反对

使用道具 举报

该用户从未签到

6#
发表于 2019-7-25 10:41:12 | 只看该作者
回望生 发表于 2018-10-14 10:49
Action()
{  
        web_reg_save_param("web_session",    //add a the web_seesion to record the session v ...

大哥,你关联 右边 的 >哪来的?
回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-5-7 15:53 , Processed in 0.153956 second(s), 26 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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