|
脚本如下:
lrs_create_socket("socket15", "TCP", "RemoteHost=144.20.80.112:9080", LrsLastArg);
lrs_send("socket15", "buf30", LrsLastArg);
lrs_receive("socket15", "buf31", LrsLastArg);
lrs_save_searched_string("socket15", "buf31", "Parameter1", "LB/BIN=<item>", "RB/BIN=</item>\n", 1, 0, -1);
lr_output_message("Parameter1=%s!",lr_eval_string("{Parameter1}"));
回放日志如下:
Action.c(170): 通知: 正在保存参数“Parameter1 = 106” [MsgId: MMSG-13798]
Action.c(172): Parameter1={Parameter1}! [MsgId: MMSG-17999]
从日志里看关联函数已经成功获取到值并将值保存到Parameter1 ,为什么用lr_output_message输出的时候显示的不是106呢,我这脚本有什么问题吗? |
|