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

65.1 Accordion

65.2 BusyPane

65.3 Button

65.4 Calendar

65.5 CheckBox

65.6 Closer

65.7 ColorPicker

65.8 ComboBox

65.9 Divider

65.10 Expander

65.11 FileChooser

65.12 Graphics

65.13 Icon

65.14 Indicator

65.15 Item

65.16 Label

65.17 Link

65.18 List

65.19 LoadingComponent

65.20 Maximizer

65.21 Menu

65.22 MenuItem

65.23 Minimizer

65.24 ModalOverlay

65.25 Panel

65.26 Popup

65.27 ProgressBar

65.28 RadioButton

65.29 Restore

65.30 ScrollBar

65.31 Separator

65.32 Sizer

65.33 Slider

65.34 Spacer

65.35 Spinner

65.36 SplitPanel

65.37 Table

65.38 TableCell

65.39 TableFooter

65.40 TableHeader

65.41 TableHeaderCell

65.42 TableRow

65.43 TabPanel

65.44 Text

65.45 TextArea

65.46 TextField

65.47 Thumb

65.48 ToggleButton

65.49 ToolBar

65.50 ToolBarItem

65.51 ToolTip

65.52 Tree

65.53 TreeNode

65.54 TreeTable

65.55 Window