Keyword Driven Testing in Software Testing (original) (raw)

Last Updated : 18 May, 2026

Keyword Driven Testing is a functional automation testing approach where test cases are designed using keywords that represent specific actions. Each keyword is mapped to a function or method, allowing testers to create structured and reusable automation scripts without focusing on underlying code.

Example of Keyword Driven Framework

It uses external files and components to store keywords, test data, and reusable functions for automation.

**Example scenario of Keyword Driven Testing in a login application:

Example of  Keyword Driven Testing example

Example of Keyword Driven Testing

Login to “GeeksforGeeks” website – The keyword “Sign in” is used in automation to perform the login action and test the login functionality or related features.

Need for Keyword Driven Testing

It is widely used in automation because it improves efficiency and reduces duplication in testing.

Phases of Keyword Driven Testing

Keyword Driven Testing is divided into two main phases: Design & Development and Implementation, which together define the complete framework structure and execution flow.

1. Design and Development Phase

In this phase, the complete framework structure is designed by identifying keywords and mapping them to specific actions or functions before execution begins.

2. Implementation Phase

In this phase, the actual execution of test cases takes place using the prepared keywords, test data, and driver scripts.

Advantages of Keyword Driven Testing

Keyword Driven Testing provides several benefits that make automation easier, more flexible, and scalable for testers and teams.

Limitations of Keyword Driven Testing

Keyword Driven Testing has some limitations that can affect development time and flexibility in automation projects.

Hybrid Automation Framework

In real-world automation projects, Keyword Driven Testing is often combined with other frameworks such as Data-Driven and Page Object Model (POM) to form a Hybrid Framework. This improves flexibility, scalability, and maintainability of test automation.