51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1402|回复: 5
打印 上一主题 下一主题

loadrunne11在c/s架构下测试,回放失败 错误提示:9017

[复制链接]
  • TA的每日心情
    郁闷
    2016-4-6 16:36
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    跳转到指定楼层
    1#
    发表于 2016-4-6 16:52:15 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    Error : Timeout expired while trying to accept connection. Error code : 9017.
    我测的是c/s架构,电脑端有教师端,服务端,手机端有学生端,我现在的操作是本地下发文件给手机端,用的是ftp协议(但是我只看到socket),测的时候程序写的是教师端,但是回放失败(未修改代码),求懂的人指一条路!!!!下附脚本和data

    脚本:Action()
    {

        lr_think_time(14);

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

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

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

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

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

        lrs_send("socket1", "buf21", LrsLastArg);

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

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

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

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

        lrs_send("socket1", "buf26", LrsLastArg);

        lrs_receive("socket1", "buf27", LrsLastArg);

        lrs_send("socket1", "buf28", LrsLastArg);

        lrs_receive("socket1", "buf29", LrsLastArg);

        lrs_send("socket1", "buf30", LrsLastArg);

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

        lrs_send("socket1", "buf32", LrsLastArg);

        lrs_receive("socket1", "buf33", LrsLastArg);

        lrs_send("socket1", "buf34", LrsLastArg);

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

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

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

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

        lrs_send("socket1", "buf39", LrsLastArg);

        lrs_receive("socket1", "buf40", LrsLastArg);

        lrs_send("socket1", "buf41", LrsLastArg);

        lrs_receive("socket1", "buf42", LrsLastArg);

        lrs_receive("socket1", "buf43", LrsLastArg);

        lrs_send("socket1", "buf44", LrsLastArg);

        lrs_receive("socket1", "buf45", LrsLastArg);

        lrs_send("socket1", "buf46", LrsLastArg);

        lrs_receive("socket1", "buf47", LrsLastArg);

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

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

        lrs_receive("socket2", "buf49", LrsLastArg);

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

        lrs_receive("socket2", "buf51", LrsLastArg);

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

        lrs_receive("socket2", "buf53", LrsLastArg);

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

        lrs_receive("socket2", "buf55", LrsLastArg);

        lrs_create_socket("socket3", "TCP", "LocalHost=0", "Backlog=1", LrsLastArg);

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

        lrs_receive("socket2", "buf57", LrsLastArg);

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

        lrs_receive("socket2", "buf59", LrsLastArg);

        lrs_accept_connection("socket3", "socket4");(报错)

        lrs_close_socket("socket3");

        lrs_send("socket4", "buf60", LrsLastArg);

        lrs_close_socket("socket4");

        lrs_receive("socket2", "buf61", LrsLastArg);

        lrs_close_socket("socket2");

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

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

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

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

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

        return 0;
    }
    vuser_end()
    {

        lr_think_time(5);

        lrs_send("socket0", "buf67", LrsLastArg);(报错)

        lrs_close_socket("socket0");

        return 0;
    }


    log:


    Starting iteration 1.
    Starting action Action.
    Action.c(4): Think time - Waiting 1.00 seconds (according to limit).
    Action.c(4): lr_think_time: 1.00 seconds (recorded think time was 14.00 seconds).
    Action.c(6): lrs_send(socket0, buf16)
    Action.c(8): lrs_receive(socket0, buf17)
    Action.c(10): lrs_receive(socket0, buf18)
    Action.c(10): Mismatch in buffer's length (expected 1400 bytes, 111 bytes actually received, difference in 1289 bytes)
    Action.c(12): lrs_receive(socket0, buf19)
    Action.c(12): Mismatch in buffer's length (expected 856 bytes, 0 bytes actually received, difference in 856 bytes)
    Action.c(14): lrs_send(socket0, buf20)
    Action.c(16): lrs_send(socket1, buf21)
    Action.c(18): lrs_receive(socket0, buf22)
    Action.c(18): Mismatch in buffer's length (expected 594 bytes, 6 bytes actually received, difference in 588 bytes)
    Action.c(20): lrs_receive(socket1, buf23)
    Action.c(20): Mismatch in buffer's length (expected 30050 bytes, 5627 bytes actually received, difference in 24423 bytes)
    Action.c(22): lrs_send(socket1, buf24)
    Action.c(24): lrs_receive(socket1, buf25)
    Action.c(24): Mismatch in buffer's length (expected 26221 bytes, 5623 bytes actually received, difference in 20598 bytes)
    Action.c(26): lrs_send(socket1, buf26)
    Action.c(28): lrs_receive(socket1, buf27)
    Action.c(28): Mismatch in buffer's length (expected 14988 bytes, 5499 bytes actually received, difference in 9489 bytes)
    Action.c(30): lrs_send(socket1, buf28)
    Action.c(32): lrs_receive(socket1, buf29)
    Action.c(32): Mismatch in buffer's length (expected 24623 bytes, 5633 bytes actually received, difference in 18990 bytes)
    Action.c(34): lrs_send(socket1, buf30)
    Action.c(36): lrs_receive(socket1, buf31)
    Action.c(36): Mismatch in buffer's length (expected 23744 bytes, 5603 bytes actually received, difference in 18141 bytes)
    Action.c(38): lrs_send(socket1, buf32)
    Action.c(40): lrs_receive(socket1, buf33)
    Action.c(40): Mismatch in buffer's length (expected 18734 bytes, 5499 bytes actually received, difference in 13235 bytes)
    Action.c(42): lrs_send(socket1, buf34)
    Action.c(44): lrs_receive(socket1, buf35)
    Action.c(44): Mismatch in buffer's length (expected 14724 bytes, 5499 bytes actually received, difference in 9225 bytes)
    Action.c(46): lrs_send(socket1, buf36)
    Action.c(48): lrs_receive(socket1, buf37)
    Action.c(48): Mismatch in buffer's length (expected 6944 bytes, 5499 bytes actually received, difference in 1445 bytes)
    Action.c(50): lrs_receive(socket1, buf38)
    Action.c(50): Mismatch in buffer's length (expected 5244 bytes, 0 bytes actually received, difference in 5244 bytes)
    Action.c(52): lrs_send(socket1, buf39)
    Action.c(54): lrs_receive(socket1, buf40)
    Action.c(54): Mismatch in buffer's length (expected 7948 bytes, 5499 bytes actually received, difference in 2449 bytes)
    Action.c(56): lrs_send(socket1, buf41)
    Action.c(58): lrs_receive(socket1, buf42)
    Action.c(58): Mismatch in buffer's length (expected 23328 bytes, 5645 bytes actually received, difference in 17683 bytes)
    Action.c(60): lrs_receive(socket1, buf43)
    Action.c(60): Mismatch in buffer's length (expected 1139 bytes, 0 bytes actually received, difference in 1139 bytes)
    Action.c(62): lrs_send(socket1, buf44)
    Action.c(64): lrs_receive(socket1, buf45)
    Action.c(64): Mismatch in buffer's length (expected 14515 bytes, 5499 bytes actually received, difference in 9016 bytes)
    Action.c(66): lrs_send(socket1, buf46)
    Action.c(68): lrs_receive(socket1, buf47)
    Action.c(68): Mismatch in buffer's length (expected 15570 bytes, 5499 bytes actually received, difference in 10071 bytes)
    Action.c(70): lrs_send(socket0, buf48)
    Action.c(72): lrs_create_socket(socket2, TCP, ...)
    Action.c(74): lrs_receive(socket2, buf49)
    Action.c(76): lrs_send(socket2, buf50)
    Action.c(78): lrs_receive(socket2, buf51)
    Action.c(80): lrs_send(socket2, buf52)
    Action.c(82): lrs_receive(socket2, buf53)
    Action.c(82): Mismatch in buffer's length (expected 15 bytes, 34 bytes actually received, difference in 19 bytes)
    Action.c(84): lrs_send(socket2, buf54)
    Action.c(86): lrs_receive(socket2, buf55)
    Action.c(88): lrs_create_socket(socket3, TCP, ...)
    Action.c(90): lrs_send(socket2, buf56)
    Action.c(92): lrs_receive(socket2, buf57)
    Action.c(92): Mismatch in buffer's length (expected 29 bytes, 30 bytes actually received, difference in 1 bytes)
    Action.c(94): lrs_send(socket2, buf58)
    Action.c(96): lrs_receive(socket2, buf59)
    Action.c(96): Mismatch in buffer's length (expected 45 bytes, 93 bytes actually received, difference in 48 bytes)
    Action.c(98): lrs_accept_connection(socket3, socket4)
    Action.c(98): Error : Timeout expired while trying to accept connection. Error code : 9017.
    Abort was called from an action.
    Ending Vuser...
    Starting action vuser_end.
    vuser_end.c(4): Think time - Waiting 1.00 seconds (according to limit).
    vuser_end.c(4): lr_think_time: 1.00 seconds (recorded think time was 5.00 seconds).
    vuser_end.c(6): lrs_send(socket0, buf67)
    vuser_end.c(6): Error : socket0 - Software caused connection abort. Error code : 10053.
    Abort was called from an action.

    data.ws
    send  buf48 8
        "\x00"
        "\b"
        "\x1b\x01"
        "测试"

    recv  buf49 13
        "220 ZoneLue\r\n"

    send  buf50 16
        "USER SuperWang\r\n"

    recv  buf51 37
        "331 Password required for superwang\r\n"

    send  buf52 13
        "PASS 123188\r\n"

    recv  buf53 15
        "230 Logged on\r\n"

    send  buf54 8
        "TYPE A\r\n"

    recv  buf55 19
        "200 Type set to A\r\n"

    send  buf56 29
        "PORT 192,168,18,120,238,118\r\n"

    recv  buf57 29
        "200 Port command successful\r\n"

    send  buf58 28
        "STOR Teacher-142753161.txt\r\n"

    recv  buf59 45
        "150 Opening data channel for file transfer.\r\n"

    send  buf60 12
        "性能测试文件"

    recv  buf61 23
        "226 Transfer complete\r\n"

    send  buf62 26
        "\x00\x1a\x1b\x02\x00"
        "Teacher-142753161.txt"

    recv  buf63 4
        "\x00\x04\x1b\x05"

    recv  buf64 8
        "\x00"
        "4"
        "\x1b\x03\x00\x04\x1b"
        "\a"

    recv  buf65 4
        "\x00\x04\x1b\x05"

    send  buf66 28
        "\x00\x1c\x1b"
        "\b<COL>1</COL><COL>0</COL>"

    send  buf67 4
        "\x00\x04\x1b\x04"


    -1


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

    使用道具 举报

  • TA的每日心情
    擦汗
    2020-8-4 11:02
  • 签到天数: 943 天

    连续签到: 1 天

    [LV.10]测试总司令

    2#
    发表于 2016-4-7 10:24:23 | 只看该作者
    连接超时。
    lrs_accept_connection("socket3", "socket4");(报错)
    看一下你这个连接名称与上下代码。
    recv  buf57 29
        "200 Port command successful\r\n"执行成功。

    评分

    参与人数 1测试积点 +10 收起 理由
    lsekfe + 10 积极回复获得测试积点10

    查看全部评分

    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    郁闷
    2016-4-6 16:36
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    3#
     楼主| 发表于 2016-4-7 15:05:26 | 只看该作者
    fhhh_eyou 发表于 2016-4-7 10:24
    连接超时。
    lrs_accept_connection("socket3", "socket4");(报错)
    看一下你这个连接名称与上下代码。
    ...

    代码在哪里看呢?不是看脚本吗?
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    郁闷
    2016-4-6 16:36
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    4#
     楼主| 发表于 2016-4-7 15:05:33 | 只看该作者
    fhhh_eyou 发表于 2016-4-7 10:24
    连接超时。
    lrs_accept_connection("socket3", "socket4");(报错)
    看一下你这个连接名称与上下代码。
    ...

    代码在哪里看呢?不是看脚本吗?
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    擦汗
    2020-8-4 11:02
  • 签到天数: 943 天

    连续签到: 1 天

    [LV.10]测试总司令

    5#
    发表于 2016-4-7 15:07:44 | 只看该作者
    对,你写对了!
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    郁闷
    2016-4-6 16:36
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    6#
     楼主| 发表于 2016-4-7 16:38:57 | 只看该作者

    我没有改脚本,直接回放,但是不行,一直是这个错
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-11-27 10:54 , Processed in 0.069490 second(s), 26 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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