dragon-pk 发表于 2008-7-31 10:16:45

添加关联后run出错

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.
请高手指点下吧 谢谢了

dragon-pk 发表于 2008-7-31 12:41:52

没人帮忙吗

anny728 发表于 2008-8-1 17:22:26

please refer to the following code

lrs_save_param("socket2", NULL, "param1", 67, 5);
lr_output_message ("param1: %s", lr_eval_string("<param1>"));
lr_think_time(10);
lrs_send("socket2", "buf48", LrsLastArg);

zynuage 发表于 2008-8-4 11:30:35

运行undoall后,重新关联,就在关联框那里。
页: [1]
查看完整版本: 添加关联后run出错