Relevant for: GUI tests and API testing
Most of the steps in this task must be performed on ALM. In UFT, you can link your test parameters to AUT parameters defined in ALM.
Connect to an ALM project with Lab Management support.
Make sure that ALM Lab Service is installed on the UFT computer.
For details, see the ALM Lab Management Guide.
Create your tests in UFT or ALM, and save them in ALM.
In ALM, in the Testing > Test Lab module, create a functional type test set and specify the required information.
Select the Execution Grid tab and click Select Tests.
In the Test Plan tree, select the tests you want to add to the test set.
In ALM, in the Lab Resources > AUT Environments module, define AUT environments with parameters and set values for the parameters. For details, see the Application Lifecycle Management User Guide.
In UFT, open the Properties pane to the test parameters tab by doing one of the following:
Click Add > Add Input Parameter. In the parameters grid, give the parameter and description.
For details on the Add Input Parameter dialog box that opens, see Edit Input/Output Parameter Dialog Box (Properties Pane - GUI Testing) for GUI tests, or Edit Input/Output Property/Parameter Dialog Box (API Testing) for API tests.
In the parameters grid, select the parameter and click the Edit Parameter button .
In the Edit Input Parameter dialog box, click the Select ALM application parameters button .
In the Select AUT Parameter dialog box, expand the AUT Environment node and select a parameter. Click OK.
For details, see Select AUT Parameter Dialog Box.
In the Add Input Parameter dialog box, provide a name for the parameter and set the default value, if necessary. Click OK.
In the Properties pane, an ALM icon next to a parameter's default value indicates that it is an AUT parameter.
In ALM, in the Lab Resources > Testing Hosts module, you can view the hosts defined in the Lab Management project for all projects on your ALM server. Optionally, you can define additional host machines for your project.
When you define a new host, define its purpose, for example, QuickTest or Service Test, to indicate the type of test to run on this host. For details, see the Application Lifecycle Management User Guide.
Make sure that UFT is installed on the host computers you create or define in ALM.
If UFT is not available in the list of purposes that you can select for a host, select QuickTest Professional for GUI tests or Service Test for API tests. Select both if you plan to run both types of tests.
For each UFT host on which you want to run GUI tests, enable the Allow other Micro Focus products to run tests and components option in UFT.
In ALM, in the Testing > Timeslots module, schedule times for the tests to run automatically, or reserve timeslots to use later to run the tests manually.
If you are running the tests ad-hoc, you can skip this step.
In ALM's Testing > Test Lab, specify the hosts on which you want to run the tests, and run the tests.
You can also optionally automatically upload your run results to ALM if you are running a test from ALM. This option is set in ALM as a site parameter for your project.
For details, see the Application Lifecycle Management Administrator Guide.
If you do not configure the Remote Agent as an exception as described in Enable the Remote Agent, a Windows Security Alert message will display while running a test remotely.
Click Unblock to solve this problem.