Micro Focus QTP (UFT) Forums
executing qtp on a remote machine - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: executing qtp on a remote machine (/Thread-executing-qtp-on-a-remote-machine)



executing qtp on a remote machine - sujaravi123 - 08-02-2013

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


RE: executing qtp on a remote machine - basanth27 - 08-02-2013

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


RE: executing qtp on a remote machine - sujaravi123 - 08-02-2013

but I have seen many forum discussing about qtp execution on a remote machine say eg:
http://www.qtpsudhakar.com/2009/07/executing-qtp-scripts-on-remote.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")


RE: executing qtp on a remote machine - basanth27 - 08-02-2013

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.


RE: executing qtp on a remote machine - sujaravi123 - 08-02-2013

oh..thank u....i made it out wrongly...