Data-drive your ALM tests

Drive data through your test by adding ALM input parameters to any UFT Developer test that is run from ALM. Then you can set up test sets that run your UFT Developer tests in a variety of configurations, each running multiple iterations.

Prerequisites for data driving tests

Back to top

Set up data-driving steps in UFT Developer

In UFT Developer:

  1. Open your test project, or create a new one as described in Create a UFT Developer testing project or module.
  2. Configure your test script to retrieve ALM data.

Back to top

Set up ALM for data driving

  1. Define the parameters in ALM. You can do this in any of the following ways:

    UFT Developer Test Export tool

    Export the test methods to an XML file and then import them into ALM. The defined parameters in each test method are imported into ALM together with the test methods. For details, see Import UFT Developer tests into ALM

    Define the parameters in ALM manually

    In ALM, in the signature of each LEANFT-TEST test, in the Parameters tab, define the set of input parameters to use. The parameters must be defined exactly as they are defined in your UFT Developer test methods. For details, see Manually create LEANFT-TEST tests in ALM.

  2. Create test configurations and map parameters in ALM

    1. In ALM, select your UFT Developer test.

    2. In the Test Configuration tab, create static or dynamic configurations, and customize each configuration as needed.

      Static data configuration allows supplying fixed data directly from the data grid within the test configuration.

      Dynamic data configuration allows supplying the dynamic data from an external Microsoft Excel file by uploading it as a test resource into ALM and associating it with the test configuration.

      • For each dynamic configuration, you can optionally override the default data source defined for the test and/or customize the rows to use from the table.

      • Filtering by value is not supported for UFT Developer tests. Any filter settings are ignored.

      Tip: Alternatively, create a static configuration which enables you to provide fixed data for a run with a single iteration.

      For more details about setting up static and dynamic data configurations in your test configuration, see the ALM Help Center.

Back to top

See also: