Version 8.0.1 |
As stated in the previous section business-related procedures represent a real business workflow in your application.
You can find a sample at qftest-8.0.1/demo/keywords/simple_business/
SimpleKeywords.qft
.
The respective test-plan can be found at
qftest-8.0.1/demo/keywords/simple_business/
simple_keywords.xlsx
.
Please take care to copy the demo folder to a project-related folder first and modify them there.
The sample shows the "Create vehicle" test case of the QF-Test CarConfigurator. It consists of following test steps:
Let's take a look at the Excel file now:
Figure 30.1: Excel file business-related keywords |
As QF-Test can read excel files row by row, we have decided to go for that excel structure. Reading that file follows the data-driven concept (see section 41.4). It's also possible to use another structure of the excel file, but then we lose the advantage of using the QF-Test functionality directly without any scripts or if-conditions.
In the first row we find the values teststep
, value1
and value2
.
That row will be interpreted as variable names by QF-Test. Every subsequent row will then contain respective values for those variables.
This mechanism allows QF-Test to walk through that Excel file in order to execute the planned test steps.
Now let's take a look at the test suite SimpleKeywords.qft
.
The test suite looks like this:
Figure 30.2: Test suite business-related keywords |
| |||||||||||||||||||||
Table 30.5: Structure of SimpleKeywords.qft |
All required procedures are implemented in the package business
. In order to allow a simple variable definition any steps in Excel use the variables
value1
and value2
. Every procedure maps those generic names to the specific parameters of the procedure itself.
Figure 30.3: Procedure fillDialog |
This concept requires that any used keyword has to be implemented in QF-Test already before using it. If your steps require more than two parameters you need to extend the excel file with more columns. In addition you need one test case node in QF-Test per test case in Excel. You can make this more flexible, see section 30.5.
Last update: 9/10/2024 Copyright © 1999-2024 Quality First Software GmbH |
1. Cookies fonctionnels
Nous utilisons des cookies fonctionnels pour garantir la fonctionnalité de base du site web.
2. Cookies de performance et de statistique
Nous utilisons Matomo pour analyser et améliorer notre site web. Des cookies permettent une collection anonyme des informations qui nous aident à vous offrir un visite clair et facile à utiliser de nos pages web.
This cookie contains a unique, pseudonymized visitor ID internal to Matomo for recognizing repeat visitors.
This cookie is used to track from which website the anonymized user proceeded to any page or sub-page.
The Matomo session cookie is used to track the visitor's page requests during the session. The cookie is automatically deleted at the end of each session (website visit), at the latest after one day.
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.