51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1811|回复: 3
打印 上一主题 下一主题

[求助] loadrunner录制客户端程序,没有取到用户名密码

[复制链接]
  • TA的每日心情
    奋斗
    2015-12-23 22:10
  • 签到天数: 4 天

    连续签到: 1 天

    [LV.2]测试排长

    跳转到指定楼层
    1#
    发表于 2015-8-6 00:00:42 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    只有一段body代码,而且我录制的是开发部门用delphi开发的客户端exe程序,选择的是webhtml协议,录制win32 application程序。求助大虾
    Action()
    {

            web_custom_request("SynService",
                    "URL=http://wszg.nbcs.gov.cn:8002/wssb/service/SynService",
                    "Method=POST",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=",
                    "Snapshot=t1.inf",
                    "Mode=HTML",
                    "Body=requestString=JTNDJTNGeG1sK3ZlcnNpb24lM0QlMjIxLjAlMjIrZW5jb2RpbmclM0QlMjJHQkslMjIlM0YlM0Ul\r\nM0NUSVJJUFBBQ0tBR0UlM0UlM0NJREVOVElUWSUzRSUzQ3NlcnZpY2VJZCUzRWNvbS5lcWlhby5z\r\nb3JjZXJlc3Muc2VydmljZS5pbXBsLkxvZ2luUmVxdWVzdFNlcnZpY2VJbXBsLnN5bkNsaWVudElu\r\nZm8lM0MlMkZzZXJ2aWNlSWQlM0UlM0Nuc3JkemRhaCUzRTAlM0MlMkZuc3JkemRhaCUzRSUzQ25z\r\ncnNiaCUzRTMzMDIwMzMxNjk1MzYxNyUzQyUyRm5zcnNiaCUzRSUzQ3JlZ2lvbmNvZGUlM0UlM0Ml\r\nMkZyZWdpb25jb2RlJTNFJTNDaWZjYSUzRSUzQyUyRmlmY2ElM0UlM0Nyb2xlJTNFJTNDJTJGcm9s\r\n"
                    "ZSUzRSUzQ25zcm1jJTNFJTNDJTJGbnNybWMlM0UlM0Nzd2pnRG0lM0UlM0MlMkZzd2pnRG0lM0Ul\r\nM0Nzd2pnTWMlM0UlM0MlMkZzd2pnTWMlM0UlM0Npc0NvZGUlM0UlM0MlMkZpc0NvZGUlM0UlM0Nl\r\nbmNyeXB0VHlwZSUzRSUzQyUyRmVuY3J5cHRUeXBlJTNFJTNDaXNFbmNyeXB0JTNFJTNDJTJGaXNF\r\nbmNyeXB0JTNFJTNDaXNaaXAlM0UlM0MlMkZpc1ppcCUzRSUzQyUyRklERU5USVRZJTNFJTNDQlVT\r\nSU5FU1NDT05URU5UJTNFJTNDU3ViUGFja2FnZSUzRSUzQ0NPTlRFTlQlM0UlM0MhJTVCQ0RBVEEl\r\nNUJQRDk0Yld3Z2RtVnljMmx2YmowaU1TNHdJajglMkJEUW84UTA5TlRVOU9Va1ZSVlVWVFZENDhR\r\n"
                    "MHhKUlU1VVZFbE5SVDR5TURFMUxUQTRMVEEyUEM5RFRFbEZUbFJVU1UxRlBqd3ZRMDlOVFU5T1Vr\r\nVlJWVVZUVkQ0TkNnJTNEJTNEJTVEJTVEJTNFJTNDJTJGQ09OVEVOVCUzRSUzQyUyRlN1YlBhY2th\r\nZ2UlM0UlM0MlMkZCVVNJTkVTU0NPTlRFTlQlM0UlM0MlMkZUSVJJUFBBQ0tBR0UlM0U=",
                    LAST);

            lr_think_time(5);

            web_custom_request("SynService_2",
                    "URL=http://wszg.nbcs.gov.cn:8002/wssb/service/SynService",
                    "Method=POST",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=",
                    "Snapshot=t2.inf",
                    "Mode=HTML",
                    "Body=requestString=JTNDJTNGeG1sK3ZlcnNpb24lM0QlMjIxLjAlMjIrZW5jb2RpbmclM0QlMjJHQkslMjIlM0YlM0Ul\r\nM0NUSVJJUFBBQ0tBR0UlM0UlM0NJREVOVElUWSUzRSUzQ3NlcnZpY2VJZCUzRWNvbS5lcWlhby5z\r\nb3JjZXJlc3Muc2VydmljZS5pbXBsLkxvZ2luUmVxdWVzdFNlcnZpY2VJbXBsLmxvZ2luJTNDJTJG\r\nc2VydmljZUlk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TJCUEVG\r\nRFEwVlRVME5QUkVVJTJCV1cxRWRuWTNNRWszTnlzNWQzQnlkblkzTVhRM055czVOemNyT1ZaUEt5\r\nOTJWbTUyZGpjd1BUd3ZRVU5EUlZOVFEwOUVSVDROQ2p3dlEwOU5UVTlPVWtWUlZVVlRWRDROQ2cl\r\n"
                    "M0QlM0QlNUQlNUQlM0UlM0MlMkZDT05URU5UJTNFJTNDJTJGU3ViUGFja2FnZSUzRSUzQyUyRkJV\r\nU0lORVNTQ09OVEVOVCUzRSUzQyUyRlRJUklQUEFDS0FHRSUzRQ==",
                    LAST);

            web_custom_request("SynService_3",
                    "URL=http://wszg.nbcs.gov.cn:8002/wssb/service/SynService",
                    "Method=POST",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=",
                    "Snapshot=t3.inf",
                    "Mode=HTML",
                    "Body=requestString=JTNDJTNGeG1sK3ZlcnNpb24lM0QlMjIxLjAlMjIrZW5jb2RpbmclM0QlMjJHQkslMjIlM0YlM0Ul\r\nM0NUSVJJUFBBQ0tBR0UlM0UlM0NJREVOVElUWSUzRSUzQ3NlcnZpY2VJZCUzRWNvbS5lcWlhby5z\r\nb3JjZXJlc3Muc2VydmljZS5pbXBsLkxvZ2luUmVxdWVzdFNlcnZpY2VJbXBsLmduTGlzdCUzQyUy\r\nRnNlcnZpY2VJZCUzRSUzQ25zcmR6ZGFoJTNFMzMwMjE1MDAwMDMwNDk4NDI5JTNDJTJGbnNyZHpk\r\nYWglM0UlM0Nuc3JzYmglM0UzMzAyMDMzMTY5NTM2MTclM0MlMkZuc3JzYmglM0UlM0NyZWdpb25j\r\nb2RlJTNFMTElM0MlMkZyZWdpb25jb2RlJTNFJTNDaWZjYSUzRSUzQyUyRmlmY2ElM0UlM0Nyb2xl\r\n"
                    "JTNFMSUyQzMlM0MlMkZyb2xlJTNFJTNDbnNybWMlM0UlRTUlQUUlODElRTYlQjMlQTIlRTYlQjUl\r\nQjclRTYlOUIlOTklRTYlQjAlQjQlRTclQUIlOEIlRTklODAlODElRTglQjQlQjglRTYlOTglOTMl\r\nRTYlOUMlODklRTklOTklOTAlRTUlODUlQUMlRTUlOEYlQjglM0MlMkZuc3JtYyUzRSUzQ3N3amdE\r\nbSUzRTIzMzAyMDMwMDAwJTNDJTJGc3dqZ0RtJTNFJTNDc3dqZ01jJTNFJTNDJTJGc3dqZ01jJTNF\r\nJTNDaXNDb2RlJTNFJTNDJTJGaXNDb2RlJTNFJTNDZW5jcnlwdFR5cGUlM0UlM0MlMkZlbmNyeXB0\r\nVHlwZSUzRSUzQ2lzRW5jcnlwdCUzRSUzQyUyRmlzRW5jcnlwdCUzRSUzQ2lzWmlwJTNFJTNDJTJG\r\n"
                    "aXNaaXAlM0UlM0MlMkZJREVOVElUWSUzRSUzQ0JVU0lORVNTQ09OVEVOVCUzRSUzQ1N1YlBhY2th\r\nZ2UlM0UlM0NDT05URU5UJTNFJTNDISU1QkNEQVRBJTVCUEQ5NGJXd2dkbVZ5YzJsdmJqMGlNUzR3\r\nSWo4JTJCRFFvOFEwOU5UVTlPVWtWUlZVVlRWRDQ4VWs5TVJUNHhMRE04TDFKUFRFVSUyQlBDOURU\r\nMDFOVDA1U1JWRlZSVk5VUGcwSyU1RCU1RCUzRSUzQyUyRkNPTlRFTlQlM0UlM0MlMkZTdWJQYWNr\r\nYWdlJTNFJTNDJTJGQlVTSU5FU1NDT05URU5UJTNFJTNDJTJGVElSSVBQQUNLQUdFJTNF",
                    LAST);

            return 0;
    }

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

    使用道具 举报

  • TA的每日心情
    郁闷
    2015-7-30 14:37
  • 签到天数: 2 天

    连续签到: 1 天

    [LV.1]测试小兵

    2#
    发表于 2015-8-6 09:37:22 | 只看该作者
    你这个是post请求的,用户名和密码都在body里面发送到服务器了,你是说服务器没有收到你这里发送过去的用户名和密码?如果没有把mode改成http试试,或者自己叫开发给你接口的参数,把body里面的值直接改成开发给的
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    奋斗
    2 小时前
  • 签到天数: 2805 天

    连续签到: 4 天

    [LV.Master]测试大本营

    3#
    发表于 2015-8-6 13:06:33 | 只看该作者
    录制中使用函数web_custom_request,所以参数都在body中,不是没有录制到;
    但是你body里面可能进行了编码,需要问一下开发;
    因为录制时协议选择了URL_based,所以使用函数web_custom_request,你可以修改为html_based script类型的脚本录制,查看参数
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-11-7 09:36 , Processed in 0.065870 second(s), 22 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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