|
2#
楼主 |
发表于 2005-10-12 10:13:56
|
只看该作者
录制的脚本如下,
/*********************************************************************
* Created by Mercury Interactive Windows Sockets Recorder
*
* Created on: Wed Oct 12 09:52:17
*********************************************************************/
#include "lrs.h"
vuser_init()
{
lrs_startup(257);
lrs_create_socket("socket0", "TCP", "RemoteHost=dbserver.lan:1521", LrsLastArg);
lrs_send("socket0", "buf0", LrsLastArg);
lrs_receive("socket0", "buf1", LrsLastArg);
lrs_disable_socket("socket0", DISABLE_SEND);
lrs_close_socket("socket0");
lrs_create_socket("socket1", "TCP", "RemoteHost=dbserver.lan:1336", LrsLastArg);
lrs_send("socket1", "buf2", LrsLastArg);
lrs_receive("socket1", "buf3", LrsLastArg);
lrs_send("socket1", "buf4", LrsLastArg);
lrs_receive("socket1", "buf5", LrsLastArg);
lrs_send("socket1", "buf6", LrsLastArg);
lrs_receive("socket1", "buf7", LrsLastArg);
lrs_send("socket1", "buf8", LrsLastArg);
lrs_receive("socket1", "buf9", LrsLastArg);
lrs_send("socket1", "buf10", LrsLastArg);
lrs_receive("socket1", "buf11", LrsLastArg);
lrs_send("socket1", "buf12", LrsLastArg);
lrs_receive("socket1", "buf13", LrsLastArg);
lrs_send("socket1", "buf14", LrsLastArg);
lrs_receive("socket1", "buf15", LrsLastArg);
lrs_send("socket1", "buf16", LrsLastArg);
lrs_receive("socket1", "buf17", LrsLastArg);
lrs_send("socket1", "buf18", LrsLastArg);
lrs_receive("socket1", "buf19", LrsLastArg);
lrs_send("socket1", "buf20", LrsLastArg);
lrs_receive("socket1", "buf21", LrsLastArg);
lrs_send("socket1", "buf22", LrsLastArg);
lrs_receive("socket1", "buf23", LrsLastArg);
lrs_send("socket1", "buf24", LrsLastArg);
lrs_receive("socket1", "buf25", LrsLastArg);
lrs_send("socket1", "buf26", LrsLastArg);
lrs_receive("socket1", "buf27", LrsLastArg);
lrs_send("socket1", "buf28", LrsLastArg);
lrs_receive("socket1", "buf29", LrsLastArg);
lrs_send("socket1", "buf30", LrsLastArg);
lrs_receive("socket1", "buf31", LrsLastArg);
lrs_send("socket1", "buf32", LrsLastArg);
lrs_receive("socket1", "buf33", LrsLastArg);
lrs_send("socket1", "buf34", LrsLastArg);
lrs_receive("socket1", "buf35", LrsLastArg);
lrs_send("socket1", "buf36", LrsLastArg);
lrs_receive("socket1", "buf37", LrsLastArg);
lrs_send("socket1", "buf38", LrsLastArg);
lrs_receive("socket1", "buf39", LrsLastArg);
lrs_send("socket1", "buf40", LrsLastArg);
lrs_receive("socket1", "buf41", LrsLastArg);
lrs_send("socket1", "buf42", LrsLastArg);
lrs_receive("socket1", "buf43", LrsLastArg);
lrs_send("socket1", "buf44", LrsLastArg);
lrs_receive("socket1", "buf45", 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);
return 0;
} |
|