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

51.1 Accordion

51.2 BusyPane

51.3 Button

51.4 Calendar

51.5 CheckBox

51.6 Closer

51.7 ColorPicker

51.8 ComboBox

51.9 Divider

51.10 Expander

51.11 FileChooser

51.12 Graphics

51.13 Icon

51.14 Indicator

51.15 Item

51.16 Label

51.17 Link

51.18 List

51.19 LoadingComponent

51.20 Maximizer

51.21 Menu

51.22 MenuItem

51.23 Minimizer

51.24 ModalOverlay

51.25 Panel

51.26 Popup

51.27 ProgressBar

51.28 RadioButton

51.29 Restore

51.30 ScrollBar

51.31 Separator

51.32 Sizer

51.33 Slider

51.34 Spacer

51.35 Spinner

51.36 SplitPanel

51.37 Table

51.38 TableCell

51.39 TableFooter

51.40 TableHeader

51.41 TableHeaderCell

51.42 TableRow

51.43 TabPanel

51.44 Text

51.45 TextArea

51.46 TextField

51.47 Thumb

51.48 ToggleButton

51.49 ToolBar

51.50 ToolBarItem

51.51 ToolTip

51.52 Tree

51.53 TreeNode

51.54 TreeTable

51.55 Window