I tried to write code from begining. I can not launch the window application. Please let me know why ,how to fix it?
Below is my code:
Set qtApp = CreateObject("QuickTest.Application")
Set Window_Desc = Description.Create
By the way, if I want to insert an external action from different application and run it together with the current application, how do I do it? How do I tell QPT to launch another application after the 1st current action done?
Here try this:
Set qtApp = CreateObject("QuickTest.Application") ' Create the Application object
qtApp.Launch ' Start QuickTest
qtApp.Visible = True ' Make the QuickTest application visible
Set qtStdLauncher = qtApp.Test.Settings.Launchers.Item("Windows Applications")
qtStdLauncher.Active = True
' Set the applications under test
qtStdLauncher.Applications.Add "C:\Program Files\Ameranth\Poker Room Manager\Bin\Site Manager.exe", "C:\" ' Add an application
Works for Notepad so I can't see why it shouldn't work for your app.
If I am not mistaking you wish to open an application after executing certain action of QTP.
Try SystemUtil.Run method...it will surely launch your application and you may proceed with your QTP script.
<font size="2" face="Verdana, Arial, Helvetica">This one would never work becuase qtpOptions does not have anything called Launch. You should first decide which object you want to use and then see how can you retrieve that object from the QTP AOM and not blindly use it after something.