Data-drive your ALM tests

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

Prerequisites for data driving tests

Back to top

Set up data-driving steps in LeanFT

In LeanFT:

  1. Open your test project, or create a new one as described in Create a LeanFT testing project.
  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:

    LeanFT Test Export tool

    Export the test methods to an XML file and then import them into ALM. The defined parameters in each test method will be imported into ALM together with the test methods. For details, see Import LeanFT 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 LeanFT 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 LeanFT 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 LeanFT tests. Any filter settings will be 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: