I'm evaluating QTP for use as a test automation tool together with HP/Mercury QC. I'm recording a script with our software (C++) but somehow it does not detect our context menu's. Context menu's are basically just "Window" which popup on right-click. (On which the menu items are drawn)
When I right-click, it registers the right click. The context-menu popup and nothing is recorded anymore by QTP, until the moment I select a menu option and a new Dialog pops up. It detects that dialog and continues recording.
- I already tried low-level recording but that doesn't seem to fix it.
- Analog recording does work correctly, but I'd rather not use that.
I also noticed that the context-menu button on the keyboard is not record (I figured I might just call and navigate through the context menu using keystrokes). Any setting I can tweak?
It's a bit tricky to work with context menus. You would need to use Mercury.DeviceReplay object and fire a right click on window and then may be some way to handle the context menu, not sure how but you will have to try it out.
Run test tool on screen 2 and the app on screen 1. Which head of a multi-head PC is used makes all the difference as to whether playback will work properly. Even though recording will work OK with an app on the second screen, playback will inevitably fail because coordinates on the second screen are different than what gets recorded.
You can see this by going to your display properties in Windows, select the settings tab and click and hover over each of the monitors listed. What you should see are some coordinate locations that define the displays and what you will see is that they are not the same.