16.2
Selected Packages and Procedures

We will now have a closer look at a number of selected packages and procedures from the standard library.

We will start with packages for accessing components dependent on the UI technology they are implemented for, here Web.

16.2.1
The Checkbox Package

We begin by looking at the qfs.web.checkbox package.

Some important procedures within this package are:

For each of these procedures, you pass the QF-Test ID of a checkbox component as a variable argument. The library handles verification of whether or not the checkbox state was properly set as expected.

Usage of the other procedures in this package follows the general model seen here.

16.2.2
The Select Package

The package qfs.web.select contains procedures to select a value in a combobox.

Some procedures within this package are:

16.2.3
The General Package

The package qfs.web.general contains useful procedures to work with components.

Some procedures within this package are:

16.2.4
The Table Package

The package qfs.web.table provides utility procedures for tables, like:

16.2.5
The Run log Package

The qfs.run-log package contains procedures, which writes specified messages into the run log. This package has been introduced to give testers without scripting-knowledge the opportunity to write messages into the run log.

Here is the list of the most important procedures within this package:

16.2.6
The Run log.Screenshots Package

The qfs.run-log.screenshots package contains procedures, which write images into the run log and some helper methods.

Some important procedures within this package are:

16.2.7
The Shellutils Package

The qfs.shellutils package contains procedures to support most common shell-commands.

Some important procedures within this package are:

16.2.8
The Utils Package

The qfs.utils package contains procedures, which covers common helper-functionality during test-development.

Some important procedures within this package are:

16.2.9
The Database Package

The qfs.database package contains procedures to execute SQL commands on a database.

Please note that the database driver must be in the class path, i.e. the respective jar file in the qftest plugin directory, before launching QF-Test.

To get more information about the connection-mechanism to your database, please ask your developers or see www.connectionstrings.com.

Some important procedures within this package are:

16.2.10
The Check Package

The qfs.check package contains procedures to do checks.

Some important procedures within this package are:

16.2.11
The Databinder Package

The qfs.databinder package contains procedures for execution within a "Data driver" node which bind data for iteration.

Some important procedures within this package are: