I used the below code to open QTP through VBscript?But i can
unable to Invoke QTP...PLZ help me with the correct code to
invoke QTP through VBS with description of the code aswell.

Dim qtApp 'As QuickTest.Application
'Declare the Application object variable
Dim qtTest 'As QuickTest.Test
'Declare a Test object variable
Dim qtResultsOpt 'Declare a Run Results Options object
variable
Set qtApp = CreateObject("QuickTest.Application")
'Create the Application object
qtApp.Launch 'Start QuickTest
qtApp.Visible = False 'Make the QuickTest application
visible
qtApp.Open "C:\form", True
'Open the test in read-only mode
'set run settings for the test
Set qtTest = qtApp.Test
qtTest.Run 'Run the test
'WScript.StdOut.Write "Status is: " &
qtTest.LastRunResults.Status
'Check the results of the test run
qtTest.Close 'Close the test
qtApp.quit 'Close QuickTest Pro
Set qtResultsOpt = Nothing 'Release the Run Results Options
object
Set qtTest = Nothing 'Release the Test object
Set qtApp = Nothing 'Release the Application object



No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More QTP Interview Questions

Can we do Load Testing with QTP?

4 Answers  


How do you create regression test packs?

0 Answers  


How do we call Library Files(.vbs) in the Test Script Thanks in Advance...

6 Answers  


How Qtp will identifies object during run time

6 Answers   CSS Corp, Yahoo,


Is there any thing that we can replace recovery scenario manager in QTP.

3 Answers  






How to load an object to a object repository at RUN TIME ?

3 Answers  


hi i have one doubt is there any companies are taking correspandence courses plz leme know urjent

2 Answers  


How can we see the analog recording steps in QTP..the Steps are stored in a track file with an extension .dat..how can we open the file..

1 Answers  


what is object spy

5 Answers   TCS,


How can we disable popup blocker?

1 Answers  


What is object repository in qtp?

0 Answers  


Can we select add ins in UFT during run time

1 Answers   NIIT,


Categories