62 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.

62.1 Accordion

62.2 BusyPane

62.3 Button

62.4 Calendar

62.5 CheckBox

62.6 Closer

62.7 ColorPicker

62.8 ComboBox

62.9 Divider

62.10 Expander

62.11 FileChooser

62.12 Graphics

62.13 Icon

62.14 Indicator

62.15 Item

62.16 Label

62.17 Link

62.18 List

62.19 LoadingComponent

62.20 Maximizer

62.21 Menu

62.22 MenuItem

62.23 Minimizer

62.24 ModalOverlay

62.25 Panel

62.26 Popup

62.27 ProgressBar

62.28 RadioButton

62.29 Restore

62.30 ScrollBar

62.31 Separator

62.32 Sizer

62.33 Slider

62.34 Spacer

62.35 Spinner

62.36 SplitPanel

62.37 Table

62.38 TableCell

62.39 TableFooter

62.40 TableHeader

62.41 TableHeaderCell

62.42 TableRow

62.43 TabPanel

62.44 Text

62.45 TextArea

62.46 TextField

62.47 Thumb

62.48 ToggleButton

62.49 ToolBar

62.50 ToolBarItem

62.51 ToolTip

62.52 Tree

62.53 TreeNode

62.54 TreeTable

62.55 Window