Run Automation Scripts on a Remote 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:

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

3. 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.

4. 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.)

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

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

7. 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.

8. 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.

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

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

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

12. 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 be written:

Dim qtApp

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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s