Mercury Quick Test Pro 和虚拟机:可在一台客户端机器上工作,但不能在另一台机器上工作 [英] Mercury Quick Test Pro and Virtual machines: Works from one client machine but not another

查看:14
本文介绍了Mercury Quick Test Pro 和虚拟机:可在一台客户端机器上工作,但不能在另一台机器上工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台安装了 Mercury Quick Test Professional 9.2 的虚拟机 (VMware).我有一个脚本来测试应用程序,使用 Infragistics 库在 VB.NET 中编写.

I have a virtual machine (VMware) with Mercury Quick Test Professional 9.2 installed. I have a script to test an application, written in VB.NET using the Infragistics library.

如果我使用笔记本电脑(使用远程桌面)访问此虚拟机,一切正常,脚本完成没有问题.我的笔记本电脑运行 XP,带有 Windows Classic 主题.

If I access this virtual machine using my laptop (using Remote Desktop), everything works fine, the script completes without a problem. My laptop runs XP, with Windows Classic theme.

如果我使用另一台机器(使用远程桌面)访问此虚拟机,脚本启动正常,但中途停止,没有来自 QTP 的错误消息,什么都没有.这台机器运行 XP,带有 Windows Classic 主题.

If I access this virtual machine using another machine (using Remote Desktop), the script starts fine, but stops halfway through, without no error message from QTP, nothing. This machine runs XP, with Windows Classic theme.

两种设置的一个区别是屏幕大小,笔记本电脑是 1920x1280,其他机器是 1280x1024.

One difference between the two setups is the size of the screen, the laptop is 1920x1280, other machine 1280x1024.

脚本停止的步骤涉及检查 UltraWinGrid 中的复选框.复选框本身会显示,在两种情况下都在屏幕上.

The step where the script stops involves checking a checkbox within an UltraWinGrid. The checkbox itself is displayed, is on the screen in both cases.

以前有没有人遇到过这个问题,或者知道为什么两台机器的行为不同?

Has anyone had this problem before, or have any idea why the behaviour is different between the two machines?

谢谢.

推荐答案

好的.我发现了问题.事实上,脚本在默默地失败了,因为这是编写脚本的人告诉它要做的.它无法验证屏幕外的内容,因此脚本失败.

OK. I've found the problem. In fact, the script was failing silently because that's what the person who wrote the script told it to do. It couldn't validate something which was off screen, so the script failed.

问题在于屏幕外"的 QTP 定义.我的笔记本电脑上有两个屏幕,笔记本电脑本身的屏幕(1920x1200)和另一个屏幕(1280x1024).我使用远程桌面连接到 QTP 的 VM,它使用笔记本电脑的屏幕设置.这意味着当我启动我的 QTP 脚本并将其移动到另一个屏幕时,它不适合,因此屏幕不再最大化,并且对象部分离开屏幕,因此无法找到.

The problem was the QTP definition of 'off screen'. I have two screens attached to my laptop, the screen for the laptop itself (1920x1200) and another screen (1280x1024). I connect to the VM for QTP using remote desktop, and it uses the settings of the screen for the laptop. This means that when I launch my QTP script, and move it to the other screen, it doesn't fit, so the screen is no longer maximized, and the object is partially off screen, so can't be found.

解决方法很简单:在远程桌面中,使用显示"选项卡,将屏幕尺寸设置为 1280x1024,QTP 就没有更多问题了.

The fix is simple: in the Remote Desktop, use the Display tab, and set the size of the screen to a size to 1280x1024, and QTP doesn't have any more problems.

瞧.

这篇关于Mercury Quick Test Pro 和虚拟机:可在一台客户端机器上工作,但不能在另一台机器上工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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