Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Highlighted
Absent Member.. vzamoraz Absent Member..
Absent Member..
484 views

QTP/UFT support tip: How to run a UFT test remotely with AOM

When you use AOM to open UFT and run a test by default the Application object in your automation script, it is created on your local computer (using your local copy of UFT). You can also run automation scripts on a remote UFT computer.

 

To do so, you must:

1 -Set DCOM Configuration Properties on the Remote Computer

2 -Create the UFT Application Object using g AOM on the Remote Computer

 

Let’s check each step on detail

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, you must ensure that the DCOM configuration properties for that computer give you the proper permissions to launch and configure the UFT COM server.

 

How to configure it

 

a On the computer where you want to run the automation script, 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 your 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 your 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 you want to allow or deny permission to launch UFT via an automation script. When you are finished, click OK to save your

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.

For more information refers to this Kb article and the DCOM configuration

http://support.openview.hp.com/selfsolve/document/KM187086

 

 

 

2 Create an application Object on the Remote Computer

After you set the necessary DCOM Configuration settings for a remote computer, you can specify that computer in your automation script.

In VBScript, you 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, you could write:

 

Dim qtApp

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

 

After that you can use the AOM methods to call the test, configure UFT settings, run the test, among others.

 

 

You can check this information on the HP Unified Functional Testing User Guide from page 1895 to 1897

Labels (1)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.