在远程机器上执行 QTP 脚本 [英] Execution of QTP scripts on remote machines

查看:35
本文介绍了在远程机器上执行 QTP 脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发布了这个关于在远程机器上执行 QTP 脚本的问题.当我通过mstsc"登录到我的远程机器,并在不关闭远程桌面连接的情况下执行脚本时,它工作正常.但是一旦我关闭/最小化远程桌面窗口,它就会开始抛出错误(比如对象不可见"错误.

I am posting this question regarding the execution of QTP scripts on remote machine. When i log in to my remote machine via "mstsc", and execute the script without closing the remote desktop connection, it works fine. But once i close/minimize the remote desktop window, it starts throwing error ( like Object not visible" error.

它通常会抛出错误的地方之一是在 IE 中单击文件菜单时,如下所示:-

One of the places where it generally throws error is while clicking on the file menu in IE, as shown below :-

Browser(" page name -").WinToolbar("ToolbarWindow32").Press "&File"

是否有任何解决方法可以解决相同的问题?大多数 QTP 脚本需要大量时间来执行,如果前提是保持屏幕处于活动状态甚至不锁定,这不是主要缺点之一吗?

Are there any workarounds to resolve the same?? Most of the QTP scripts take lot of time to execute, and if the prerequisite is to keep the screen active without even locking, isnt it one of the key disadvantages?

提前致谢!!!史蒂夫

推荐答案

如果您想在最小化的 RDP 会话中运行 QuickTest,并且您正在使用 RDP >= 6.0 客户端,您可以通过在本地计算机上设置注册表值来启用它:导航到本地计算机上的以下注册表路径之一:

If you want to run QuickTest in a minimized RDP session, and you are using an RDP >= 6.0 client, you can enable it by setting a registry value on the local computer: Navigate to one of the following registry paths on the local computer:

当前用户:HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client或者所有用户:HKEY_LOCAL_MACHINE\Software\Microsoft\Terminal Server Client

Current User: HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client or All Users: HKEY_LOCAL_MACHINE\Software\Microsoft\Terminal Server Client

创建一个名为 RemoteDesktop_SuppressWhenMinimizedDWORD 值并将其设置为 2.

Create a DWORD value named RemoteDesktop_SuppressWhenMinimized and set it to 2.

请注意,这在计算机锁定或注销时不起作用.

Note that this does not work when the computer is locked or logged off.

这篇关于在远程机器上执行 QTP 脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆