2. Creating a Data Storage

Applies to TestComplete 14.30, last modified on November 21, 2019

To create data-driven tests, you need to define the data to be used in these tests. Excel sheets, database tables, text files and arrays can be used as data sources. We will use an Excel 2007 sheet as a data storage in this tutorial. The sheet contains the following data:

View Test Data

Each string 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 - Basic Concepts

Highlight search results