|
用winsock协议录制了C/S 应用程序的脚本后,如何修改脚本?
下面是录制的脚本,请问是否一定要先做关联,设置RUN-TIME才可以运行的呢?
#include "lrs.h"
vuser_init()
{
lrs_startup(257);
return 0;
}
Action()
{
lr_think_time(11);
lrs_create_socket("socket0", "TCP", "RemoteHost=USER-EB13A2B2F1:5150", 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);
lr_think_time(52);
lrs_send("socket0", "buf5", LrsLastArg);
lrs_receive("socket0", "buf6", LrsLastArg);
lrs_send("socket0", "buf7", LrsLastArg);
lrs_disable_socket("socket0", DISABLE_SEND_RECV);
lrs_close_socket("socket0");
return 0;
}
我刚刚接触LOADRUNER ,请各位高手帮帮忙。谢谢!! |
|