|
测试的对象是一个C/S结构的局域网系统,我在client端的一个edit控件里输入一个用户名,确定后产生了3个验证码,然后再点击一个按钮发送到server端,录制下上面这个过程。现在我希望每个VUSER输入的是不同的用户名,对应产生的验证码也都不一样,这样应该怎么在LR设置参数化呢?action里的脚本如下,不懂如何加入参数化,请各位指教,多谢
lrs_create_socket("socket0", "TCP", "LocalHost=0", "RemoteHost=SAGECRM:1433", LrsLastArg);
lrs_send("socket0", "buf0", LrsLastArg);
lrs_receive("socket0", "buf1", LrsLastArg);
lrs_send("socket0", "buf2", LrsLastArg);
lrs_receive("socket0", "buf3", LrsLastArg);
lrs_send("socket0", "buf4", LrsLastArg);
lrs_receive("socket0", "buf5", LrsLastArg);
lrs_close_socket("socket0");
lrs_create_socket("socket1", "TCP", "LocalHost=0", "RemoteHost=SAGECRM:20055", LrsLastArg);
lrs_send("socket1", "buf6", LrsLastArg);
lrs_receive("socket1", "buf7", LrsLastArg);
lrs_send("socket1", "buf8", LrsLastArg);
lrs_receive("socket1", "buf9", LrsLastArg); |
|