51Testing软件测试论坛
标题:
socket做关联,关联成功后,却打印不出关联的数值,何解
[打印本页]
作者:
aa285757
时间:
2014-2-25 09:51
标题:
socket做关联,关联成功后,却打印不出关联的数值,何解
脚本如下
lrs_send("socket0", "buf0", LrsLastArg);
lrs_receive("socket0", "buf1", LrsLastArg);
lrs_save_searched_string("socket0",LRS_LAST_RECEIVED,"aa","LB/BIN=<consequence>","RB/BIN=</consequence>",1,0,-1);
lr_output_message("receive:%s",lr_eval_string("{aa}"));
打印结果:
receive:{aa}
而不是预期关联的数值。
作者:
qitengfeng
时间:
2014-2-25 15:13
注意Socket的参数默认是用尖括号<param1>,不是{param1}
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2