Tutorial

Video Icon

In the near future we will upload videos for every chapter of the tutorial which will lead you step by step through QF-Test.

16
The Standard Library (Web)

QF-Test provides a certain number of node types. If you need additional functionality you can implement it in a script node. To make life easier for you QF-Test comes with a set of procedures implementing the most commonly needed additional functions. You will find them in the standard procedures library.

When you cannot solve a problem using the provided node types it is a good idea to have a look in the standard library whether there is a solution to your problem. If you find a similar solution you can copy the procedure and adapt it to your needs. For information about scripting please refer the the manual, chapter 12 'Scripting'.

The file qfs.qft holds the standard procedures library. As it is constantly being enhanced and distributed with every new version of QF-Test you should not make any changes to procedures in that file, but copy the procedure to your own test-suite if required and then adapt it.

Note To make use of qfs.qft it needs to be included in your test-suite's root node. With a newly created test-suite the file qfs.qft is added automatically to the list of included files.

  • Action Select the 'Test-suite' root node of your test-suite.
  • Verify the qfs.qft is available within the table for "Include files".
  • Add qfs.qft to this list, if it's not already there.

Note A path information is not necessary for the qfs.qftas the include directory of QF-Test is contained in the library path (see also Reference part of the manual).

  • Action Add a procedure call to an arbitrary procedure from the qfs.qft standard library. In the procedure chooser don't miss to switch to the respective tab.

In addition to the description provided in this tutorial you can find the full HTML documentation of the standard library available via »Help«-»Standard Library qfs.qft...«

16.1
Inspecting the Standard Library

In addition to inserting procedure calls from the Standard Library, it also can be helpful to sometimes have a look how certain things organized or implemented.

  • Action Locate and load the test-suite file qfs.qft, which is located in the qftest-4.7.1/include directory of your QF-Test installation.
Figure 16.1:  The Standard Library

You can see there is one main package qfs that contains further specific packages. The qfs package helps to easily identify the packages belong to the standard library.

The specific packages cover very different areas of utility procedures described in more detail further below.

Note Within nearly all of the procedures of this library, you'll notice that the variable $(client) is referenced. This is the standard mechanism for creating independence from a specific SUT. Here, the library assumes that the test-suite which uses the library will set a value for $(client) prior to using any procedures.

16.2
Selected Packages and Procedures