|
loadrunner7.8测试C/S程序的问题,我用虚拟用户生成器,录制脚本,编译会通过,但是运行的时候出错,不知道为什么,下面是我的代码
Action()
{
lrs_create_socket("socket0", "UDP", LrsLastArg);
lrs_send("socket0", "buf0", "TargetSocket=sharp:0", LrsLastArg);
lrs_receive("socket0", "buf1", LrsLastArg);
lrs_close_socket("socket0");
lrs_create_socket("socket1", "TCP", "RemoteHost=sharp:1488", LrsLastArg);
lrs_send("socket1", "buf2", LrsLastArg);
lrs_receive("socket1", "buf3", LrsLastArg);
lrs_send("socket1", "buf4", LrsLastArg);
}
到红色部分时,就出现错误,运行不过去,错误信息是
Action.c(20): Error : callConnect - Can't assign requested address. Error code : 10049.
Action.c(20): Error : Timeout expired while trying to connect. Error code : 9017. |
|