You want to record a data driven test. How will you do that?
There are 3 ways to create a data-driven test:
a.) By using data from a data table
b.) By using data from a flat file
c.) By using data from a database
- Using Flat File - Data should be saved in a pre-determined format and is read from file using file manipulation commands and assigned to variables.
- Using Data Table - Similar to flat file method however data is generally stored in a Microsoft Excel file.
- Using Database - Similar to the earlier methods except test data is saved in database.