|
3#
楼主 |
发表于 2005-9-15 15:00:43
|
只看该作者
这个问题我解决了,,可是 我在那个蓝色背景的面板上面不能输入命令阿
你看看运行结果
虚拟用户脚本已启动
正在开始操作 vuser_init。
Connect succeeded on try 1: comm-type = telnet;host-name = 192.168.2.251;telnet-port = 18110;set-window-size = true;terminal-type = vt420-7;terminal-model = vt320;.
vuser_init.c(29): 错误: TE_connect failed after 1 tries. Retrying.
Reason: Unable to connect to host.
The error message is: 已连接.
During connection of comm-type = telnet;host-name = 192.168.2.251;telnet-port = 18110;set-window-size = true;terminal-type = vt420-7;terminal-model = vt320;
vuser_init.c(29): 错误: TE_connect failed after 2 tries. Retrying.
Reason: Unable to connect to host.
The error message is: 已连接.
During connection of comm-type = telnet;host-name = 192.168.2.251;telnet-port = 18110;set-window-size = true;terminal-type = vt420-7;terminal-model = vt320;
vuser_init.c(29): 错误: TE_connect failed after 3 tries. Retrying.
Reason: Unable to connect to host.
The error message is: 已连接.
During connection of comm-type = telnet;host-name = 192.168.2.251;telnet-port = 18110;set-window-size = true;terminal-type = vt420-7;terminal-model = vt320;
vuser_init.c(29): 错误: TE_connect failed after 4 tries. Retrying.
Reason: Unable to connect to host.
The error message is: 已连接.
During connection of comm-type = telnet;host-name = 192.168.2.251;telnet-port = 18110;set-window-size = true;terminal-type = vt420-7;terminal-model = vt320;
vuser_init.c(29): 错误: TE_connect failed after 5 tries. Giving up.
Reason: Unable to connect to host.
The error message is: 已连接.
During connection of comm-type = telnet;host-name = 192.168.2.251;telnet-port = 18110;set-window-size = true;terminal-type = vt420-7;terminal-model = vt320;
Aborting RTE vuse
这个市脚本
/*
* init.c
*
* A standard template file for RTE VuGen.
*/
#include <lrrte.h>
vuser_init()
{
/* *** The terminal type is VT420-7. */
TE_connect(
"comm-type = telnet;"
"host-name = 192.168.2.251;"
"telnet-port = 18110;"
"set-window-size = true;"
"terminal-type = vt420-7;"
"terminal-model = vt320;"
, 60000);
if (TE_errno != TE_SUCCESS)
return -1;
/* *** The terminal type is VT420-7. */
TE_connect(
"comm-type = telnet;"
"host-name = 192.168.2.251;"
"telnet-port = 18110;"
"set-window-size = true;"
"terminal-type = vt420-7;"
"terminal-model = vt320;"
, 60000);
if (TE_errno != TE_SUCCESS)
return -1;
TE_wait_text("+OK China Mobile push proxy v1.0 ready", 90);
TE_wait_cursor(1, 2, 100, 90);
lr_think_time(6);
TE_type("user luojingen<kReturn>pass luojingen<kReturn>");
/* *** The terminal type is VT420-7. */
TE_connect(
"comm-type = telnet;"
"host-name = 192.168.2.251;"
"telnet-port = 18110;"
"set-window-size = true;"
"terminal-type = vt420-7;"
"terminal-model = vt320;"
, 60000);
if (TE_errno != TE_SUCCESS)
return -1;
/* *** The terminal type is VT420-7. */
TE_connect(
"comm-type = telnet;"
"host-name = 192.168.2.251;"
"telnet-port = 18110;"
"set-window-size = true;"
"terminal-type = vt420-7;"
"terminal-model = vt320;"
, 60000);
if (TE_errno != TE_SUCCESS)
return -1;
TE_wait_cursor(1, 2, 100, 90);
lr_think_time(8);
TE_type("user luojingen<kReturn>pass nhmvyz<kReturn>");
TE_wait_cursor(1, 2, 100, 90);
lr_think_time(7);
TE_type("uidl<kReturn>list<kReturn>dele 1<kReturn>");
return 0; |
|