Version 8.0.1 |
The concept of keyword-driven testing allows business analysts and testers to describe test cases without any deep QF-Test knowledge. Those test cases can either be described in a meta-language or directly in a testmanagement system. QF-Test will then read and execute those test cases. The implementation of the underlying test steps inside QF-Test needs to be done by engineers having QF-Test knowledge.
Business testers and QF-Test engineers are free in defining the way how to describe test steps. They can define a wide range of keywords like simple action-related keywords (e.g. click a button) or more complex business-related keywords (e.g. create an object inside the SUT). Combining test steps into a test case could be achieved by a strict table-oriented approach like clickButton=OK or formulating the test steps in continuous text like "Close the dialog via click on ok".
The following examples illustrate the most popular variants of defining test cases in a keyword-driven manner. The demo test case will create a vehicle in the CarConfigurator demo application of QF-Test.
Option 1: Business-related test steps (see subsection 30.2.1). You find a sample at
qftest-8.0.1/demo/keywords/simple_business
.
| ||||||||||
Table 30.1: Test case using business-related keywords |
Option 2: Atomic test steps (see subsection 30.2.2). You find a sample at
qftest-8.0.1/demo/keywords/simple_atomic
.
| ||||||||||||
Table 30.2: Test case using atomic keywords |
Option 3: Behavior-Driven Testing (BDT) from a technical perspective (see subsection 30.4.1).
You find a sample at
qftest-8.0.1/demo/keywords/behaviordriven
.
| |||||||||||||
Table 30.3: Test case with Behavior-Driven Testing from a technical perspective |
Option 4: Behavior-Driven Testing (BDT) with business keywords (see subsection 30.4.2).
You find a sample at
qftest-8.0.1/demo/keywords/behaviordriven_business
.
| |||||||
Table 30.4: Test case with Behavior-Driven Testing from a business perspective |
In the subsequent sections you will find a more detailed description of those variants of keyword-driven testing with QF-Test. The concept of Behavior-driven testing (BDT) is described in section 30.4. From a perspective of QF-Test BDT is just a special variation of keyword-driven testing.
All samples use the CarConfigurator of QF-Test which is also provided by the installation.
You can find all samples in the folder qftest-8.0.1/demo/keywords/
.
In order to show the test planning aspects we provide Excel files containing the required test steps. Of course you can
also go ahead and use your testmanagement tool to plan test steps. We are using Excel files as Excel is a very common piece
of software and reading Excel file is quite simple in QF-Test.
The section keywords with dynamic components (see section 30.3) describes how to use QF-Test just as test-executor without really recording steps within QF-Test. You need to interact with QF-Test only in rare cases when applying this scenario.
Please take care to copy all test suites to a project-related folder first and modify them there.
Last update: 9/10/2024 Copyright © 1999-2024 Quality First Software GmbH |
1. Functional cookies
We use functional cookies to ensure the basic functionality of the website.
2. Performance and statistic cookies
We use Matomo for analyzing and optimizing our website. Cookies permit an anonymous collection of information that help us offering you a clear and user-friendly visit of our web pages.
This cookie contains a unique, pseudonymized visitor ID internal to Matomo for recognizing returning visitors.
This cookie is used to track from which website the anonymized user proceeded to our website.
The Matomo session cookie is used to track the visitor's page requests during the session.
is created and should be then directly deleted (used to check whether the visitor’s browser supports cookies).
short lived cookies used to temporarily store data for the visit.
short lived cookies used to temporarily store data for the visit.