|
我也遇到了相似的问题,我用winsockets协议录制了一个c/s结够的脚本,loadrunner部署在服务器端,脚本是纪录登录服务器并进行操作的情况。在回访的时候出现如下问题:
Starting action vuser_init.
vuser_init.c(12): lrs_startup(257)
vuser_init.c(14): lrs_create_socket(socket0, TCP, ...)
vuser_init.c(14): Error : socket0 - Address already in use. Error code : 10048.
Abort was called from an action.
初始化脚本如下:
vuser_init()
{
lrs_startup(257);
lrs_create_socket("socket0", "TCP", "LocalHost=20010", "Backlog=2147483647", LrsLastArg);
lr_think_time(28);
lrs_accept_connection("socket0", "socket1");
lrs_create_socket("socket2", "TCP", "RemoteHost=202.204.54.131:1521", LrsLastArg);
lrs_send("socket2", "buf0", LrsLastArg);
lrs_receive("socket2", "buf1", LrsLastArg);
lrs_send("socket2", "buf2", LrsLastArg);
lrs_receive("socket2", "buf3", LrsLastArg);
lrs_send("socket2", "buf4", LrsLastArg);
lrs_receive("socket2", "buf5", LrsLastArg);
lrs_send("socket2", "buf6", LrsLastArg);
lrs_receive("socket2", "buf7", LrsLastArg);
lrs_send("socket2", "buf8", LrsLastArg);
lrs_receive("socket2", "buf9", LrsLastArg);
lrs_send("socket2", "buf10", LrsLastArg);
lrs_receive("socket2", "buf11", LrsLastArg);
lrs_send("socket2", "buf12", LrsLastArg);
lrs_receive("socket2", "buf13", LrsLastArg);
lrs_send("socket2", "buf14", LrsLastArg);
lrs_receive("socket2", "buf15", LrsLastArg);
lrs_send("socket2", "buf16", LrsLastArg);
lrs_receive("socket2", "buf17", LrsLastArg);
lrs_send("socket2", "buf18", LrsLastArg);
lrs_receive("socket2", "buf19", LrsLastArg);
lrs_send("socket2", "buf20", LrsLastArg);
lrs_receive("socket2", "buf21", LrsLastArg);
lrs_send("socket2", "buf22", LrsLastArg);
lrs_receive("socket2", "buf23", LrsLastArg);
lrs_send("socket2", "buf24", LrsLastArg);
lrs_receive("socket2", "buf25", LrsLastArg);
lrs_send("socket2", "buf26", LrsLastArg);
lrs_receive("socket2", "buf27", LrsLastArg);
lrs_send("socket2", "buf28", LrsLastArg);
lrs_receive("socket2", "buf29", LrsLastArg);
lrs_receive("socket1", "buf30", LrsLastArg);
lrs_send("socket1", "buf31", LrsLastArg);
return 0;
}
不知是何原因。难道是关联问题? |
|