A data-driven framework is the collection of test scripts that run with related multiple datasets. This framework provides reusable scripts for different sets of data and it improves the test coverage. Input and result (test criteria) data values can be stored in one or more central data sources or databases; the actual format and organization can be implementation specific.
To understand the data-driven framework implementation we should know three terms:
Variable
Parameter
Iteration
A variable is a storage location and an associated with an identifier, which contains some known or unknown quantity or information, a value.
A parameter is a variable that is provided as an input to the scripts. Parameterization in QTP can be achieved by the datatable
object. The datatable
object represents the QuickTest design-time data table and its associated sheets and parameters. The datatable
object has various methods and properties to access data from the runtime...