Data-drive your ALM tests

Drive data through your test by adding ALM input parameters to any OpenText Functional Testing for Developers test that is run from OpenText Application Quality Management. Then you can set up test sets that run your tests in a variety of configurations, each running multiple iterations.

Prerequisites for data driving tests

Install the 32-bit version of Microsoft Access Database Engine 2016 Redistributable.

Set up data-driving steps

In OpenText Functional Testing for Developers:

  1. Open your test project, or create a new one as described in Create a testing project or module.
  2. Configure your test script to retrieve ALM data. For framework-specific instructions (NUnit, MSTest, TestNG, and JUnit), see Set up data-driving steps (per framework).

Set up OpenText Application Quality Management for data driving

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

    • Use the OpenText Functional Testing for Developers 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 tests into OpenText Application Quality Management

    • Define the parameters manually.

      In OpenText Application Quality Management, 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 test methods. For details, see Manually create LEANFT-TEST tests.

  2. Create test configurations and map parameters

    1. In OpenText Application Quality Management, select your OpenText Functional Testing for Developers 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 OpenText Application Quality Management 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 OpenText Functional Testing for Developers 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 OpenText Application Quality Management Help Center.

See also