Parameterizing Tests Using External Data Sources

Applies to TestComplete 12.60, last modified on September 17, 2018

TestComplete provides you with the ability to use test data that is stored in external files. Because of this, you can perform the same test operations with different sets of data without modifying the test command. You simply define the constant value as a parameter so that in each test iteration it takes a value from an external data source that support sequential access to a set of data, for instance, files or database tables. For more information, see Organizing Data Storages.

TestComplete allows you to use any data storage you need: comma-separated value (CSV) files, Excel sheets, database tables, script arrays, table variables and so on. It includes special keyword test operation, scripting functions and objects that simplify parameterizing input values for tests and iterating through storages. For example, TestComplete provides a special Data-Driven Loop operation that lets you access database tables, Excel sheets and files holding comma-separated values (CSV file) and iterate through their data in keyword tests. To access these files in scripts, TestComplete provides a special DDTDriver program object. To read data from text and binary files, you can use the aqTextFile and aqBinaryFile objects. For more information on working with external data, see Reading Data From External Files.

See Also

Parameterizing Tests
Parameterizing Keyword Tests
Parameterizing Script Routines

Highlight search results