51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 4212|回复: 5
打印 上一主题 下一主题

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

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2007-11-5 16:17:49 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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 编辑 ]
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2007-11-5 17:13:25 | 只看该作者

lz host丢包了

如题。

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

127.0.10.1 localhost
...

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

希望有帮助。
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2007-11-10 17:48:27 | 只看该作者

一个程序来控制多台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)
回复 支持 反对

使用道具 举报

该用户从未签到

4#
发表于 2007-11-10 17:49:45 | 只看该作者

[ ] //一段脚本,在多台电脑上顺序执行(串行,同时只有一个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())
        [ ]
回复 支持 反对

使用道具 举报

该用户从未签到

5#
发表于 2007-11-12 10:52:03 | 只看该作者
这个功能从来没用过,学习学习
回复 支持 反对

使用道具 举报

该用户从未签到

6#
发表于 2007-11-14 16:49:18 | 只看该作者

请教什么是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中的内容看了好几遍,还是没有完全理解,特请各位大虾指教,谢谢
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-9-21 00:40 , Processed in 0.071438 second(s), 32 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表