51Testing软件测试论坛

标题: 高手进来,有哥问题我不知道问题出在什么地方了 [打印本页]

作者: luojingen100    时间: 2005-9-15 11:19
标题: 高手进来,有哥问题我不知道问题出在什么地方了
在采用lr,使用RTE协议 ,录制一个pop3登陆口令时,
刚开始录制 就出现

如图所示的错误,请教高手这是为什么啊?
作者: kernzhang    时间: 2005-9-15 14:38
你在RTE的recording option中改一下设置就行了!
作者: luojingen100    时间: 2005-9-15 15:00
这个问题我解决了,,可是 我在那个蓝色背景的面板上面不能输入命令阿

你看看运行结果

虚拟用户脚本已启动
正在开始操作 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;




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2