Micro Focus QTP (UFT) Forums

Full Version: executing qtp on a remote machine
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi..
i have a remoter system where qtp is not installed

I need to open my AUT in remote system and execute there using the QTP in my local system.Can somebody help me out for this...

Thanks
Suja
No. AUT And QTP should be on the same machine.

On a lighter vein, If you want to dine with the plate in your hand with the food being shown on the TV then the above would be possible Smile
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")
Oh..that script is to trigger QTP execution from your local machine on a remote machine. But for that you should have QTP installed on the remote machine, else the script will fail.
oh..thank u....i made it out wrongly...