51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 1889|回复: 2
打印 上一主题 下一主题

[求助] LR录制C/S架构出现错误10054,请大神们帮忙

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2013-1-17 16:18:55 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
录制一个客户端程序时报错10054,网上搜了几天,大部分都说设置超时时间,可是我测试的是C/S,超时时间只有在B/S架构才有,求助大家帮忙。小弟谢了!

脚本如下:
/* -------------------------------------------------------------------------------
        Script Title       :
        Script Description :
                        
                        
        Recorder Version   : 8859
   ------------------------------------------------------------------------------- */

vuser_init()
{

        lrs_create_socket("socket0", "TCP", "LocalHost=0", "RemoteHost=link.263em.com:5222", LrsLastArg);

        lrs_send("socket0", "buf0", LrsLastArg);

        lrs_receive("socket0", "buf1", LrsLastArg);

        lrs_send("socket0", "buf2", LrsLastArg);

        lrs_receive("socket0", "buf3", LrsLastArg);

        lrs_send("socket0", "buf4", LrsLastArg);

        lrs_receive("socket0", "buf5", LrsLastArg);

        lrs_send("socket0", "buf6", LrsLastArg);

        lrs_receive("socket0", "buf7", LrsLastArg);

        lrs_send("socket0", "buf8", LrsLastArg);

        lrs_receive("socket0", "buf9", LrsLastArg);

        lrs_send("socket0", "buf10", LrsLastArg);

        lrs_receive("socket0", "buf11", LrsLastArg);

        lrs_send("socket0", "buf12", LrsLastArg);

        lrs_receive("socket0", "buf13", LrsLastArg);

        lrs_send("socket0", "buf14", LrsLastArg);

        lrs_receive("socket0", "buf15", LrsLastArg);

        lrs_send("socket0", "buf16", LrsLastArg);

        lrs_receive("socket0", "buf17", LrsLastArg);

        lrs_send("socket0", "buf18", LrsLastArg);

        lrs_receive("socket0", "buf19", LrsLastArg);

        lrs_send("socket0", "buf20", LrsLastArg);

        lrs_receive("socket0", "buf21", LrsLastArg);

        lrs_send("socket0", "buf22", LrsLastArg);

        lrs_receive("socket0", "buf23", LrsLastArg);

        lrs_send("socket0", "buf24", LrsLastArg);

        lrs_receive("socket0", "buf25", LrsLastArg);

        lrs_receive("socket0", "buf26", LrsLastArg);

        lrs_send("socket0", "buf27", LrsLastArg);

        lrs_receive("socket0", "buf28", LrsLastArg);

        lrs_create_socket("socket1", "TCP", "LocalHost=5583", "Backlog=1", LrsLastArg);

        lrs_create_socket("socket2", "TCP", "LocalHost=0", "RemoteHost=zhiyu-PC:5583", LrsLastArg);

        lrs_accept_connection("socket1", "socket3");

        lrs_create_socket("socket4", "TCP", "LocalHost=5584", "Backlog=1", LrsLastArg);

        lrs_create_socket("socket5", "TCP", "LocalHost=0", "RemoteHost=zhiyu-PC:5584", LrsLastArg);

        lrs_send("socket0", "buf29", LrsLastArg);

        lrs_accept_connection("socket4", "socket6");

        lrs_receive("socket0", "buf30", LrsLastArg);

        lrs_receive("socket0", "buf31", LrsLastArg);

        lrs_create_socket("socket7", "TCP", "LocalHost=0", "RemoteHost=sim.update.263em.com:80", LrsLastArg);

        lrs_receive("socket0", "buf32", LrsLastArg);

        lrs_send("socket7", "buf33", LrsLastArg);

        lrs_receive("socket7", "buf34", LrsLastArg);

        lrs_close_socket("socket7");

        lrs_receive("socket0", "buf35", LrsLastArg);

        lrs_send("socket2", "buf36", LrsLastArg);

        lrs_receive("socket0", "buf37", LrsLastArg);

        lrs_receive("socket3", "buf38", LrsLastArg);

        lrs_receive("socket6", "buf39", LrsLastArg);

        lrs_send("socket5", "buf40", LrsLastArg);

        lrs_receive("socket3", "buf41", LrsLastArg);

        lrs_send("socket2", "buf42", LrsLastArg);

        lrs_send("socket5", "buf43", LrsLastArg);

        lrs_receive("socket6", "buf44", LrsLastArg);

        lrs_send("socket0", "buf45", LrsLastArg);

        lr_think_time(8);

        lrs_receive("socket0", "buf46", LrsLastArg);

        return 0;
}


data.ws脚本如下:

recv  buf7 59
        "\x14\x03\x01\x00\x01\x01\x16\x03\x01\x00"
        "0Cs"
        "\x92"
        "5"
        "\xde\xff"
        ","
        "\xad"
        "6裿h坁"
        "\xa8"
        "9L讇忤"
        "\x00\xee\x03"
        "r祮"
        "\xad\x11"
        "槿仆D"
        "\xa0"
        "\n"
        "-)槛C"
        "\xd1"
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2013-1-17 16:29:25 | 只看该作者
为什么用socket协议,干什么的程序
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2013-1-17 22:03:37 | 只看该作者
socket协议录制可以用 kylinPET 工具,我们之前用它做CS接口测试还行。可在 www.kylinpet.com 下载
回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-5-5 02:19 , Processed in 0.170756 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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