4.0+61
Generic classes

QF-Test abstract recorded class from the framework specific classes in order to get classes of common use. Those classes are called generic classes. This concept provides a better readability and clearer understanding of components. Furthermore already created tests can be re-used once the target technology is switched or if you want to maintain tests in various technologies in parallel.

Beside those generic classes QF-Test records generic types as well. Those types give a more detailed specification of the target component. A typical use case are password fields. Those fields have the generic class TextField, but they have that specific characteristic to enter passwords, so they get an additional generic type TextField:PasswordField. Using those types makes the recognition of generic classes for certain categories stricter and more appropriate.

A great advantage of these generic classes, especially when testing web applications is that a user can freely assign these generic classes to components. Later on these mappings may get reduced onto other generic classes. An example how this can be done may be found in the manual chapter CustomWebResolver – Tables.

Using generic classes has the following advantages:

The following sections list which information is saved in particular.

Accordion

BusyPane

Button

Calendar

CheckBox

Closer

ColorPicker

ComboBox

Divider

Expander

FileChooser

Graphics

Icon

Indicator

Item

Label

Link

List

LoadingComponent

Maximizer

Menu

MenuItem

Minimizer

ModalOverlay

Panel

Popup

ProgressBar

RadioButton

Restore

ScrollBar

Separator

Sizer

Slider

Spacer

Spinner

SplitPanel

Table

TableCell

TableFooter

TableHeader

TableHeaderCell

TableRow

TabPanel

Text

TextArea

TextField

Thumb

ToggleButton

ToolBar

ToolBarItem

ToolTip

Tree

TreeNode

TreeTable

Window