2. Creating a Data Storage

Applies to TestComplete 14.71, last modified on April 22, 2021

To create data-driven tests, you need to define the data to be used in these tests. With TestComplete you can use any data source: Excel sheets, database tables, text files, project variables of the table type, and others. In this tutorial we will use an Excel 2007 sheet as a data storage. This sheet contains the following data:

View Test Data

Each row of the table contains the values for one order, whose input will be simulated. We would like you to pay special attention to the fact that the data contains not only input values, but also the verifying values. You can see them in the last three columns of the table. These values will be used as a baseline copy for comparison with calculated values.

The described Excel file is shipped with TestComplete. You can find it in the following folder:

<TestComplete Samples>\Common\Data-Driven Testing\TestBook.xlsx

Note: If you do not have the file, download the TestComplete Samples installation package from the support.smartbear.com/downloads/testcomplete/samples/ page of our website and run it.
In order for TestComplete to be able to read data from this Excel file, you must have Microsoft Office 12.0 Access Database Engine OLE DB Provider installed on your computer. Also, the bitness of this Provider (32- or 64-bit) must match the bitness of TestComplete. For more information on downloading and installing the Provider, see the Requirements section at the beginning of this tutorial.

If you need to create a lot of test data, take advantage of the TestComplete Data Generator Wizard. Using this wizard, you can quickly create Table variables and Excel worksheets containing data of various types. See Preparing Test Data.

Prev     Next

See Also

Tutorial Home Page
Data-Driven Testing

Highlight search results