Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP 11 - Desktop Switching Issue
#1
Issue: Unable to switch to the application which is on a different desktop

QTP version - 11
Application technology - HTML, Java Applets, VC++

When we start the application, it gets started on a different desktop and hence QTP is unable to access the application on a different desktop.

Concept of windowstations and desktop - In a workstation we can have multiple desktops.
Plz refer - http://www.brianbondy.com/blog/id/100/
[/i]


QTP is on my default desktop whereas the application is on a different desktop

Observation -
We have used Extern method to access the Win 32 API (user32.dll) and tried to get a handle on the desktop in which the application is present. But we are unable to activate the new desktop

Our requirement is to tell QTP to switch over to different desktop and start executing the script on that desktop and once execution is completed, come back to the default desktop

Plz note - when we launch the application, it takes up the complete screen (meaning, there will be no status/task bar as in our default desktop. We will be navigating to different screens through button clicks)

Methods used in QTP from user32 dll -
OpenWindowStation
SetProcessWindowStation
OpenDesktop
SwitchDesktop

Please let me know if you need any further information

Thanks for all your help

-SunnyM
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)