51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2670|回复: 1
打印 上一主题 下一主题

[求助] loadrunner socket 回放

[复制链接]
  • TA的每日心情
    开心
    2016-12-15 14:19
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    跳转到指定楼层
    1#
    发表于 2013-11-28 13:00:35 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    我录制的是字符终端工具Netterm,参数化后,回放的到 recv  buf132 1352 因为不同用户返回的数据也不一致,这导致回放到 lrs_receive("socket0", "buf132", LrsLastArg);这里的时候大概要停顿10秒钟,最终生成场景的时候,影响了TPS结果,VUgen控制台提示:
    Action.c(105): lrs_receive(socket0, buf132)
    Action.c(105): Mismatch in buffer's length (expected 1352 bytes, 2078 bytes actually received, difference in 726 bytes)
    我想请教一下,用什么方法可以让VUgen在执行到这里的时候很快过去,或者加什么函数不对这里校验,求指教。
    action
    lrs_send("socket0", "buf131", LrsLastArg);

    lrs_receive("socket0", "buf132", LrsLastArg);
    下面是data.ws
    send  buf131 1

    "3"
    recv  buf132 1352

    "*"

    "\x1b"

    "[4A\r"

    "\x00\x1b"

    "[J"

    "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"

    "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"

    "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1b"

    "[19B"

    "\x1b"

    "[79C"

    "\x1b"

    "[15A"

    "\x1b"

    "[72D账号/卡号    :"

    "\x1b"

    "[;4m"

    "\x1b"

    "(B6235160001500003108   "

    "\x1b"

    "[4C      \n"

    "\n"

    "\n"

    "\x1b"

    "[46D"

    "\x1b"

    "[m"

    "\x1b"

    "(B查询交易起日 :"

    "\x1b"

    "[;4m"

    "\x1b"

    "(B2013/10/23"

    "\x1b"

    "[9C"

    "\x1b"

    "[m"

    "\x1b"

    "(B查询交易止日 :"

    "\x1b"

    "[;4m"

    "\x1b"

    "(B2013/10/23"

    "\x1b"

    "[10B"

    "\x1b"

    "[61D"

    "\x1b"

    "[m"

    "\x1b"

    "(B信息行:\n"

    "\r"

    "\x00"

    "  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"

    "━━\n"

    "\r"

    "\x00"

    "   功能键:   F3 = 退出  F9 = 重复  F10 = 提交 ↓ = 列表"

    "\x1b"

    "[2A"

    "\x1b"

    "[22C"

    "\x1b"

    "[66D等候主机响应......"

    "\x1b"

    "[18D"

    "\x1b"

    "[K"

    "\x00\x00\x00\x1b"

    "[66C"

    "\x1b"

    "[66D"

    "\x1b"

    "[66C"

    "\x1b"

    "[66D"

    "\x1b"

    "[H\n"

    "\n"

    "  "

    "\x1b"

    "[K"

    "\x00\x00\x00\x1b"

    "[6B     "

    "\x1b"

    "[K"

    "\x00\x00\x00"

    "\n"

    "\n"

    "\n"

    "\x1b"

    "[K"

    "\x00\x00\x00\x1b"

    "[10B\r"

    "\x00"

    "\n"

    "\n"

    "\x1b"

    "[13C"

    "\x1b"

    "[K"

    "\x00\x00\x00\x1b"

    "[64C"

    "\x1b"

    "[66D↑↓- 选择 Enter-查询单条  P-打印 F10-提交 F3-退出"

    "\x1b"

    "[H\n"

    "\n"

    " ┌──────────────────────────────────[  "

    " 1]┐\n"

    "\r"

    "\x00"

    " │账号"

    "\x1b"

    "[19C分账号 定活标志   卡号"

    "\x1b"

    "[16C币种 钞汇别  │\n"

    "\r"

    "\x00"

    " │────────────────────────────────────"

    "─│\n"

    "\r"

    "\x00"

    " │"

    "\x1b"

    "[;7m"

    "\x1b"

    "(B159990121000359622     000000 活期       6235160001500003108 01   本币  "

    "  "

    "\x1b"

    "[m"

    "\x1b"

    "(B│\n"

    "\r"

    "\x00"

    " │159990121000359622     000000 活期"

    "\x1b"

    "[7C6235160001500003108 01   本币    │\n"

    "\r"

    "\x00"

    " │159990121000359622     000000 活期"

    "\x1b"

    "[7C6235160001500003108 01   本币    │\n"

    "\r"

    "\x00"

    " │159990121000359622     000000 活期"

    "\x1b"

    "[7C6235160001500003108 01   本币    │\n"

    "\r"

    "\x00"

    " │"

    "\x1b"

    "[74C│\n"

    "\r"

    "\x00"

    " │"

    "\x1b"

    "[74C│\n"

    "\r"

    "\x00"

    " │"

    "\x1b"

    "[74C│\n"

    "\r"

    "\x00"

    " │"

    "\x1b"

    "[74C│\n"

    "\r"

    "\x00"

    " │"

    "\x1b"

    "[74C│\n"

    "\r"

    "\x00"

    " │"

    "\x1b"

    "[74C│\n"

    "\r"

    "\x00"

    " │"

    "\x1b"

    "[74C│\n"

    "\r"

    "\x00"

    " │"

    "\x1b"

    "[74C│\n"

    "\r"

    "\x00"

    " │"

    "\x1b"

    "[74C│\n"

    "\r"

    "\x00"

    " │"

    "\x1b"

    "[74C│\n"

    "\r"

    "\x00"

    " │"

    "\x1b"

    "[74C│\n"

    "\r"

    "\x00"

    " └────────────────────────────────────"

    "─┘"

    "\x1b"

    "[15A\b\b"
    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏
    回复

    使用道具 举报

  • TA的每日心情
    擦汗
    昨天 09:02
  • 签到天数: 1042 天

    连续签到: 4 天

    [LV.10]测试总司令

    2#
    发表于 2014-6-20 15:06:37 | 只看该作者
    建议你可以通过论坛搜索看下这方面的信息~
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-11-8 06:08 , Processed in 0.064650 second(s), 28 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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