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
Can abody explain me Send keys concept
What is fragmentation and paging?
How can we redirect QTP results in to a excel sheet after the execution
How do u write a regular expression for date (dd/mm/yyyy) field?
How to carry out bit map check points in QTP
To which environments does a QTP support?
Once the Actions are splitted , is there any way to merge them
What are the different types of recording modes in qtp? Which will be used when?
How to connect to the Database from QTP?
10 Answers DB, Thatavarti Technologies, Xchanging,
if there r 10 windows open in QTP write a command to close all 10 windows at a time ?
How do we call Library Files(.vbs) in the Test Script Thanks in Advance...
How can i test an application like Google Earth.In my application data will be fetched from a oracle database based upon which graphs are generated..so these all are dynamic..how can i use qtp here..alongwith that how can i test the map generated by a satellite just like google earth..