Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercury Quick Test Pro and Virtual machines: Works from one client machine but not another

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.

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.

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.

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

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?

Thanks.

like image 391
Matthew Farwell Avatar asked Sep 18 '08 10:09

Matthew Farwell


People also ask

How virtual machine communicate with each other?

Private network—allows a virtual machine to communicate only with another virtual machine on the host. Internal network—sets up communication between the host system and the virtual machines on it. External network—connects virtual machines and the host physical network.

How do virtual machines work?

Virtual machines are made possible through virtualization technology. Virtualization uses software to simulate virtual hardware that allows multiple VMs to run on a single machine. The physical machine is known as the host while the VMs running on it are called guests.

What is a virtual machine used for?

Virtual machines (VMs) allow a business to run an operating system that behaves like a completely separate computer in an app window on a desktop.


1 Answers

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.

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.

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.

Voilà.

like image 106
Matthew Farwell Avatar answered Nov 15 '22 07:11

Matthew Farwell