08-07-2013, 06:03 PM
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
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