汞快速测试Pro和虚拟机:从一个客户机的工作原理,但不是另一个 [英] Mercury Quick Test Pro and Virtual machines: Works from one client machine but not another

查看:128
本文介绍了汞快速测试Pro和虚拟机:从一个客户机的工作原理,但不是另一个的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个虚拟机(VMware的)安装了汞快速测试专业版9.2。我有一个脚本中使用的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经典主题。

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经典主题。

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定义。我有连接到我的笔记本电脑,屏幕的笔记本电脑本身(1920×1200),另一个屏幕(1280×1024)两个屏幕。我连接到虚拟机的QTP使用远程桌面,并使用屏幕设置的笔记本电脑。这意味着,当我启动我的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.

瞧。

这篇关于汞快速测试Pro和虚拟机:从一个客户机的工作原理,但不是另一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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