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:
Set qtApp = CreateObject("QuickTest.Application", "MyServer")