|
代码如下
Action()
{
lrs_create_socket("socket1", "TCP", "LocalHost=0", "RemoteHost=61.152.245.87:1214", LrsLastArg);
lrs_send("socket1", "buf0", LrsLastArg);
lrs_receive("socket1", "buf1", LrsLastArg);
lrs_send("socket1", "buf2", LrsLastArg);
lrs_receive("socket1", "buf3", LrsLastArg);
lrs_send("socket1", "buf4", LrsLastArg);
lrs_receive("socket1", "buf5", LrsLastArg);
lrs_send("socket1", "buf6", LrsLastArg);
lrs_receive("socket1", "buf7", LrsLastArg);
lrs_send("socket1", "buf8", LrsLastArg);
lrs_receive("socket1", "buf9", LrsLastArg);
lrs_send("socket1", "buf10", LrsLastArg);
lrs_receive("socket1", "buf11", LrsLastArg);
lrs_send("socket1", "buf12", LrsLastArg);
lrs_receive("socket1", "buf13", LrsLastArg);
lrs_send("socket1", "buf14", LrsLastArg);
lrs_receive("socket1", "buf15", LrsLastArg);
lrs_send("socket1", "buf16", LrsLastArg);
lrs_receive("socket1", "buf17", LrsLastArg);
lr_think_time(7);
lrs_send("socket1", "buf18", LrsLastArg);
return 0;
}
错误信息
Virtual User Script started
Starting action vuser_init.
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(4): lrs_create_socket(socket1, TCP, ...)
Action.c(6): lrs_send(socket1, buf0)
Action.c(8): lrs_receive(socket1, buf1)
Action.c(10): lrs_send(socket1, buf2)
Action.c(12): lrs_receive(socket1, buf3)
Action.c(14): lrs_send(socket1, buf4)
Action.c(16): lrs_receive(socket1, buf5)
Action.c(18): lrs_send(socket1, buf6)
Action.c(20): lrs_receive(socket1, buf7)
Action.c(22): lrs_send(socket1, buf8)
Action.c(24): lrs_receive(socket1, buf9)
Action.c(26): lrs_send(socket1, buf10)
Action.c(28): lrs_receive(socket1, buf11)
Action.c(30): lrs_send(socket1, buf12)
Action.c(32): lrs_receive(socket1, buf13)
Action.c(34): lrs_send(socket1, buf14)
Action.c(36): lrs_receive(socket1, buf15)
Action.c(38): lrs_send(socket1, buf16)
Action.c(40): lrs_receive(socket1, buf17)
Action.c(40): Mismatch (expected 2048 bytes, 0 bytes actually received)
Action.c(44): lrs_send(socket1, buf18)
Ending action Action.
Ending iteration 1.
Starting iteration 2.
Starting action Action.
Action.c(4): lrs_create_socket(socket1, TCP, ...)
Action.c(4): Error : socket1 - Invalid argument. Error code : 10022.
Action.c(4): Continuing after error in Vuser script.
Action.c(6): lrs_send(socket1, buf0)
Action.c(6): Error : Specified socket socket1 doesn't exist. Error code : 9002.
Action.c(6): Continuing after error in Vuser script.
Action.c(8): lrs_receive(socket1, buf1)
Action.c(8): Error : Specified socket socket1 doesn't exist. Error code : 9002.
Action.c(8): Continuing after error in Vuser script.
Action.c(10): lrs_send(socket1, buf2)
Action.c(10): Error : Specified socket socket1 doesn't exist. Error code : 9002.
Action.c(10): Continuing after error in Vuser script.
Action.c(12): lrs_receive(socket1, buf3)
Action.c(12): Error : Specified socket socket1 doesn't exist. Error code : 9002.
Action.c(12): Continuing after error in Vuser script.
Action.c(14): lrs_send(socket1, buf4)
Action.c(14): Error : Specified socket socket1 doesn't exist. Error code : 9002.
Action.c(14): Continuing after error in Vuser script.
Action.c(16): lrs_receive(socket1, buf5)
Action.c(16): Error : Specified socket socket1 doesn't exist. Error code : 9002.
Action.c(16): Continuing after error in Vuser script.
Action.c(18): lrs_send(socket1, buf6)
Action.c(18): Error : Specified socket socket1 doesn't exist. Error code : 9002.
Action.c(18): Continuing after error in Vuser script.
Action.c(20): lrs_receive(socket1, buf7)
Action.c(20): Error : Specified socket socket1 doesn't exist. Error code : 9002.
Action.c(20): Continuing after error in Vuser script.
Action.c(22): lrs_send(socket1, buf8)
Action.c(22): Error : Specified socket socket1 doesn't exist. Error code : 9002.
Action.c(22): Continuing after error in Vuser script.
Action.c(24): lrs_receive(socket1, buf9)
Action.c(24): Error : Specified socket socket1 doesn't exist. Error code : 9002.
Action.c(24): Continuing after error in Vuser script.
Action.c(26): lrs_send(socket1, buf10)
Action.c(26): Error : Specified socket socket1 doesn't exist. Error code : 9002.
Action.c(26): Continuing after error in Vuser script.
Action.c(28): lrs_receive(socket1, buf11)
Action.c(28): Error : Specified socket socket1 doesn't exist. Error code : 9002.
Action.c(28): Continuing after error in Vuser script.
Action.c(30): lrs_send(socket1, buf12)
Action.c(30): Error : Specified socket socket1 doesn't exist. Error code : 9002.
Action.c(30): Continuing after error in Vuser script.
Action.c(32): lrs_receive(socket1, buf13)
Action.c(32): Error : Specified socket socket1 doesn't exist. Error code : 9002.
Action.c(32): Continuing after error in Vuser script.
Action.c(34): lrs_send(socket1, buf14)
Action.c(34): Error : Specified socket socket1 doesn't exist. Error code : 9002.
Action.c(34): Continuing after error in Vuser script.
Action.c(36): lrs_receive(socket1, buf15)
Action.c(36): Error : Specified socket socket1 doesn't exist. Error code : 9002.
Action.c(36): Continuing after error in Vuser script.
Action.c(38): lrs_send(socket1, buf16)
Action.c(38): Error : Specified socket socket1 doesn't exist. Error code : 9002.
Action.c(38): Continuing after error in Vuser script.
Action.c(40): lrs_receive(socket1, buf17)
Action.c(40): Error : Specified socket socket1 doesn't exist. Error code : 9002.
Action.c(40): Continuing after error in Vuser script.
Action.c(44): lrs_send(socket1, buf18)
Action.c(44): Error : Specified socket socket1 doesn't exist. Error code : 9002.
Action.c(44): Continuing after error in Vuser script.
Ending action Action.
Ending iteration 2.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
不知道各位大虾有没有解决的办法啊??? |
|