LOADRUNNER winsocket回放出现问题
用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.
求解决办法!!!
另外,在刚录制好脚本后,回放多次都没有出现问题,但是在设置的场景中运行就出现错误,不通过
停止场景中的运行后,再次回放这个脚本,出现了上述的问题!! 在使用winsocket协议的时候,同遇到相应的问题,希望能和楼主及时交流,我的QQ:8186248,期待与你讨论。
页:
[1]