Run Automation Scripts on a Remote Computer

How to run automation scripts on a remote Unified Functional Testing (UFT) computer. By default, when creating an Application object in the automation script, it is created on the local computer.

1. Set DCOM Configuration Properties on the Remote Computer

UFT automation enables UFT to act as a COM automation server. Therefore, to run a UFT automation script on a remote computer, it must be ensured that the DCOM configuration properties for that computer give the proper permissions to launch and configure the UFT COM server.

The procedure below describes the steps needful to perform on the remote computer to enable automation script to run on that computer. Note that the DCOM Configuration Property the appearance and names of the dialog boxes and options mentioned here may vary depending on the computer’s operating system.

To enable automation scripts to access a Unified Functional Testing computer remotely:

a. On the computer where the automation script will run, select Start > Run. The Run dialog box opens.

b. Enter dcomcnfg and click OK. The Distributed COM Configuration Properties dialog box or the Component Services window opens (depending on operating system) and displays the list of COM applications available on the computer.

c. Select QuickTest Professional Automation from the DCOM Config list and open the Properties dialog box for the application. (Click the Properties button or right-click and select Properties, depending on the operating system.)

d. In the QuickTest Professional Automation Properties dialog box, click the Security tab.

e. In the launch permissions section, select the custom option and click Edit.

f. Use the Add and Remove options to select the network users or groups for which it will be allowed or denied permission to launch UFT via an automation script. When finished, click OK to save the settings.

g. Repeat steps e and f for the configuration permissions section to select the users or groups who can modify UFT configuration options via an automation script.

h. In the QuickTest Professional Automation Properties dialog box, click the Identity tab and select the interactive user option.

i. Click OK to save the QuickTest Professional Automation Properties settings.

j. Click OK to close the Distributed COM Configuration Properties dialog box or the Component Services window.

2. Create an Application Object on the Remote Computer

After setting the necessary DCOM Configuration settings for a remote computer, it can be specified that computer in the application creation script line in the automation script, for example, using the optional location argument in the VBScript CreateObject function.

In VBScript, do this by specifying the computer name as the optional location argument of the CreateObject function. The computer name should be the same as the computer name portion of a share name. For example, to run an automation script on a computer called MyServer, it could written:

Dim qtApp

Set qtApp = CreateObject("QuickTest.Application", "MyServer")

4 thoughts on “Run Automation Scripts on a Remote Computer”

  1. Is there a way using which we can run test scripts on a remote computer where UFT(or any other tool) is not already installed in the remote machine.

  2. Is Service Test(API Test ) scripts can be run remotely from ALM?
    As above you have mentioned steps for running QTP scripts on remote machine.

  3. Hi all,
    Currently when try script from ALM not working, displayed a message:

    The QuickTest Remote Agent is either not installed on the host you specified, or a version earlier than 10.00 is installed. To run this test, QuickTest Professional 10.00 must be installed on the host computer.

    Thanks .

  4. This article just made my day. I was stuck with UFT opening as session ID 0 in CI.CD pipeline. After following this article i was able to run UFT as interactive session and my tests are running now. voila! Thank you.


Leave a Comment