|
action:
lrs_send("socket0", "buf6", LrsLastArg);
lrs_receive("socket0", "buf7", LrsLastArg);
lrs_save_param("socket0",NULL,"newsession",179,19);
lr_output_message ("param1: %s", lr_eval_string("<newsession>"));
lrs_send("socket0", "buf8", LrsLastArg);
斜体部分是我加的 之后我运行run 出现错误如下:
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(22): lrs_create_socket(socket1, UDP, ...)
Action.c(24): lrs_send(socket1, buf4)
Action.c(26): lrs_receive(socket1, buf5)
Action.c(26): Mismatch (expected 11 bytes, 0 bytes actually received)
Action.c(28): lrs_close_socket(socket1)
Action.c(30): lrs_send(socket0, buf6)
Action.c(32): lrs_receive(socket0, buf7)
Action.c(32): Mismatch (expected 161 bytes, 158 bytes actually received)
Action.c(34): lrs_save_param(socket0, null, newsession, 179, 19)
Action.c(34): Error : save param parameter is invalid. Error code : 9005.
Abort was called from an action.
Ending Vuser...
Starting action vuser_end.
vuser_end.c(12): lrs_cleanup()
Ending action vuser_end.
Vuser Terminated.
请高手指点下吧 谢谢了 |
|