Creating Data-Driven Tests

To create a data-driven test:

  1. In the menu, click Tests > Details View .
  2. Create a new test. For more information, see Creating Tests.
  3. Click the Properties tab of the newly created test.
  4. In the Data-driven Properties section, click Edit. The Data-driven Properties dialog box appears.
  5. Select a preconfigured data source from the Data Source list. For detailed information on configuring data sources, see Data Sources for Data-Driven Tests.
    Note: Your data source may contain up to 100 rows. If it contains more than 100 rows, you need to enter a query on the Data-driven Properties dialog box that returns 100 rows at most. This prevents generating more than 100 tests out of one data source.
  6. Click Next to continue.
  7. Select a data set from the Data Set list. In the case of Excel data sources, this is a worksheet name. In the case of database data sources, this is a table name.
  8. Check the Each data row is a single test check box to have each row in your data set considered to be a separate test (non-atomic test), or do not check this check box to create a single test for all data rows of your data set (atomic test). For detailed information, see Atomic and Non-Atomic Data-Driven Tests.
  9. Optional: Enter a SQL query in the Filter query field to filter your data set based on an SQL-syntax query.
    Only simple WHERE clause queries are supported. For example, to filter data to only include data rows that contain Boston in the City column, enter the following Filter query:
    City = 'Boston'
  10. Check the Enable data-driven properties check box to enable data-driven functionality. The configured data source is only used for this test if this setting is enabled.
  11. Click Finish to save your settings.
    Note: Data-driven property settings are visible in the Data-driven Properties section of each test’s Properties page.
    Note: To use the data-driven test functionality of Silk Central with Silk Performer scripts, data sources with column names matching the corresponding Silk Performer project attributes must be used in conjunction with AttributeGet methods.