08-02-2013, 11:42 AM
but I have seen many forum discussing about qtp execution on a remote machine say eg:
http://www.qtpsudhakar.com/2009/07/execu...emote.html
I used the following script after configuring the prerequisites for remote execution mentioned in the above link.
but it gives permission denied error on the line
Set qtApp = CreateObject("QuickTest.Application", "remotemachine name")
http://www.qtpsudhakar.com/2009/07/execu...emote.html
I used the following script after configuring the prerequisites for remote execution mentioned in the above link.
Code:
Dim qtApp
Dim qtTest
'Create the QTP Application object
Set qtApp = CreateObject("QuickTest.Application", "remotemachine name")
'If QTP is notopen then open it
If 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 "D:\IBMR Testcases\Control-Demo", True
'set run settings for the test
Set 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 Object
Set qtTest = Nothing
Set qtApp = Nothing
but it gives permission denied error on the line
Set qtApp = CreateObject("QuickTest.Application", "remotemachine name")