51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

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

[原创] LOADRUNNER winsocket回放出现问题

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2009-2-2 11:15:37 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
用socket协议录制的,脚本如下:
Action()
{
    lrs_create_socket("socket0", "TCP", "LocalHost=0", "RemoteHost=i-1790294bba0f4:8083",  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);
    return 0;
}

replay log如下:

Virtual User Script started
Starting action vuser_init.
vuser_init.c(12): lrs_startup(257)
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(12): lrs_create_socket(socket0, TCP, ...)
Action.c(14): lrs_send(socket0, buf0)
Action.c(16): lrs_receive(socket0, buf1)
Action.c(18): lrs_send(socket0, buf2)
Action.c(20): lrs_receive(socket0, buf3)
Action.c(20): Mismatch in buffer's length (expected 147 bytes, 280 bytes actually received, difference in 133 bytes)
Action.c(22): lrs_send(socket0, buf4)
Action.c(24): lrs_receive(socket0, buf5)
Action.c(24): Mismatch in buffer's length (expected 147 bytes, 280 bytes actually received, difference in 133 bytes)
Action.c(26): lrs_send(socket0, buf6)
Action.c(28): lrs_receive(socket0, buf7)
Action.c(28): Mismatch in buffer's length (expected 16316 bytes, 280 bytes actually received, difference in 16036 bytes)
Action.c(30): lrs_send(socket0, buf8)
Action.c(32): lrs_receive(socket0, buf9)
Action.c(32): Mismatch in buffer's length (expected 181 bytes, 4493 bytes actually received, difference in 4312 bytes)
Action.c(34): lrs_send(socket0, buf10)
Action.c(36): lrs_receive(socket0, buf11)
Action.c(36): Error : socket0 - Software caused connection abort. Error code : 10053.
Abort was called from an action.
Ending Vuser...
Starting action vuser_end.
vuser_end.c(12): lrs_cleanup()
Ending action vuser_end.
Vuser Terminated.

求解决办法!!!

另外,在刚录制好脚本后,回放多次都没有出现问题,但是在设置的场景中运行就出现错误,不通过

停止场景中的运行后,再次回放这个脚本,出现了上述的问题!!
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2009-3-26 16:27:10 | 只看该作者
在使用winsocket协议的时候,同遇到相应的问题,希望能和楼主及时交流,我的QQ:8186248,期待与你讨论。
回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-11-19 16:38 , Processed in 0.062790 second(s), 23 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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