|
我用loadrunner9.5录制一个用户登录的操作,目的是测试一千个用户同时登陆的性能,选择的协议是socket和ms sql server,录制播放都成功,就是不知道怎么参数化,请大家帮帮忙,以下是我录制的代码
Action()
{
lrs_create_socket("socket0", "TCP", "LocalHost=0", "RemoteHost=59.188.52.41:80", LrsLastArg);
lrs_send("socket0", "buf0", LrsLastArg);
lrs_receive("socket0", "buf1", LrsLastArg);
lr_think_time(5);
lrs_create_socket("socket1", "TCP", "LocalHost=0", "RemoteHost=59.188.52.41:20002", LrsLastArg);
lrs_send("socket1", "buf2", LrsLastArg);
lrs_receive("socket1", "buf3", LrsLastArg);
lrs_close_socket("socket1");
lrs_create_socket("socket2", "TCP", "LocalHost=0", "RemoteHost=59.188.52.41:21006", LrsLastArg);
lrs_create_socket("socket3", "TCP", "LocalHost=0", "RemoteHost=59.188.52.41:21002", LrsLastArg);
lr_think_time(10);
lrs_send("socket3", "buf4", LrsLastArg);
lrs_receive("socket3", "buf5", LrsLastArg);
lrs_send("socket2", "buf6", LrsLastArg);
lrs_receive("socket2", "buf7", LrsLastArg);
lrs_receive("socket3", "buf8", LrsLastArg);
lrs_receive("socket2", "buf9", LrsLastArg);
lrs_receive("socket3", "buf10", LrsLastArg);
lrs_receive("socket2", "buf11", LrsLastArg);
return 0;
}
需要参数化的数据却存放在了DATA.WS文件里面,是不是直接在这里面参数化就好了?请求帮忙!谢谢 |
|