|
我用LoadRunner录制了一个聊天工具的登录脚本
编译通过,可是回放时却报错vuser_init.c(44): Error : socket0 - Software caused connection abort. Error code : 10053.
我不知道是什么问题
我用的是windows sockets,odbc协议
我是不是协议错了还是录制步骤有问题
我的脚本为:
vuser_init()
{
lrs_create_socket("socket0", "TCP", "LocalHost=0", "RemoteHost=MYLINUXTEST:1214", 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);
lr_think_time(4);
lrs_send("socket0", "buf18", LrsLastArg);
return 0;
}
回放为:
Virtual User Script started
Starting action vuser_init.
vuser_init.c(12): lrs_create_socket(socket0, TCP, ...)
vuser_init.c(14): lrs_send(socket0, buf0)
vuser_init.c(16): lrs_receive(socket0, buf1)
vuser_init.c(18): lrs_send(socket0, buf2)
vuser_init.c(20): lrs_receive(socket0, buf3)
vuser_init.c(22): lrs_send(socket0, buf4)
vuser_init.c(24): lrs_receive(socket0, buf5)
vuser_init.c(26): lrs_send(socket0, buf6)
vuser_init.c(28): lrs_receive(socket0, buf7)
vuser_init.c(30): lrs_send(socket0, buf8)
vuser_init.c(32): lrs_receive(socket0, buf9)
vuser_init.c(34): lrs_send(socket0, buf10)
vuser_init.c(36): lrs_receive(socket0, buf11)
vuser_init.c(38): lrs_send(socket0, buf12)
vuser_init.c(40): lrs_receive(socket0, buf13)
vuser_init.c(40): Mismatch (expected 244 bytes, 245 bytes actually received)
vuser_init.c(42): lrs_send(socket0, buf14)
vuser_init.c(44): lrs_receive(socket0, buf15)
vuser_init.c(44): Error : socket0 - Software caused connection abort. Error code : 10053.
Abort was called from an action. |
|