Keyword-driven Testing
Commonly used in Software Testing, Quality Assurance
Keyword-driven testing is a software testing methodology that uses predefined keywords to represent specific actions or operations to be performed on the application under test. This approach simplifies the creation and execution of test cases by abstracting complex code into easily understandable commands, making test automation accessible to users without extensive programming skills.
How It Works
In keyword-driven testing, test cases are created using a set of keywords that correspond to particular actions, such as clicking a button, entering text, or verifying a result. These keywords are stored in a central repository, often in tabular formats like spreadsheets or dedicated test management tools. During test execution, the testing framework interprets these keywords and maps them to underlying scripts or functions that perform the actual operations on the application. This separation between test data and test logic enables non-programmers to design and modify tests by simply updating the keywords or their parameters.
The process typically involves two layers: the high-level test cases written with keywords, and the low-level scripts that execute the actions associated with each keyword. When a test is run, the framework reads the keywords, retrieves the corresponding scripts, and executes them sequentially, providing detailed reports on the outcomes of each step.
Common Use Cases
- Automating regression tests for web or mobile applications using keyword libraries.
- Enabling testers with limited programming skills to create and maintain test scripts.
- Standardising test procedures across different teams by using shared keyword repositories.
- Facilitating data-driven testing where test data variations are combined with keyword actions.
- Integrating with test management tools to streamline test planning and execution workflows.
Why It Matters
Keyword-driven testing is important for organisations aiming to improve test automation efficiency while involving a broader range of team members in the testing process. It reduces the dependency on highly skilled programmers for test script development, enabling quicker updates and maintenance of test cases. For certification candidates and IT professionals, understanding this methodology enhances their ability to implement scalable and maintainable automation solutions, especially in environments with diverse testing skills and complex application landscapes. Mastery of keyword-driven testing can also support roles such as QA analysts, automation engineers, and test managers in delivering more reliable and repeatable testing outcomes.