51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 2487|回复: 6
打印 上一主题 下一主题

[原创] 怎样才能运行远程的QTP

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2010-12-17 16:12:07 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
公司有台机器装了QTP9.2
在我本机怎样能启动远程机器的QTP,然后执行一个TEST 。
本机没装QC那些软件。写脚本行吗?
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2010-12-17 17:26:34 | 只看该作者
以前我的做法是用telnet,首先在目标机上开启telnet服务,然后需要测试的时候,就从我的机器上通过telnet远程到目标机上,然后通过命令行的方法启动测试脚本,打开QTP的操作也一起放在脚本里。
也可以把这些操作做成批处理,然后每次telnet上去后就直接执行批处理就OK。
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2010-12-17 17:50:48 | 只看该作者
vnc肯定可以,WINDOWS自带的不行
回复 支持 反对

使用道具 举报

该用户从未签到

4#
发表于 2010-12-17 18:31:30 | 只看该作者
这个 需要设置下dcom
然后 createobject("quicktest.application", serverip)
运行 就可以啦
哈哈
回复 支持 反对

使用道具 举报

该用户从未签到

5#
 楼主| 发表于 2010-12-18 11:09:43 | 只看该作者
这个 需要设置下dcom
然后 createobject("quicktest.application", serverip)
运行 就可以啦
哈哈
sunnyswu 发表于 2010-12-17 18:31

怎样设置dcom呢,能讲具体点吗
回复 支持 反对

使用道具 举报

该用户从未签到

6#
发表于 2010-12-19 11:26:54 | 只看该作者
docm嘛 其实就是设置qtp application 能以交互式方式在其他机器上运行
在qtp professional help上边有,找找看!
回复 支持 反对

使用道具 举报

该用户从未签到

7#
发表于 2010-12-19 11:27:50 | 只看该作者
To enable automation scripts to access a QuickTest computer remotely:

On the computer where you want to run the automation script, select Start > Run. The Run dialog box opens.
Enter dcomcnfg and click OK. The Distributed COM Configuration Properties dialog box or the Component Services window opens (depending on your operating system) and displays the list of COM applications available on the computer.
Select QuickTest Professional Automation from the list and open the Properties dialog box for the application. (Click the Properties button or right-click and select Properties, depending on your operating system.)
In the QuickTest Professional Automation Properties dialog box, click the Security tab.
In the launch permissions section, select the custom option and click Edit.
Use the Add and Remove options to select the network users or groups for which you want to allow or deny permission to launch QuickTest Professional via an automation script. When you are finished, click OK to save your settings.
Repeat steps 5 and 6 for the configuration permissions section to select the users or groups who can modify QuickTest Professional configuration options via an automation script.
In the QuickTest Professional Automation Properties dialog box, click the Identity tab and select the interactive user option.
Click OK to save the QuickTest Professional Automation Properties settings.
Click OK to close the Distributed COM Configuration Properties dialog box or the Component Services window.
Creating an Application Object on a Remote Computer
Once you have set the necessary DCOM Configuration settings for a remote computer, you can specify that computer in your automation script.

In VBScript, you do this by specifying the computer name as the optional location argument of the CreateObject function. The computer name should be the same as the computer name portion of a share name. For example, to run an automation script on a computer called MyServer, you could write:

Dim qtApp

Set qtApp = CreateObject("QuickTest.Application", "MyServer")

For information on the syntax for specifying the remote computer in another language you are using, see the documentation included with your development environment or to general documentation for the programming language.


好东西 要利用起来
回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-5-24 02:29 , Processed in 0.069606 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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