TA的每日心情 | 开心 2016-2-15 09:02 |
---|
签到天数: 7 天 连续签到: 1 天 [LV.3]测试连长
|
2#
楼主 |
发表于 2011-8-22 15:19:13
|
只看该作者
vuser_init()
{
lrs_create_socket("socket0", "TCP", "LocalHost=0", "RemoteHost=200.200.203.56:7779", 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_send("socket0", "buf6", LrsLastArg);
lrs_receive("socket0", "buf7", LrsLastArg);
lrs_send("socket0", "buf8", LrsLastArg);
lrs_receive("socket0", "buf9", LrsLastArg);
lrs_send("socket0", "buf10", LrsLastArg);
lrs_receive("socket0", "buf11", LrsLastArg);
lrs_send("socket0", "buf12", LrsLastArg);
lrs_receive("socket0", "buf13", LrsLastArg);
lr_think_time(7);
lrs_send("socket0", "buf14", LrsLastArg);
lrs_receive("socket0", "buf15", LrsLastArg);
lrs_send("socket0", "buf16", LrsLastArg);
lrs_receive("socket0", "buf17", LrsLastArg);
lrs_send("socket0", "buf18", LrsLastArg);
lrs_receive("socket0", "buf19", LrsLastArg);
lrs_send("socket0", "buf20", LrsLastArg);
lrs_receive("socket0", "buf21", LrsLastArg);
lrs_send("socket0", "buf22", LrsLastArg);
lrs_receive("socket0", "buf23", LrsLastArg);
lrs_send("socket0", "buf24", LrsLastArg);
lrs_receive("socket0", "buf25", LrsLastArg);
lrs_send("socket0", "buf26", LrsLastArg);
lrs_receive("socket0", "buf27", LrsLastArg);
lrs_send("socket0", "buf28", LrsLastArg);
lrs_receive("socket0", "buf29", LrsLastArg);
lrs_send("socket0", "buf30", LrsLastArg);
lrs_receive("socket0", "buf31", LrsLastArg);
lrs_send("socket0", "buf32", LrsLastArg);
lrs_receive("socket0", "buf33", LrsLastArg);
lrs_send("socket0", "buf34", LrsLastArg);
lrs_receive("socket0", "buf35", LrsLastArg);
lrs_send("socket0", "buf36", LrsLastArg);
lrs_receive("socket0", "buf37", LrsLastArg);
lrs_send("socket0", "buf38", LrsLastArg);
lrs_receive("socket0", "buf39", LrsLastArg);
lrs_send("socket0", "buf40", LrsLastArg);
lrs_receive("socket0", "buf41", LrsLastArg);
lrs_send("socket0", "buf42", LrsLastArg);
lrs_receive("socket0", "buf43", LrsLastArg);
lrs_send("socket0", "buf44", LrsLastArg);
lrs_receive("socket0", "buf45", LrsLastArg);
lr_think_time(20);
lrs_close_socket("socket0");
lrs_create_socket("socket1", "TCP", "LocalHost=0", "RemoteHost=200.200.203.56:7779", LrsLastArg);
lrs_send("socket1", "buf46", LrsLastArg);
lrs_receive("socket1", "buf47", LrsLastArg);
lrs_send("socket1", "buf48", LrsLastArg);
lrs_receive("socket1", "buf49", LrsLastArg);
lrs_send("socket1", "buf50", LrsLastArg);
lrs_receive("socket1", "buf51", LrsLastArg);
lrs_send("socket1", "buf52", LrsLastArg);
lrs_receive("socket1", "buf53", LrsLastArg);
lrs_send("socket1", "buf54", LrsLastArg);
lrs_receive("socket1", "buf55", LrsLastArg);
lrs_send("socket1", "buf56", LrsLastArg);
lrs_receive("socket1", "buf57", LrsLastArg);
lrs_send("socket1", "buf58", LrsLastArg);
lrs_receive("socket1", "buf59", LrsLastArg);
lrs_send("socket1", "buf60", LrsLastArg);
lrs_receive("socket1", "buf61", LrsLastArg);
lrs_send("socket1", "buf62", LrsLastArg);
lrs_receive("socket1", "buf63", LrsLastArg);
lrs_send("socket1", "buf64", LrsLastArg);
lrs_receive("socket1", "buf65", LrsLastArg);
lrs_send("socket1", "buf66", LrsLastArg);
lrs_receive("socket1", "buf67", LrsLastArg);
lrs_send("socket1", "buf68", LrsLastArg);
lrs_receive("socket1", "buf69", LrsLastArg);
lrs_send("socket1", "buf70", LrsLastArg);
lrs_receive("socket1", "buf71", LrsLastArg);
lrs_send("socket1", "buf72", LrsLastArg);
lrs_receive("socket1", "buf73", LrsLastArg);
lrs_send("socket1", "buf74", LrsLastArg);
lrs_receive("socket1", "buf75", LrsLastArg);
lrs_send("socket1", "buf76", LrsLastArg);
lrs_receive("socket1", "buf77", LrsLastArg);
lrs_send("socket1", "buf78", LrsLastArg);
lrs_receive("socket1", "buf79", LrsLastArg);
lrs_create_socket("socket2", "TCP", "LocalHost=0", "RemoteHost=200.200.203.56:9999", LrsLastArg);
lrs_send("socket2", "buf80", LrsLastArg);
lrs_receive("socket2", "buf81", LrsLastArg);
lr_think_time(11);
lrs_send("socket2", "buf82", LrsLastArg);
lrs_receive("socket2", "buf83", LrsLastArg);
lr_think_time(4);
lrs_close_socket("socket1");
lr_think_time(10);
lrs_send("socket2", "buf84", LrsLastArg);
lrs_receive("socket2", "buf85", LrsLastArg);
lr_think_time(13);
lrs_send("socket2", "buf86", LrsLastArg);
lrs_receive("socket2", "buf87", LrsLastArg);
lr_think_time(14);
lrs_send("socket2", "buf88", LrsLastArg);
lrs_receive("socket2", "buf89", LrsLastArg);
lr_think_time(14);
lrs_send("socket2", "buf90", LrsLastArg);
lrs_receive("socket2", "buf91", LrsLastArg);
lr_think_time(14);
lrs_send("socket2", "buf92", LrsLastArg);
lrs_receive("socket2", "buf93", LrsLastArg);
lr_think_time(14);
lrs_send("socket2", "buf94", LrsLastArg);
lrs_receive("socket2", "buf95", LrsLastArg);
lr_think_time(14);
lrs_send("socket2", "buf96", LrsLastArg);
lrs_receive("socket2", "buf97", LrsLastArg);
lr_think_time(9);
lrs_send("socket2", "buf98", LrsLastArg);
lrs_close_socket("socket2");
return 0;
}
这是我录制的一个,都在vuser_init下, 我录制时选择的协议是:Oracle(2-Tier)、Windows Sockets,不知道对不 |
|