Skip to content
Alphabin

Keyword-Driven Testing

Keyword-Driven Testing is an automation approach in which each test is a sequence of keywords, such as Open Browser, Enter Text or Verify Message, together with the data they need. Each keyword maps to code that performs the action, so people who do not program can design and maintain tests.

Key components of keyword-driven testing include:

  • Keyword Library: A shared set of keywords, each implemented once by automation engineers and reused across many tests.
  • Test Tables: Tests are written in tables or plain-text files that list keywords, their arguments and the expected outcome.
  • Separation of Concerns: Domain experts focus on what to test, while engineers focus on how each action is automated.
  • Maintainability: When the application changes, updating one keyword’s implementation fixes every test that uses it.
  • Tool Support: Frameworks such as Robot Framework are built around this approach.

Keyword-driven testing makes automated tests readable and reusable, though it needs upfront design effort to build a keyword library that is both expressive and easy to maintain.