Micro Focus QTP (UFT) Forums
How to add windows application in QTP? - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: How to add windows application in QTP? (/Thread-How-to-add-windows-application-in-QTP)



How to add windows application in QTP? - rajkmr89 - 11-17-2011

I have Mercury QTP 9.2. When i start recording the scripts are generated but the system util.run is not generated.When i run the test i get this error:
Cannot find the "All Programs" object's parent "Start menu" (class Window). Verify that parent properties match an object currently displayed in your application.
What to do now?
Help me friends!!!
With Regards,
Raj.


RE: How to add windows application in QTP? - ravi.gajul - 11-17-2011

replace the line containing "start menu" with

systemutil.run "<path of the windows application>"
Example
systemutil.run "C:\Program Files\HP\QuickTest Professional\samples\flight\app\flight4a.exe"

this is used for opening the sample flight windowapplication.

Regards,
Ravi


RE: How to add windows application in QTP? - priya247 - 03-04-2014

Use Vbscript function invokeapplication("set ur windows path")
Eg: invokeapplication("c:\windows\notepad.exe")
Note: This function is use full only for executable files(.exe) paths