Keyword-driven testing: building a check from action words
Design a small set of action words, layer them over low-level steps, hand them values, and know what breaks when one changes.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a menu and a kitchen. A diner orders pasta with tomato sauce. The diner does not say boil the water, chop the tomato and heat the pan. The menu names the dish. The kitchen knows the steps.
Daily List is a to-do list app. Tom has written automated checks for it. They are full of tiny button presses. Mei asks him to write them the way a diner orders, in plain action words.
So Tom writes a short menu: log in as Lily, add task Buy milk, task count is 1. Each phrase is a keyword, one named action. The code behind each keyword is the kitchen. It presses the buttons.
A is a menu item in the user's words, such as add task. A is the whole menu with its kitchen. A value such as Buy milk, handed to a keyword, is a keyword argument.
If the oven changes, the menu stays the same. The picture has limits. A restaurant keeps one menu for years. A keyword library needs a person who looks after it.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PLAIN WORDS · 2 in this section
- pan
- a wide cooking dish used on a stove
- keyword
- a key word used to search or match
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Writing as a list of action words in the user's language, with the screen details kept in one low layer.
- List what the user does
- Name each action
- Mark action or check
- List the values it needs
- Build the low-level steps
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| A menu item | A business keyword |
| The kitchen steps | Low-level keywords that touch the screen |
| No onions, please | A keyword argument |
| A new oven | A changed screen, fixed in one place |
| The whole menu and kitchen | The keyword library |
WHERE THIS PICTURE STOPS
- A restaurant keeps one menu for years. A keyword library keeps changing and needs an owner.
- A diner cannot change the kitchen. A tester can add a keyword that is badly named.
- A menu item is cooked once per order. A keyword may be called by hundreds of checks.
HOOK
Order in the user's words. The kitchen presses the buttons.
REMEMBER IT THIS WAY
A sequence: the real steps, in order.
Say it in order: user action, verb and noun, action or check, values, then the low layer last. The screen comes last, never first.
| In the trick | What it stands for |
|---|---|
| User action | What the user does, in the user's words |
| Verb and noun | The keyword name, such as add task |
| Action or check | Does it do something or compare something |
| Low layer last | The screen steps hidden behind the keyword |
TELL A FRIEND
Write checks as plain action words, and keep every screen detail in a low layer so one fix repairs many checks.
OFTEN MIXED UP WITH Automation frameworks overview. That lesson says what keyword-driven and data-driven styles are. This one shows how to build a keyword set and keep it healthy.
PRACTISE AND KEEP
Sources for this topic — 9 sources
- Market practice
Certified Tester Advanced Level Test Analyst (CTAL-TA) Syllabus v4.0 ↗ — US member board of the International Software Testing Qualifications Board · Learning objective TA-1.3.6: use keyword-driven testing to develop test scripts (K3). The objective line was seen in a search excerpt; the section text was not read (search excerpt, page not opened)
Text read in full from a mirror copy of the publisher PDF (ISTQB syllabus CTAL-TA v4.0 GA, 2 May 2025), version checked against the document's own front matter. The page at this URL was not opened. Licence terms were not read, so put it in your own words and do not quote it.
- Market practice
Certified Tester Advanced Level Test Analyst (CTAL-TA) Syllabus v4.0 ↗ — US member board of the International Software Testing Qualifications Board · Keyword design points seen in a search summary of the syllabus: keywords are action or verification keywords, sit in domain and interface layers, and are named with a verb plus a noun, reusable and unique (search excerpt, page not opened)
Text read in full from a mirror copy of the publisher PDF (ISTQB syllabus CTAL-TA v4.0 GA, 2 May 2025), version checked against the document's own front matter. The page at this URL was not opened. Licence terms were not read, so put it in your own words and do not quote it.
- Market practice
ISTQB Certified Tester Advanced Level Agile Technical Tester Syllabus v1.1 (PDF) ↗ — International Software Testing Qualifications Board (ISTQB) · Test Automation chapter: apply data-driven and keyword-driven techniques to build automated test scripts (K3); keywords come from use cases or the business domain; an existing framework or tool that supports keyword-driven testing saves effort; costs are set-up effort, a framework to run the lists and careful keyword management (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Test styles (Robot Framework Certified Practitioner syllabus) ↗ — Robot Framework Foundation · Keyword-driven style is imperative, behaviour-driven style is declarative, data-driven style can be combined with the other two (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal
What this simplifies: Daily List, its checks and the people are invented. The Python run uses a toy app and a tiny keyword runner written for this lesson. Real tools find buttons on a real page and keep keywords in files.
Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.
- Market practice
Keyword-driven testing standard 29119-5:2024, catalogue entry (International Organization for Standardization) ↗ — International Organization for Standardization · Part 5 keyword-driven testing, edition 2, December 2024: an introduction and reference approach, levels of hierarchical keywords, keyword types such as navigation and checking a value, when flat keywords fit, a starter list of generic low-level keywords, and requirements for frameworks and tools (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). The standard text is sold, so put any detail in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Keyword-driven testing standard 29119-5:2024, national listing and abstract (Finnish Standards Association) ↗ — Finnish Standards Association SFS · Abstract: requirements for frameworks that let testers share test cases, test data, keywords or test specifications; requirements for automation, design and management tools; interfaces and a common data exchange format for tools from different vendors (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). The standard text is sold, so put any detail in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Keyword-driven testing standard 29119-5:2024, contents preview (ANSI webstore) ↗ — American National Standards Institute · Contents preview shows clause 7 keyword-driven testing frameworks, with 7.2 components of a framework and 7.2.2 keyword-driven editor (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). The standard text is sold, so put any detail in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Certified Tester Advanced Level Test Analyst (CTAL-TA) Syllabus v4.0 ↗ — US member board of the International Software Testing Qualifications Board · Mirror copy of the publisher PDF (ISTQB syllabus CTAL-TA v4.0 GA, 2 May 2025), read in full text: TA-1.3.6 (K3) use keyword-driven testing to develop test scripts | section 1.3.6 (TA-1.3.6, K3): keywords are action or verification keywords and sit on at least two abstraction layers, the domain layer and the test interface layer
Text read in full from a mirror copy of the publisher PDF (ISTQB syllabus CTAL-TA v4.0 GA, 2 May 2025), version checked against the document's own front matter. The page at this URL was not opened. Licence terms were not read, so put it in your own words and do not quote it.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.