Data Driven Testing | Test Automation Features | Rapise
<

Data Driven Testing

Data-driven testing is the creation of test scripts to run together with their related data sets in a framework. The framework provides re-usable test logic to reduce maintenance and improve test coverage. Input and result (test criteria) data values can be stored in one or more central data sources. Rapise provides strong support for DDT with the ability to load in sets of test data from an Excel spreadsheet or relational database.

Data-Driven Testing with Rapise

Data Driven Testing is an automated testing technique in which test case data is separated from test case logic. Each set of test case data consists of input values and a set of expected output values. The actual output values are compared to the expected output values to determine whether the test passed.


Data-Driven Testing using Excel

The built-in Spreadsheet object lets you implement data-driven tests with a Microsoft Excel spreadhseet. It allows you to connect to, query, and read an excel spreadsheet from your test script.


This lets you create a generic test script that can be called with specific sets of data to run the same set of tests with different test data. The output from the test can then be compared with the expected result included in the spreadsheet.

Data-Driven Testing using a Database

Rapise comes with the Database query global object that allows you to send SQL queries to a relational database (ODBC, OLEDB, etc.) and then iterate through the results as part of your test script:


This lets you create a generic test script that can be called with specific sets of data to run the same set of tests with different test data. The output from the test can then be compared with the expected result included in the database.