Dim qtAppDim qtTest
'Create the QTP Application objectSet qtApp = 
CreateObject("QuickTest.Application") 
'If QTP is notopen then open itIf  qtApp.launched <> True then 

qtApp.Launch 
End If 
'Make the QuickTest application visible
qtApp.Visible = True
'Set QuickTest run options'Instruct QuickTest to perform next step when error 
occurs

qtApp.Options.Run.ImageCaptureForTestResults = "OnError"
qtApp.Options.Run.RunMode = "Fast"
qtApp.Options.Run.ViewResults = False
'Open the test in read-only mode
qtApp.Open "C:\Program Files\HP\QuickTest Professional\Tests\trial", True 
'set run settings for the testSet qtTest = qtApp.Test
'Instruct QuickTest to perform next step when error occurs
qtTest.Settings.Run.OnError = "NextStep" 
'Run the test
qtTest.Run
'Check the results of the test run
MsgBox qtTest.LastRunResults.Status
' Close the test
qtTest.Close 
'Close QTP
qtApp.quit
'Release ObjectSet qtTest = NothingSet qtApp = Nothing 


On Wednesday, April 6, 2016 at 4:30:48 PM UTC+2, Ravikiran wrote:
>
> Hi All,
> i need to record using qtp through AOM script
>
> Thanks for your help in advance
>

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to