Micro Focus QTP (UFT) Forums
AOM 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: AOM in QTP (/Thread-AOM-in-QTP)



AOM in QTP - sowmya R - 07-26-2012

How to run the qtp script through a file?


RE: AOM in QTP - ssvali - 07-27-2012

Try this code

Code:
Dim AppQTP

Set AppQTP = CreateObject("QuickTest.Application")
AppQTP.Launch
AppQTP.Visible = TRUE

Set AppQTP = GetObject("","QuickTest.Application")
AppQTP.Windowstate = "Maximized"

AppQTP.Open "Z:\test1"
AppQTP.Test.Run