51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

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

[原创] 请帮忙

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2008-9-2 11:06:23 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
录制脚本时用WEB(HTTP/HTML)协议进行录制,是一段聊天室脚本,脚本回放时运行到附件高亮部分终止,不知道是什么原因
请帮忙谢谢

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?(注-册)加入51Testing

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

使用道具 举报

  • TA的每日心情

    2016-12-30 10:59
  • 签到天数: 6 天

    连续签到: 1 天

    [LV.2]测试排长

    2#
    发表于 2008-9-2 15:08:12 | 只看该作者
    如何终止了?提示什么错误信息?你提供的信息太少
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    3#
     楼主| 发表于 2008-9-2 16:22:37 | 只看该作者

    回复 2# 的帖子

    谢谢iori的回答,抱歉刚才没把问题描述清楚
    当录制成功后,回放脚本运行到附件高亮部分时,运行就卡住了,继续运行出现如下错误:
    Action.c(205): Error -27728: Step download timeout (120 seconds) has expired when downloading non-resource(s)         [MsgId: MERR-27728]
    Action.c(205): web_url highest severity level was "ERROR", 800 body bytes, 227 header bytes, 55 chunking overhead bytes         [MsgId: MMSG-27177]  
    顺便说一下,我的程序是ASP.NET,用
    WEB(HTTP/HTML)协议进行录制,测试用的机器是WINXP 系统,服务器配置为另一台机器IIS配置。

    不知道我描述的清楚没有,希望能帮忙解决。
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    4#
    发表于 2008-9-2 16:25:44 | 只看该作者
    把录制的脚本贴出来,应该还是关联问题
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    5#
     楼主| 发表于 2008-9-3 15:22:41 | 只看该作者

    回复 4# 的帖子

    谢谢云层老师回复  
    以下是我的全部脚本信息 是用URL方式录的
    我对LR刚刚接触,请多指教
    Action()
    {
       
             web_url("192.168.0.110",
                     "URL=http://192.168.0.110/",
                     "Resource=0",
                     "RecContentType=text/html",
                     "Referer=",
                     "Snapshot=t1.inf",
                     "Mode=HTTP",
                     LAST);

             web_url("AuthorizeMeetingRoom.aspx",
                     "URL=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=鍟嗗姟瀹?&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=鎺堟潈浼氳\xAE\xAE瀹?&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=鎴愬憳2&UserType=User&IsAuth=True&UserSex=Man",
                     "Resource=0",
                     "RecContentType=text/html",
                     "Referer=",
                     "Snapshot=t2.inf",
                     "Mode=HTTP",
                     LAST);

             web_concurrent_start(NULL);

             web_url("prototype.js",
                     "URL=http://192.168.0.110/js/prototype.js",
                     "Resource=1",
                     "RecContentType=application/x-javascript",
                     "Referer=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=阿萨1&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=撒大厦的1&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=成员2&UserType=User&IsAuth=True&UserSex=Man",
                     LAST);

             web_url("master.css",
                     "URL=http://192.168.0.110/css/master.css",
                     "Resource=1",
                     "RecContentType=text/css",
                     "Referer=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=阿萨1&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=撒大厦的1&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=成员2&UserType=User&IsAuth=True&UserSex=Man",
                     LAST);
            web_concurrent_end(NULL);

            web_url("hys_r10_c1.jpg",
                    "URL=http://192.168.0.110/img/hys_r10_c1.jpg",
                    "Resource=1",
                    "RecContentType=image/jpeg",
                    "Referer=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=阿萨1&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=撒大厦的1&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=成员2&UserType=User&IsAuth=True&UserSex=Man",
                    LAST);

            web_url("hys_r2_c8.jpg",
                    "URL=http://192.168.0.110/img/hys_r2_c8.jpg",
                    "Resource=1",
                    "RecContentType=image/jpeg",
                    "Referer=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=阿萨1&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=撒大厦的1&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=成员2&UserType=User&IsAuth=True&UserSex=Man",
                    LAST);

            web_concurrent_start(NULL);

           

            web_concurrent_end(NULL);

            web_submit_data("ServerAction.ashx",
                    "Action=http://192.168.0.110/ServerAction.ashx",
                    "Method=POST",
                    "RecContentType=text/html",
                    "Referer=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=阿萨1&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=撒大厦的1&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=成员2&UserType=User&IsAuth=True&UserSex=Man",
                    "Mode=HTTP",
                    ITEMDATA,
                    "Name=ACT", "Value=GetNewMsg", ENDITEM,
                    "Name=UserId", "Value={xincan}", ENDITEM,
                    "Name=RoomId", "Value=1", ENDITEM,
                    "Name=SendTime", "Value=0", ENDITEM,
                    LAST);

            web_url("ServerPush.aspx",
                    "URL=http://192.168.0.110/ServerPush.aspx?RoomId=1&RoomName=%u5546%u52A1%u5BA41&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=%u6388%u6743%u4F1A%u8BAE%u5BA41&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=%u6210%u54582&IsAuth=True&UserType=User&UserSex=Man",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=阿萨1&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=撒大厦的1&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=成员2&UserType=User&IsAuth=True&UserSex=Man",
                    "Snapshot=t3.inf",
                    "Mode=HTTP",
                    LAST);

            web_submit_data("ServerAction.ashx_2",
                    "Action=http://192.168.0.110/ServerAction.ashx",
                    "Method=POST",
                    "RecContentType=text/html",
                    "Referer=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=阿萨1&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=撒大厦的1&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=成员2&UserType=User&IsAuth=True&UserSex=Man",
                    "Snapshot=t4.inf",
                    "Mode=HTTP",
                    ITEMDATA,
                    "Name=ACT", "Value=UpdateOnlineUser", ENDITEM,
                    "Name=roomid", "Value=1", ENDITEM,
                    LAST);

            lr_think_time(10);

            web_custom_request("ServerAction.ashx_3",
                    "URL=http://192.168.0.110/ServerAction.ashx",
                    "Method=POST",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=阿萨1&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=撒大厦的1&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=成员2&UserType=User&IsAuth=True&UserSex=Man",
                    "Snapshot=t5.inf",
                    "Mode=HTTP",
                    "EncType=application/x-www-form-urlencoded; charset=UTF-8",
                    "Body=ACT=SendMessage&message=%E4%BD%A0%E5%A5%BD%E3%80%82%0D%0A&roomid=1&ReceiveUserName=%20%E6%89%80%E6%9C%89%E4%BA%BA&SendUserId={xincan}&SendUserName=%E6%88%90%E5%91%982",
                    LAST);

            web_custom_request("ServerAction.ashx_4",
                    "URL=http://192.168.0.110/ServerAction.ashx",
                    "Method=POST",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=阿萨1&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=撒大厦的1&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=成员2&UserType=User&IsAuth=True&UserSex=Man",
                    "Snapshot=t6.inf",
                    "Mode=HTTP",
                    "EncType=application/x-www-form-urlencoded; charset=UTF-8",
                    "Body=ACT=GetNewMsg&UserId=2&RoomId=1&SendTime=2008-09-03%2010%3A31%3A39.578",
                    LAST);

            lr_think_time(5);

            web_custom_request("ServerAction.ashx_5",
                    "URL=http://192.168.0.110/ServerAction.ashx",
                    "Method=POST",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=阿萨1&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=撒大厦的1&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=成员2&UserType=User&IsAuth=True&UserSex=Man",
                    "Snapshot=t7.inf",
                    "Mode=HTTP",
                    "EncType=application/x-www-form-urlencoded; charset=UTF-8",
                    "Body=ACT=SendMessage&message=%E6%B5%8B%E8%AF%95%E6%95%B0%E6%8D%AE&roomid=1&ReceiveUserName=%20%E6%89%80%E6%9C%89%E4%BA%BA&SendUserId={xincan}&SendUserName=%E6%88%90%E5%91%982",
                    LAST);

            web_custom_request("ServerAction.ashx_6",
                    "URL=http://192.168.0.110/ServerAction.ashx",
                    "Method=POST",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=阿萨1&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=撒大厦的1&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=成员2&UserType=User&IsAuth=True&UserSex=Man",
                    "Snapshot=t8.inf",
                    "Mode=HTTP",
                    "EncType=application/x-www-form-urlencoded; charset=UTF-8",
                    "Body=ACT=GetNewMsg&UserId=2&RoomId=1&SendTime=2008-09-03%2010%3A31%3A45.515",
                    LAST);

            lr_think_time(7);

            web_custom_request("ServerAction.ashx_7",
                    "URL=http://192.168.0.110/ServerAction.ashx",
                    "Method=POST",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=阿萨1&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=撒大厦的1&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=成员2&UserType=User&IsAuth=True&UserSex=Man",
                    "Snapshot=t9.inf",
                    "Mode=HTTP",
                    "EncType=application/x-www-form-urlencoded; charset=UTF-8",
                    "Body=ACT=SendMessage&message=%E4%B8%8D%E8%A6%81%E7%90%86%E4%BC%9A%E3%80%82&roomid=1&ReceiveUserName=%20%E6%89%80%E6%9C%89%E4%BA%BA&SendUserId={xincan}&SendUserName=%E6%88%90%E5%91%982",
                    LAST);

            web_custom_request("ServerAction.ashx_8",
                    "URL=http://192.168.0.110/ServerAction.ashx",
                    "Method=POST",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=阿萨1&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=撒大厦的1&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=成员2&UserType=User&IsAuth=True&UserSex=Man",
                    "Snapshot=t10.inf",
                    "Mode=HTTP",
                    "EncType=application/x-www-form-urlencoded; charset=UTF-8",
                    "Body=ACT=GetNewMsg&UserId=2&RoomId=1&SendTime=2008-09-03%2010%3A31%3A53.062",
                    LAST);

            web_submit_data("ServerAction.ashx_9",
                    "Action=http://192.168.0.110/ServerAction.ashx",
                    "Method=POST",
                    "Referer=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=阿萨1&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=撒大厦的1&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=成员2&UserType=User&IsAuth=True&UserSex=Man#",
                    "Mode=HTTP",
                    ITEMDATA,
                    "Name=ACT", "Value=ExitMeet", ENDITEM,
                    "Name=RoomId", "Value=1", ENDITEM,
                    LAST);
       

            lr_log_message("消息文本%d",lr_eval_string("{xincan}"));

       
            return 0;
    }
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    6#
     楼主| 发表于 2008-9-3 15:24:20 | 只看该作者

    回复 4# 的帖子

    谢谢云层老师回复  
    以下是我的全部脚本信息 是用URL方式录的
    我对LR刚刚接触,请多指教
    Action()
    {
       
             web_url("192.168.0.110",
                     "URL=http://192.168.0.110/",
                     "Resource=0",
                     "RecContentType=text/html",
                     "Referer=",
                     "Snapshot=t1.inf",
                     "Mode=HTTP",
                     LAST);

             web_url("AuthorizeMeetingRoom.aspx",
                     "URL=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=鍟嗗姟瀹?&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=鎺堟潈浼氳\xAE\xAE瀹?&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=鎴愬憳2&UserType=User&IsAuth=True&UserSex=Man",
                     "Resource=0",
                     "RecContentType=text/html",
                     "Referer=",
                     "Snapshot=t2.inf",
                     "Mode=HTTP",
                     LAST);

             web_concurrent_start(NULL);

             web_url("prototype.js",
                     "URL=http://192.168.0.110/js/prototype.js",
                     "Resource=1",
                     "RecContentType=application/x-javascript",
                     "Referer=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=阿萨1&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=撒大厦的1&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=成员2&UserType=User&IsAuth=True&UserSex=Man",
                     LAST);

             web_url("master.css",
                     "URL=http://192.168.0.110/css/master.css",
                     "Resource=1",
                     "RecContentType=text/css",
                     "Referer=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=阿萨1&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=撒大厦的1&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=成员2&UserType=User&IsAuth=True&UserSex=Man",
                     LAST);
            web_concurrent_end(NULL);

            web_url("hys_r10_c1.jpg",
                    "URL=http://192.168.0.110/img/hys_r10_c1.jpg",
                    "Resource=1",
                    "RecContentType=image/jpeg",
                    "Referer=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=阿萨1&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=撒大厦的1&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=成员2&UserType=User&IsAuth=True&UserSex=Man",
                    LAST);

            web_url("hys_r2_c8.jpg",
                    "URL=http://192.168.0.110/img/hys_r2_c8.jpg",
                    "Resource=1",
                    "RecContentType=image/jpeg",
                    "Referer=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=阿萨1&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=撒大厦的1&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=成员2&UserType=User&IsAuth=True&UserSex=Man",
                    LAST);

            web_concurrent_start(NULL);

           

            web_concurrent_end(NULL);

            web_submit_data("ServerAction.ashx",
                    "Action=http://192.168.0.110/ServerAction.ashx",
                    "Method=POST",
                    "RecContentType=text/html",
                    "Referer=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=阿萨1&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=撒大厦的1&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=成员2&UserType=User&IsAuth=True&UserSex=Man",
                    "Mode=HTTP",
                    ITEMDATA,
                    "Name=ACT", "Value=GetNewMsg", ENDITEM,
                    "Name=UserId", "Value={xincan}", ENDITEM,
                    "Name=RoomId", "Value=1", ENDITEM,
                    "Name=SendTime", "Value=0", ENDITEM,
                    LAST);

            web_url("ServerPush.aspx",
                    "URL=http://192.168.0.110/ServerPush.aspx?RoomId=1&RoomName=%u5546%u52A1%u5BA41&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=%u6388%u6743%u4F1A%u8BAE%u5BA41&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=%u6210%u54582&IsAuth=True&UserType=User&UserSex=Man",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=阿萨1&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=撒大厦的1&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=成员2&UserType=User&IsAuth=True&UserSex=Man",
                    "Snapshot=t3.inf",
                    "Mode=HTTP",
                    LAST);

            web_submit_data("ServerAction.ashx_2",
                    "Action=http://192.168.0.110/ServerAction.ashx",
                    "Method=POST",
                    "RecContentType=text/html",
                    "Referer=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=阿萨1&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=撒大厦的1&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=成员2&UserType=User&IsAuth=True&UserSex=Man",
                    "Snapshot=t4.inf",
                    "Mode=HTTP",
                    ITEMDATA,
                    "Name=ACT", "Value=UpdateOnlineUser", ENDITEM,
                    "Name=roomid", "Value=1", ENDITEM,
                    LAST);

            lr_think_time(10);

            web_custom_request("ServerAction.ashx_3",
                    "URL=http://192.168.0.110/ServerAction.ashx",
                    "Method=POST",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=阿萨1&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=撒大厦的1&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=成员2&UserType=User&IsAuth=True&UserSex=Man",
                    "Snapshot=t5.inf",
                    "Mode=HTTP",
                    "EncType=application/x-www-form-urlencoded; charset=UTF-8",
                    "Body=ACT=SendMessage&message=%E4%BD%A0%E5%A5%BD%E3%80%82%0D%0A&roomid=1&ReceiveUserName=%20%E6%89%80%E6%9C%89%E4%BA%BA&SendUserId={xincan}&SendUserName=%E6%88%90%E5%91%982",
                    LAST);

            web_custom_request("ServerAction.ashx_4",
                    "URL=http://192.168.0.110/ServerAction.ashx",
                    "Method=POST",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=阿萨1&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=撒大厦的1&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=成员2&UserType=User&IsAuth=True&UserSex=Man",
                    "Snapshot=t6.inf",
                    "Mode=HTTP",
                    "EncType=application/x-www-form-urlencoded; charset=UTF-8",
                    "Body=ACT=GetNewMsg&UserId=2&RoomId=1&SendTime=2008-09-03%2010%3A31%3A39.578",
                    LAST);

            lr_think_time(5);

            web_custom_request("ServerAction.ashx_5",
                    "URL=http://192.168.0.110/ServerAction.ashx",
                    "Method=POST",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=阿萨1&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=撒大厦的1&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=成员2&UserType=User&IsAuth=True&UserSex=Man",
                    "Snapshot=t7.inf",
                    "Mode=HTTP",
                    "EncType=application/x-www-form-urlencoded; charset=UTF-8",
                    "Body=ACT=SendMessage&message=%E6%B5%8B%E8%AF%95%E6%95%B0%E6%8D%AE&roomid=1&ReceiveUserName=%20%E6%89%80%E6%9C%89%E4%BA%BA&SendUserId={xincan}&SendUserName=%E6%88%90%E5%91%982",
                    LAST);

            web_custom_request("ServerAction.ashx_6",
                    "URL=http://192.168.0.110/ServerAction.ashx",
                    "Method=POST",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=阿萨1&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=撒大厦的1&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=成员2&UserType=User&IsAuth=True&UserSex=Man",
                    "Snapshot=t8.inf",
                    "Mode=HTTP",
                    "EncType=application/x-www-form-urlencoded; charset=UTF-8",
                    "Body=ACT=GetNewMsg&UserId=2&RoomId=1&SendTime=2008-09-03%2010%3A31%3A45.515",
                    LAST);

            lr_think_time(7);

            web_custom_request("ServerAction.ashx_7",
                    "URL=http://192.168.0.110/ServerAction.ashx",
                    "Method=POST",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=阿萨1&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=撒大厦的1&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=成员2&UserType=User&IsAuth=True&UserSex=Man",
                    "Snapshot=t9.inf",
                    "Mode=HTTP",
                    "EncType=application/x-www-form-urlencoded; charset=UTF-8",
                    "Body=ACT=SendMessage&message=%E4%B8%8D%E8%A6%81%E7%90%86%E4%BC%9A%E3%80%82&roomid=1&ReceiveUserName=%20%E6%89%80%E6%9C%89%E4%BA%BA&SendUserId={xincan}&SendUserName=%E6%88%90%E5%91%982",
                    LAST);

            web_custom_request("ServerAction.ashx_8",
                    "URL=http://192.168.0.110/ServerAction.ashx",
                    "Method=POST",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=阿萨1&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=撒大厦的1&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=成员2&UserType=User&IsAuth=True&UserSex=Man",
                    "Snapshot=t10.inf",
                    "Mode=HTTP",
                    "EncType=application/x-www-form-urlencoded; charset=UTF-8",
                    "Body=ACT=GetNewMsg&UserId=2&RoomId=1&SendTime=2008-09-03%2010%3A31%3A53.062",
                    LAST);

            web_submit_data("ServerAction.ashx_9",
                    "Action=http://192.168.0.110/ServerAction.ashx",
                    "Method=POST",
                    "Referer=http://192.168.0.110/AuthorizeMeetingRoom.aspx?RoomId=1&RoomName=阿萨1&RoomType=BizRoom&MeetingRoomId=1&MeetingRoomName=撒大厦的1&MeetingRoomType=AuthorizedMeetingRoom&UserId={xincan}&UserName=成员2&UserType=User&IsAuth=True&UserSex=Man#",
                    "Mode=HTTP",
                    ITEMDATA,
                    "Name=ACT", "Value=ExitMeet", ENDITEM,
                    "Name=RoomId", "Value=1", ENDITEM,
                    LAST);
       

            lr_log_message("消息文本%d",lr_eval_string("{xincan}"));

       
            return 0;
    }
    回复 支持 反对

    使用道具 举报

  • TA的每日心情

    2016-12-30 10:59
  • 签到天数: 6 天

    连续签到: 1 天

    [LV.2]测试排长

    7#
    发表于 2008-9-3 15:28:53 | 只看该作者
    你为什么要用URL模式录制,干吗不用HTML
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    8#
    发表于 2008-9-4 13:49:09 | 只看该作者
    对,用html格式录制试试看
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    9#
     楼主| 发表于 2008-9-4 15:21:18 | 只看该作者

    回复 8# 的帖子

    谢谢楼上两位的回答,我用HTML方式录制后也是出现上面的错误,后来将参数类型选为“随机”类形后,就没有错误了,但是从回放日志里发现,所有参数部分值都没有变,该处可能是需要做关联,正在进行关联的学习     谁有好相关的资料 发发发发发!
       送你们    嘿嘿。
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-6-26 22:08 , Processed in 0.084291 second(s), 28 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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