Chapter 9. Data-driven Testing

In this chapter we will cover the following recipes:

  • Generating random data for tests
  • Accessing a specific cell in a table
  • Reading all data from a table
  • Using DDT tables for storing expected values
  • Changing CSV delimiter and other parameters
  • Driving data without using loops
  • Accessing Excel spreadsheets without having MS Office installed
  • Auto-detecting Excel driver

Introduction

When performing functional testing of any application, it is often required that we use various input parameters to verify that the application produces correct results in all cases.

TestComplete has a specific feature for storing such data, it is called Data-driven Testing (DDT). In case of using DDT approach, data can be stored in different database-like storages (Excel files, CSV files, or databases). To access data in these files, TestComplete provides a special object DDT.

In this chapter we will consider different tasks related to DDT approach. Most of our examples will use Excel for storing data, but these principles can be easily extended to other types of storage.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.157.142