← Back to libraryQuestion 288 of 468
🏗️Framework DesignIntermediate

Types of Automation Frameworks

📌 Definition:

Common framework types are: Linear (record-and-playback), Modular (functions per module), Data-Driven (external data drives tests), Keyword-Driven (actions defined as keywords), Hybrid (combination), and BDD (Gherkin-based). Modern frameworks are usually Hybrid.

📖 Detailed Explanation:

Linear/record-playback is quick but unmaintainable (no reuse). Modular breaks the app into reusable function modules. Data-Driven externalizes test data (Excel/CSV/JSON/DB) so one test runs many data sets. Keyword-Driven abstracts actions into keywords (Login, Click) defined in tables, letting non-coders build tests. BDD (Cucumber) expresses behavior in Gherkin. HYBRID combines the best — typically POM + data-driven + BDD + reporting — which is what most real frameworks are. Interviewers ask you to compare these and justify choosing a hybrid POM+data-driven design for maintainability and coverage.

🔑 Key Points:
  • Linear, Modular, Data-Driven, Keyword-Driven, Hybrid, BDD
  • Data-driven externalizes data; keyword-driven abstracts actions
  • Linear/record-playback = quick but unmaintainable
  • Modern frameworks are usually HYBRID (POM + data-driven + BDD)
🌍 Real-World Example:

A team's chosen design is Hybrid: POM for structure, data-driven via JSON for coverage, TestNG for orchestration, and Extent for reporting — combining strengths rather than a single pure type.

🎯 Scenario-Based Interview Question:

Which framework type would you choose for a large, long-lived UI suite and why?