51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

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

[求助] webIM 登陆测试, 录制脚本如下, 验证回放时候报错, 求解答

[复制链接]
  • TA的每日心情
    开心
    2015-12-4 10:04
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    跳转到指定楼层
    1#
    发表于 2013-3-29 12:52:45 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    录制一个WebIM登陆, 想要测同时100人登陆的压力情况.
    录制结果如下.  回放脚本报错, Action.c(38) -26627 HTTP status-code=404 (not found) for URL=http://192.168.1.254:5280/http-bind [Msgid:merr-26627]

    查看脚本, 也没有登录的信息, 看样子, 是录制了下面的 IM在线的窗口了.

    请问: 1, WebIM怎样录制登陆
    2, 下面的代码动态值应该怎样修改.

    万分感谢



    -----------------------------------
    Action()
    {

            web_url("live.gif",
                    "URL=http://www.g-fox.cn/live.gif?channelid=firefox.com.cn&fxversion=19.0.2&ceversion=2013.3&ver=4&actcode4=%7B150ef40e-d207-4018-92c2-6f6279632bde%7D&uk=%7B8d7104e3-15f8-4de6-866f-935897d96e0f%7D&dk=V2dPSPLthep6NJ7zDhMjWdJjOvbhXCwLwK2zAlLzc99r/QRwYmXitw==&prevsessionlen=1&locale=zh-CN&moexts=cehomepage,cemigration,coba,cpmanager,livemargins,quicklaunch,share_all_cn,tabimprovelite",
                    "Resource=1",
                    "RecContentType=image/gif",
                    "Referer=",
                    "Snapshot=t4.inf",
                    LAST);

            lr_think_time(8);

            web_custom_request("http-bind",
                    "URL=http://192.168.1.254:5280/http-bind",
                    "Method=POST",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.1.254:8080/web_im/index.html",
                    "Snapshot=t5.inf",
                    "Mode=HTML",
                    "EncType=text/plain; charset=UTF-8",
                    "Body=<body rid='1647873268' xmlns='http://jabber.org/protocol/httpbind' to='192.168.1.254' xml:lang='en' wait='60' hold='1' content='text/xml; charset=utf-8' ver='1.6' xmpp:version='1.0' xmlns:xmpp='urn:xmpp:xbosh'/>",
                    LAST);

            web_custom_request("http-bind_2",
                    "URL=http://192.168.1.254:5280/http-bind",
                    "Method=POST",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.1.254:8080/web_im/index.html",
                    "Snapshot=t6.inf",
                    "Mode=HTML",
                    "EncType=text/plain; charset=UTF-8",
                    "Body=<body rid='1647873269' xmlns='http://jabber.org/protocol/httpbind' sid='4a46034ea82e57474edd6cda3347dbcab4f6c054'><auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'/></body>",
                    LAST);

            web_custom_request("http-bind_3",
                    "URL=http://192.168.1.254:5280/http-bind",
                    "Method=POST",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.1.254:8080/web_im/index.html",
                    "Snapshot=t7.inf",
                    "Mode=HTML",
                    "EncType=text/plain; charset=UTF-8",
                    "Body=<body rid='1647873270' xmlns='http://jabber.org/protocol/httpbind' sid='4a46034ea82e57474edd6cda3347dbcab4f6c054'><response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>dXNlcm5hbWU9IjEwMDAwIixyZWFsbT0iIixub25jZT0iMzA0OTIwNTAxMSIsY25vbmNlPSI5ZWM1M2NkMDY2ZDEzZDJkMjYzN2ZjYTc2N2I1NWJiNCIsbmM9IjAwMDAwMDAxIixxb3A9ImF1dGgiLGRpZ2VzdC11cmk9InhtcHAvMTkyLjE2OC4xLjI1NCIscmVzcG9uc2U9IjRkOWYwNzQxNWUyNzQwMDhkZDNkNWY4ZDg0NzExZGNiIixjaGFyc2V0PSJ1dGYtOCI=</response></body>",
                    LAST);

            web_custom_request("http-bind_4",
                    "URL=http://192.168.1.254:5280/http-bind",
                    "Method=POST",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.1.254:8080/web_im/index.html",
                    "Snapshot=t8.inf",
                    "Mode=HTML",
                    "EncType=text/plain; charset=UTF-8",
                    "Body=<body rid='1647873271' xmlns='http://jabber.org/protocol/httpbind' sid='4a46034ea82e57474edd6cda3347dbcab4f6c054'><response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/></body>",
                    LAST);

            web_custom_request("http-bind_5",
                    "URL=http://192.168.1.254:5280/http-bind",
                    "Method=POST",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.1.254:8080/web_im/index.html",
                    "Snapshot=t9.inf",
                    "Mode=HTML",
                    "EncType=text/plain; charset=UTF-8",
                    "Body=<body rid='1647873272' xmlns='http://jabber.org/protocol/httpbind' sid='4a46034ea82e57474edd6cda3347dbcab4f6c054' to='192.168.1.254' xml:lang='en' xmpp:restart='true' xmlns:xmpp='urn:xmpp:xbosh'/>",
                    LAST);

            web_custom_request("http-bind_6",
                    "URL=http://192.168.1.254:5280/http-bind",
                    "Method=POST",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.1.254:8080/web_im/index.html",
                    "Snapshot=t10.inf",
                    "Mode=HTML",
                    "EncType=text/plain; charset=UTF-8",
                    "Body=<body rid='1647873273' xmlns='http://jabber.org/protocol/httpbind' sid='4a46034ea82e57474edd6cda3347dbcab4f6c054'><iq type='set' id='_bind_auth_2' xmlns='jabber:client'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>web_client</resource></bind></iq></body>",
                    LAST);

            web_custom_request("http-bind_7",
                    "URL=http://192.168.1.254:5280/http-bind",
                    "Method=POST",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.1.254:8080/web_im/index.html",
                    "Snapshot=t11.inf",
                    "Mode=HTML",
                    "EncType=text/plain; charset=UTF-8",
                    "Body=<body rid='1647873274' xmlns='http://jabber.org/protocol/httpbind' sid='4a46034ea82e57474edd6cda3347dbcab4f6c054'><iq type='set' id='_session_auth_2' xmlns='jabber:client'><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq></body>",
                    LAST);

            web_custom_request("http-bind_8",
                    "URL=http://192.168.1.254:5280/http-bind",
                    "Method=POST",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.1.254:8080/web_im/index.html",
                    "Snapshot=t12.inf",
                    "Mode=HTML",
                    "EncType=text/plain; charset=UTF-8",
                    "Body=<body rid='1647873275' xmlns='http://jabber.org/protocol/httpbind' sid='4a46034ea82e57474edd6cda3347dbcab4f6c054'><iq type='get' xmlns='jabber:client'><query xmlns='jabber:iq:roster'/></iq></body>",
                    EXTRARES,
                    "Url=http://192.168.1.254:8080/web_im/img/head.jpg", "Referer=http://192.168.1.254:8080/web_im/index.html", ENDITEM,
                    "Url=http://192.168.1.254:8080/web_im/img/webim_minwin_bg.png", "Referer=http://192.168.1.254:8080/web_im/css/main.css", ENDITEM,
                    LAST);

            web_custom_request("http-bind_9",
                    "URL=http://192.168.1.254:5280/http-bind",
                    "Method=POST",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.1.254:8080/web_im/index.html",
                    "Snapshot=t13.inf",
                    "Mode=HTML",
                    "EncType=text/plain; charset=UTF-8",
                    "Body=<body rid='1647873276' xmlns='http://jabber.org/protocol/httpbind' sid='4a46034ea82e57474edd6cda3347dbcab4f6c054'/>",
                    LAST);

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

    使用道具 举报

    该用户从未签到

    2#
    发表于 2013-3-29 16:35:29 | 只看该作者
    做一下关联先~~
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    2015-12-4 10:04
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    3#
     楼主| 发表于 2013-3-29 21:56:01 | 只看该作者
    回复 2# ffwithvv


        谢谢你的回复. 可以具体一些吗? 刚入门. 万分感谢
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    奋斗
    2022-5-8 19:23
  • 签到天数: 137 天

    连续签到: 1 天

    [LV.7]测试师长

    4#
    发表于 2013-3-31 11:34:57 | 只看该作者
    404是URL不存在啊
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    奋斗
    2022-5-8 19:23
  • 签到天数: 137 天

    连续签到: 1 天

    [LV.7]测试师长

    5#
    发表于 2013-3-31 11:34:57 | 只看该作者
    404是URL不存在啊
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-9-22 23:32 , Processed in 0.085980 second(s), 28 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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