Test Automation Engineer study guide

Data-Driven Testing (DDT)

Data-Driven Testing (DDT) is an automation framework design where test scripts are completely decoupled from test data. A single generic script is executed multiple times, reading varying input combinations and expected results from an external data source (e.g., CSV, Excel, or SQL database).

Practical example

Instead of writing 10 separate login scripts for 10 different user roles, a DDT framework uses one Login_Test() script wrapped in a loop. It pulls rows from a spreadsheet containing [Username, Password, Expected_Result]. This drastically reduces code maintenance. If a new user role is added, the QA team updates the spreadsheet without touching a single line of automation code.

Exam scenario and common trap

Scenario: You implement DDT, but when the UI for the login page changes, you still have to update your scripts. The Trap: "DDT guarantees zero maintenance when the UI changes." The Correct Answer: DDT isolates data changes, not interface changes. If the underlying UI locators change, the Test Adaptation Layer must still be updated.

Related syllabus sections cover this topic. Reference sections: 3.1.4. See the official ISTQB syllabus for exam scope. Examples are independent; QA-ace is not affiliated with ISTQB.