Version 8.0.1 |
Describing a test case from a technical perspective using Behavior-Driven Testing (BDT) uses
more or less elementary actions for designing a test case.
You can find a sample test suite at qftest-8.0.1/demo/keywords/behaviordriven/
BehaviorDrivenTesting.qft
.
The respective test-plan can be found at qftest-8.0.1/demo/keywords/behaviordriven/
createvehicle.xlsx
.
Please take care to copy the demo folder to a project-related folder first and modify them there.
The "Create vehicle" test case looks like this if it's described in the BDT manner from a technical view:
BDT requires to use the terms Given
, When
, And
and Then
at the beginning of any sentence.
You will find more information about this approach in the testing literature.
QF-Test requires matching procedures for above test steps, so we need to build respective procedures again.
It's an established method to divide the BDT-keywords in separate packages.
The provided test suite therefore contains the packages Given
, When_And
and Then
.
Figure 30.6: Test suite Behavior-driven testing technical |
The provided sample test suite contains all procedures in the respective packages, e.g. a procedure vehicles dialog opened
inside the package
Given
. In order to prevent annoying typos a Server-script read test steps and fix typos
formats any steps to lower case and tries
to replace multiple blanks by one. This script is called directly before the procedure call of $(teststep)
.
In order to run the test case on multiple test data the sample was extended.
Of course you can apply the concept of generic component recognition as described in the previous section (see section 30.3). To that end you would need to specify a very exact description or implement a script filtering the target components from the test step itself.
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.