Powerful Data Driven Testing

Data-driven testing with TestComplete means using a single test to verify many different test cases by driving the test with input and expected values from an external data source instead of using the same hard-coded values each time the test runs. This way, you can test how the application handles various input without having a lot of similar tests that only have different data sets.

TestComplete provides you with all of data driven testing's advantages:

Create Re-Usable Automated Tests

Instead of having identical automated tests that consist of the same operations but differ in input and expected values, you can use data-driven testing to separate test logic from test data by replacing hard-coded values in your automated tests with variables. This way, you can create re-usable automated tests that can run repeatedly with different data sets supplied by an external data source.

Data-Driven Testing with Various Data Sources

TestComplete supports Excel spreadsheets, CSV files and databases such as Microsoft SQL Server, Oracle, MySQL, Microsoft Access, Interbase and more. You can also implement data retrieval from custom sources, such as XML or INI files.

Parameterize Data-Driven Tests Easily

The built-in data-driver wizard scans your automated test for fixed values in operations and checkpoints and lets you quickly parameterize some or all of them using values from the selected data source.

Quickly Generate Test Data

TestComplete’s integrated data generator helps you quickly create large volumes of random yet realistic test data. Using the data generator, you can create hundreds or thousands of rows of test data in just a couple of minutes.

TestComplete provides 19 predefined data types, such as names, addresses, email addresses and more. You can also generate data based on custom value lists and combine standard generation rules to produce sophisticated output. The generated data can be stored directly in test variables, or saved to Excel files that can be used by multiple tests.

Store All Values in One Place

With the data-driven testing approach, all input data and expected results for your automated tests are kept in one place, which makes it easier to maintain test cases. To change a test case, you just need to change the appropriate values in the data source file; there’s no need to modify the automated test itself.

Data-Driven Testing Increases Test Coverage

By driving your automated tests with different data sets that cover various aspects of your application’s features, you can increase your automated test coverage.

Get started with Data-Driven Testing and try TestComplete for free.