|
使用lr录制应用程序,协议是win socket,回放后报:
callConnect-Connection refused,Error code :10061
Timeout expired while trying to connect,Error code:9017
录制脚本如下
lrs_startup(257);
lrs_create_socket("socket0", "TCP", "RemoteHost=ZUZHI-20120321L:8888", LrsLastArg);
lrs_send("socket0", "buf0", LrsLastArg);
lrs_receive("socket0", "buf1", LrsLastArg);
lr_think_time(6);
lrs_send("socket0", "buf2", LrsLastArg);
lrs_receive("socket0", "buf3", LrsLastArg);
lrs_send("socket0", "buf4", LrsLastArg);
lr_think_time(7);
lrs_receive("socket0", "buf5", LrsLastArg);
lrs_send("socket0", "buf6", LrsLastArg);
lrs_receive("socket0", "buf7", LrsLastArg);
lr_think_time(11);
lrs_send("socket0", "buf8", LrsLastArg);
lr_think_time(15);
lrs_send("socket0", "buf9", LrsLastArg);
lr_think_time(7);
lrs_send("socket0", "buf10", LrsLastArg);
lr_think_time(36);
lrs_receive("socket0", "buf11", LrsLastArg);
lr_think_time(10);
lrs_receive("socket0", "buf12", LrsLastArg);
lr_think_time(7);
lrs_receive("socket0", "buf13", LrsLastArg);
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_disable_socket("socket0", DISABLE_SEND_RECV);
lrs_close_socket("socket0");
return 0;
希望大家可以帮帮我,感激不尽 |
|