Control the number of test data rows used

When test data is generated by functions and not hard-coded, it is available at any quantity. When you load test data from CSV files, you choose whether you want to use all rows or a subset. The data size determines the number of test runs. To save time, or while debugging, you maybe prefer to run fewer row of test data (fewer iteration).

Single data source

  1. Open a GUI Functional or Performance Test with CSV files attached.
  2. Click Test Data, then click Iterations (for GUI Functional Tests) or Data Settings (for Performance Tests), respectively.
  3. Under Test Data Settings > Run Options > Defined Number of Rows, enter how many rows, for example, 1.

Multiple data sources

A test can have multiple CSV files attached that contain different numbers of rows of test data. In this case, you determine the number of rows from all applicable files that are used, skipped, or looped, respectively.

To control how many rows of test data are used:

  1. Open a GUI Functional or Performance Test with CSV files attached.
  2. Click Test Data, then click Iterations (for GUI Functional Tests) or Data Settings (for Performance Tests) respectively.
  3. In the Test Data Settings window, choose one of these Run Options:
    • Defined Number of Rows
      Specify a number between 1 and 1000000. The test runs with test data from this number of rows, from all files. Extra rows from longer files are skipped, rows from shorter files are used repeatedly.
    • All Rows From This CSV
      Select an attached CSV file or Find&Reserve model. The test runs with test data from all rows of this file or model. Extra rows from other files or models are skipped, rows from shorter files or models are used repeatedly.

    • All Rows From Longest CSV, Loop Others
      The test runs with test data from all rows of the longest attached file or model. Rows from shorter files or models are used repeatedly.

    • All Rows From Shortest CSV, Do Not Loop
      The test runs with test data from all rows of the shortest file or model. Additional rows from longer files or models are skipped.

  4. Click Save.

Examples for iterations with two data sources

File A File B Option selected Outcome Iterations
5 rows 100 rows Run 1 row
(default)
Use the first row from file A.
Use the first row from file B.
1
10 rows 100 rows Run 5 rows Use the first 5 rows from file A.
Use the first 5 rows from file B.
5
5 rows 100 rows Run 10 rows Loop twice over the 5 rows from file A.
Use the first 10 rows from file B.
10
5 rows 100 rows Run all rows from file B Loop 20 times over the 5 rows from file A.
Use all 100 rows from file B.
100
20 rows 100 rows Run all rows from longest file, loop others Loop 5 times over the 20 rows from file A.
Use all 100 rows from file B.
100
20 rows 100 rows Run all rows from shortest file, don't loop Use 20 rows from file A.
Use the first 20 rows from file B.
20