Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
executing qtp on a remote machine
#3
Solved: 10 Years, 9 Months ago
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.

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")
Reply


Messages In This Thread
RE: executing qtp on a remote machine - by sujaravi123 - 08-02-2013, 11:42 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need script to connect remote machine stalinvanama 1 1,474 09-27-2018, 08:12 PM
Last Post: stalinvanama
  Is it possible to run the QTP scripts on machine with out QTP is installed? kalyan_srirangam 2 3,330 10-21-2013, 07:19 PM
Last Post: kalyan_srirangam
  running a script on two machine sametime sria123 3 3,714 05-09-2013, 09:53 AM
Last Post: basanth27
  Remote server machine does not exist eroshan 5 13,928 05-06-2013, 06:03 PM
Last Post: Saket
  Remote database conenction ajayr1982 1 2,494 05-21-2012, 12:14 AM
Last Post: ravi.gajul

Forum Jump:


Users browsing this thread: 1 Guest(s)