|
我的脚本是这样的,能不能对lrs_send和lrs_receive里第二个参数像buf0、buf1,利用本地的测试数据做成参数化参数?怎么设置?
我的本地测试数据文件里的数据和录脚本的数据格式一致
da95656
da66666
da55555
da44444
...
...
Action()
{
lr_think_time(2);
lrs_create_socket("socket0", "UDP", "LocalHost=61440", LrsLastArg);
lrs_send("socket0", "buf0", "TargetSocket=210.77.169.249:61440", LrsLastArg);
lrs_receive("socket0", "buf1", LrsLastArg);
lrs_send("socket0", "buf2", "TargetSocket=210.77.169.249:61440", LrsLastArg);
lrs_receive("socket0", "buf3", LrsLastArg);
lrs_send("socket0", "buf4", "TargetSocket=210.77.169.249:61440", LrsLastArg);
lrs_receive("socket0", "buf5", LrsLastArg);
return 0;
} |
|