i82186
i82186

Reputation: 41

Running QTP on a remote computer

I have the following line of code in my Local computer. It opens word file.

    Dim qtApp
    Set qtApp =CreateObject("QuickTest.Application",")
    SystemUtil.Run "WINWORD"

Now I used the following line of code on my local computer so that the code runs on my remote computer.

 Dim qtApp
 Set qtApp =CreateObject("QuickTest.Application","remote computer ip address")
 SystemUtil.Run "WINWORD"

Now when I hit run button from UFT in my local computer I am presented with the following error:

ActiveX component can't create object: 'QuickTest.Application'.
Line (2): "Set qtApp =CreateObject("QuickTest.Application","172.16.136.103")"

What have I done wrong? I have followed this tutorial : http://www.qtpsudhakar.com/2009/07/executing-qtp-scripts-on-remote.html

Note : QTP is added and installed on local and remote computers. The license type is seat license. I am using 30 day trial full version of HP Unified Functional Testing 12.52 build 6851.

Upvotes: 2

Views: 997

Answers (1)

vins
vins

Reputation: 15390

Does the below statement work fine if you try to directly execute in the remote machine?

Dim qtApp
Set qtApp =CreateObject("QuickTest.Application")

If it does not work, you might have to re-install QTP/UFT in the machine.

Also you might have to give permission in the DCOM settings.

Running QTP Scripts on a Remote Machine (Windows 7)


Using VBScript to launch QTP in the remote machine is old school approach.

Start using jenkins if possible.

http://www.testautomationguru.com/executing-qtpuft-scripts-using-jenkins/

Upvotes: 1

Related Questions