google搜索 51Testing站内搜索                    软件测试门户 | 软件测试培 训 | 文章资料精选 | 软件测试论坛 | 软件测试博客 | 测试招聘求职 
打印

求助::如何通过Agent远程控制多台PC。

求助::如何通过Agent远程控制多台PC。


Hi all,
Help中虽然告知了通过对Runtime中Agent的命名进行设置,即可驱动网络中的PC,
经过尝试后, 总是不能成功,提示的错误的信息有:
Error: Unable to connect to machine 'RemoteName'-- Host not found in hosts table (gethostbyname)
Error: Unable to connect to machine 'RemoteName'

[ 本帖最后由 zhangqunhe 于 2007-11-5 16:21 编辑 ]
Eagle flies high in the sky!

TOP

lz host丢包了


如题。

lz可以试试到 <windows folder>\system32\drivers\etc\
有一个叫"hosts"的文件,用写字板打开,可以填入host的名字。比如:

127.0.10.1 localhost
...

lz可以把host强制指一下,在试试agent启动。

希望有帮助。
找啊找啊,找工作……
找来找去,找不到……
[有谁要招小工、临时工、钟点工……] >>  jmy_1981@hotmail.com

TOP

一个程序来控制多台agent 并行运行的例子


[ ] // 一段脚本,同时在两台机器上运行,用于有多台电脑,同时执行不同的脚本,提高执行效率

[-] testcase run_2Test ()  appstate none
                [ ] // SetUpMachine (sMach1, MyFirstApp, "MyFirstAppState")
                [ ] // SetUpMachine (sMach2, MySecondApp, "MySecondAppState")
                [ ] // SetMultiAppStates ()
        [ ]    HMACHINE target_machine // target computer
        [ ]    HMACHINE host_machine // host computer
        [ ]    host_machine =  Connect ("(Local)")// save host's handle
        [ ]    // save targent machine's hangle
        [ ] target_machine = Connect ("192.168.2.94")
        [-] spawn
                        [ ] SetMachine (target_machine)
                [ ]    Agent.DisplayMessage("I am back",getmachinename())
                [ ] // Here is placed code that drives test operations
        [-] spawn
                        [ ] SetMachine (host_machine)
                        [ ] Agent.DisplayMessage("I am back",getmachinename())
                [ ] // Here is placed code that drives test operations
        [ ] rendezvous
        [ ]  Disconnect(host_machine)
        [ ]  Disconnect(target_machine)

TOP

[ ] //一段脚本,在多台电脑上顺序执行(串行,同时只有一个agent在运行)


[ ] //一段脚本,先在A机器上运行,然后在B机器上运行;处理类似msn 等交互类
[ ] //分布式的应用。
[+] testcase run_1Script () appstate  none
        [ ]    HMACHINE target_machine // target computer
        [ ]    HMACHINE host_machine // host computer
        [ ]    host_machine = GetMachine () // save host's handle
        [ ]
        [ ]    // connect to one remote machine
        [ ]    target_machine = Connect ("192.168.2.94")
        [ ]   
        [ ]   // This messagebox should be displayed on the targent machine
        [ ]    Agent.DisplayMessage("welcome",getmachinename())
        [ ]
        [ ]    // connect the host machine, and make it active
        [ ]    SetMachine (host_machine)
        [ ]   // This message should be displayed on the hostmachine
        [ ]    Agent.DisplayMessage("I am back",getmachinename())
        [ ]

TOP

这个功能从来没用过,学习学习

TOP

请教什么是parallel processing?


在斑竹的代码中看到了spawn和rendezvous两个不熟悉关键字。于是浏览了下silktest的help文档,发现他们都被归于parallel processing。请教下这里的parallel processing是个什么概念?
在silktest的help文档中,parallel processing还涉及到了critical statement, parallel statement, rendevous statement和spawn statement。请教他们有什么共同点和不同点?
PS:偶已经把help topic中的内容看了好几遍,还是没有完全理解,特请各位大虾指教,谢谢

TOP

 
当前时区 GMT+8, 现在时间是 2008-10-14 15:46Copyright(C)上海博为峰软件技术有限公司 2001-2007 电话:021-64471599-8017
当您在访问网站、论坛及博客过程中遇到问题时可发送email:webmaster@51testing.com或发送论坛短信至管理员风在吹