51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 3388|回复: 4
打印 上一主题 下一主题

[求助] LR录制回放后出现的问题

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2008-9-19 13:59:20 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
回放后,出现以下问题:
Action.c(64): Error -26377: No match found for the requested parameter "Siebel_Analytic_ViewState5". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 1024 bytes, use web_set_max_html_param_len to increase the parameter size          [MsgId: MERR-26377]
Action.c(64): Notify: Saving Parameter "Siebel_Analytic_ViewState5 = "
Action.c(64): web_url("main.aspx") highest severity level was "ERROR", 9098 body bytes, 548 header bytes          [MsgId: MMSG-26388]
在网上也找了类似问题的解决方法,但是还会出现,不知道该怎么解决。希望能得到大家的帮助!!!!!!!!!!!

录制脚本如下:
#include "web_api.h"


Action()
{
        web_set_max_html_param_len("1024");

        /* Registering parameter(s) from source task id 2
        // {Siebel_Analytic_ViewState2} = "/wEPDwUKLTQ4MzY3MzY3M2RkY9DKNpQaQP+c+vaSGjgtpMbsX5M="
        // */
        web_reg_save_param("Siebel_Analytic_ViewState2",
                "LB/IC=ViewState\" value=\"",
                "RB/IC=\"",
                "Ord=1",
                "Search=Body",
                "RelFrameId=1",
                LAST);

        web_url("192.168.0.95:88",
                "URL=http://192.168.0.95:88/",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t1.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=/images/login-center.gif", ENDITEM,
                "Url=/images/key.gif", ENDITEM,
                LAST);

        lr_think_time( 10 );

        web_submit_data("login.aspx",
                "Action=http://192.168.0.95:88/login.aspx",
                "Method=POST",
                "TargetFrame=",
                "RecContentType=text/html",
                "Referer=http://192.168.0.95:88/",
                "Snapshot=t2.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=__EVENTTARGET", "Value=", ENDITEM,
                "Name=__EVENTARGUMENT", "Value=", ENDITEM,
                "Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState2}", ENDITEM,
                "Name=txtUserName", "Value=admin", ENDITEM,
                "Name=txtPwd", "Value=123", ENDITEM,
                "Name=txtCode", "Value=EHW5L", ENDITEM,
                "Name=btnOk", "Value=登 录", ENDITEM,
                "Name=__EVENTVALIDATION", "Value=/wEWBQK7lLPZDQKl1bKzCQKd+7qdDgLChPzDDQL9kpmPAcGbHa/cF/m6Ccwt+KRwahjl65jD", ENDITEM,
                LAST);

        /* Registering parameter(s) from source task id 22
        // {Siebel_Analytic_ViewState5} = "/wEPDwUJMjA3ODg2NzYyD2QWAgIDD2QWBgIFDxAPFgIeB0VuYWJsZWRoZBAVCwnmna3lt57luIIJ5rip5bee5biCCeWYieWFtOW4ggnmuZblt57luIIJ57uN5YW05biCCemHkeWNjuW4ggnooaLlt57luIIJ6Iif5bGx5biCCeWPsOW3nuW4ggnkuL3msLTluIIV5rWZ5rGf55yB5YS/56ul5Yy76ZmiFQsCMDECMDMCMDQCMDUCMDYCMDcCMDgCMDkCMTACMjUCOTkUKwMLZ2dnZ2dnZ2dnZ2cWAQIBZAIHDxBkEBUMBuWFqOmDqAnpub/ln47ljLoJ6b6Z5rm+5Yy6CeeTr+a1t+WMugnmtJ7lpLTljr8J5rC45ZiJ5Y6/CeW5s+mYs+WOvwnoi43ljZfljr8J5paH5oiQ5Y6/CeazsOmhuuWOvwnnkZ7lronluIIJ5LmQ5riF5biCFQwABDAzMDIEMDMwMwQwMzA0BDAzMjIEMDMyNAQwMzI2BDAzMjcEMDMyOAQwMzI5BDAzODEEMDM4MhQrAwxnZ2dnZ2dnZ2dnZ2cWAWZkAgkPEGQQFQEG5YWo6YOoFQEAFCsDAWcWAWZkZJW60JxrHPpPiLHntLKEdKee93hZ"
        // */
        web_reg_save_param("Siebel_Analytic_ViewState5",
                "LB/IC=ViewState\" value=\"",
                "RB/IC=\"",
                "Ord=1",
                "Search=Body",
                "RelFrameId=1.2",
                LAST);

        web_url("main.aspx",
                "URL=http://192.168.0.95:88/main.aspx",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t3.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=/images/admin_default/admin_top_bg.gif", "Referer=http://192.168.0.95:88/topframe.aspx", ENDITEM,
                "Url=/images/admin_default/admin_title_bg_show.gif", "Referer=http://192.168.0.95:88/leftframe.aspx", ENDITEM,
                "Url=/images/admin_default/admin_title_bg_quit.gif", "Referer=http://192.168.0.95:88/leftframe.aspx", ENDITEM,
                "Url=/Images/Design/BlueTopMiddle.gif", "Referer=http://192.168.0.95:88/Reportframe.aspx", ENDITEM,
                "Url=/Images/Design/BlueBottomLeft.gif", "Referer=http://192.168.0.95:88/Reportframe.aspx", ENDITEM,
                "Url=/Images/Design/BlueBottomRight.gif", "Referer=http://192.168.0.95:88/Reportframe.aspx", ENDITEM,
                "Url=/Images/Design/BlueTopLeft.gif", "Referer=http://192.168.0.95:88/Reportframe.aspx", ENDITEM,
                "Url=/Images/Design/BlueTopRight.gif", "Referer=http://192.168.0.95:88/Reportframe.aspx", ENDITEM,
                "Url=/Reportframe.aspx?RVC_HospitalResult1_ReportViewer1_state=unload", "Referer=http://192.168.0.95:88/Reportframe.aspx", ENDITEM,
                LAST);

        lr_think_time( 6 );

        web_submit_data("topframe.aspx",
                "Action=http://192.168.0.95:88/topframe.aspx",
                "Method=POST",
                "TargetFrame=",
                "RecContentType=text/html",
                "Referer=http://192.168.0.95:88/topframe.aspx",
                "Snapshot=t4.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=__EVENTTARGET", "Value=", ENDITEM,
                "Name=__EVENTARGUMENT", "Value=", ENDITEM,
                "Name=__LASTFOCUS", "Value=", ENDITEM,
                "Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState5}", ENDITEM,
                "Name=txtStartDateTime", "Value=2008-5-1", ENDITEM,
                "Name=txtEndDateTime", "Value=2008-9-19", ENDITEM,
                "Name=DropDCounty", "Value=", ENDITEM,
                "Name=DropDHospital", "Value=", ENDITEM,
                "Name=btnSet", "Value=设置查询条件", ENDITEM,
                "Name=__EVENTVALIDATION", "Value=/wEWHwKVvPXxBAKqvsy6DgLmtq2iDQKl9IibBwK1m+72CwK1m9b2CwK1m9L2CwK1m972CwK1m9r2CwK1m8b2CwK1m4L1CwK1m471CwKqm+L2CwKrm972CwKym471CwKjwpDMBAKjwpDMBAKJ7ImdCgKJ7JW6AQKJ7OHWCQLDwsW3BgLDwr2JBQLDwpXDBALDwuH/AwLDwo3HDgLDwpn8BQLxpq7OAgLxprrrCQKXy7iHBgKXy7iHBgKLk9nUCXpk4iKBKKXGh3KgCLVPMhMos0xL", ENDITEM,
                EXTRARES,
                "Url=/images/admin_default/admin_top_bg.gif", ENDITEM,
                LAST);

        web_url("Reportframe.aspx",
                "URL=http://192.168.0.95:88/Reportframe.aspx",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://192.168.0.95:88/leftframe.aspx",
                "Snapshot=t5.inf",
                "Mode=HTML",
                LAST);

        lr_think_time( 3 );

        web_url("Reportframe.aspx_2",
                "URL=http://192.168.0.95:88/Reportframe.aspx?act=search&requestID=16&num=1&PageIndex=1",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://192.168.0.95:88/main.aspx",
                "Snapshot=t6.inf",
                "Mode=HTML",
                LAST);

        lr_think_time( 4 );

        web_url("Reportframe.aspx_3",
                "URL=http://192.168.0.95:88/Reportframe.aspx?act=search&requestID=16&num=2&PageIndex=1",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://192.168.0.95:88/main.aspx",
                "Snapshot=t7.inf",
                "Mode=HTML",
                LAST);

        lr_think_time( 3 );

        web_url("Reportframe.aspx_4",
                "URL=http://192.168.0.95:88/Reportframe.aspx?act=search&requestID=16&num=3&PageIndex=1",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://192.168.0.95:88/main.aspx",
                "Snapshot=t8.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=/Images/Design/BlueTopMiddle.gif", "Referer=http://192.168.0.95:88/Reportframe.aspx?act=return", ENDITEM,
                "Url=/Images/Design/BlueBottomLeft.gif", "Referer=http://192.168.0.95:88/Reportframe.aspx?act=return", ENDITEM,
                "Url=/Images/Design/BlueBottomRight.gif", "Referer=http://192.168.0.95:88/Reportframe.aspx?act=return", ENDITEM,
                "Url=/Images/Design/BlueTopRight.gif", "Referer=http://192.168.0.95:88/Reportframe.aspx?act=return", ENDITEM,
                "Url=/Images/Design/BlueTopLeft.gif", "Referer=http://192.168.0.95:88/Reportframe.aspx?act=return", ENDITEM,
                LAST);

        return 0;
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2008-9-19 14:15:16 | 只看该作者

我也是出现这种问题

麻烦的很
web_submit_data("Default.aspx") highest severity level was "ERROR", 6985 body bytes, 241 header bytes          [MsgId: MMSG-26388]

我也是这种问题
我用的;LR8.1

出错的信息如上面的  

出错指向代码

        web_submit_data("Default.aspx",
                "Action=http://192.0.0.14:8000/BJCostWeb/Default.aspx",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://192.0.0.14:8000/BJCostWeb/",
                "Snapshot=t2.inf",
                "Mode=HTML",
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2008-9-19 14:17:25 | 只看该作者
按照网上说的 RECORDING OPTIONS  在RECORDING 项里面 设置RECORDING LEVEL
把原来的 HTML-BASED ECRIPT 设置成为
URL-BASED SCRIPT  还是不成。照样重新录制会报错误
回复 支持 反对

使用道具 举报

该用户从未签到

4#
发表于 2010-6-9 14:50:51 | 只看该作者
同问,怎么没答案?
回复 支持 反对

使用道具 举报

  • TA的每日心情
    开心
    2014-10-24 09:36
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    5#
    发表于 2010-6-9 15:12:44 | 只看该作者
    提交之后的关联出了问题,没有找到关联的数据
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-11-23 19:52 , Processed in 0.071594 second(s), 28 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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