Introduction
Keyword-driven testing, also known as table-driven testing or action-word testing, is a software testing methodology for automated testing that separates the test creation process into two distinct stages: a Planning Stage, and an Implementation Stage.
Overview
Although keyword testing can be used for manual testing, it is a technique particularly well suited to automated testing.
The advantages for automated tests are the reusability and therefore ease of maintenance of tests that have been created at a high level of abstraction.
Methodology
The keyword-driven testing methodology divides test creation into two stages:-
Planning Stage
Examples of keywords
Textfield(username) | Enter text |
Textfield (domain) | Enter text | |
Textfield (username) | Enter text | |
Textfield (password) | Enter text | |
Button (login) | Click | One left click |
Implementation Stage
The implementation stage differs depending on the tool or framework used. Often, automation engineers implement a framework that provides keywords like “check” and “enter” [1]. Testers or test designers (who don’t have to know how to program) write test cases based on the keywords defined in the planning stage that have been implemented by the engineers. The test is executed using a driver that reads the keywords and executes the corresponding code.
Other methodologies use an all-in-one implementation stage. Instead of separating the tasks of test design and test engineering, the test design is the test automation. Keywords, such as “edit” or “check” are created using tools in which the necessary code has already been written. This removes the necessity for extra engineers in the test process, because the implementation for the keywords is already a part of the tool. Tools such as GUIdancer and Worksoft Certify use this approach.
Pros
Cons
More To Read
Published: None; Tags: Automatic Testing; Type: Book page; Source: Wikipedia; Childs: None;
More Important Articles on this subject:
Theme by Danetsoft and Danang Probo Sayekti