Data-Driven Workflow

You can use the Data Driven Workflow to create data-driven test cases that use data stored in databases. The Data Driven Workflow generates much of the necessary code and guides you through the process of creating a data-driven test case.

Before you can create and run data-driven test cases, you need to perform the following actions:
  1. Record a standard test case.
  2. Set up or identify the existing data source with the information you want to use to run the test.
  3. Configure your Data Source Name (DSN), if you are not using the default, which is Silk DDA Excel.
Note: When you use the Data Driven Workflow, Silk Test Classic uses a well-defined record format. To run data-driven test cases that were not created through the Data Driven Workflow, you need to convert your recordings to the new record format. To run data-driven test cases that do not follow the record format, run the tests outside of the Data Driven Workflow.

To enable or disable the Data Driven Workflow, click Workflows > Data Driven.

Data Driven Workflow toolbar

To create and execute a data-driven test case, sequentially click each icon in the workflow bar to perform the corresponding procedure.

Action Description
Data Drive Testcase Select a test case to data drive. Silk Test Classic copies the selected test case and creates a new data-driven test case by adding a "DD_" prefix to the original name of the test case. Silk Test Classic also writes other data-driven information to the new or existing data driven script file (.g.t file).
Find/Replace Values Find and replace values in the new test case with links to the data source.
Run Testcase Run the data-driven test case, optionally selecting the rows and tables in the data source that you want to use.
Explore Results View test results.