7.7.0.1 Abstract, concrete and toolkit specific components
Jubula has three levels of components:
- Abstract components
- are general, high-level components from which other components are derived. They are described in terms of what features a component has, e.g. graphics component, component with text. They group actions together which can all be executed on components of this type.
- Concrete components
- are components which are available to all graphical toolkits, but which are restricted to a certain component type, e.g. combo box, list.
- Toolkit specific components
- are the most specific components in Jubula . They are only available for certain toolkits. For example, a HTML link is a component which is only available in Web applications.
We recommend that you specify your tests as abstractly as possible, and as concretely as necessary. If you want to create a Test Case to click a button, it is better to use the abstract component graphics component. The graphics component also contains the click action, and has the advantage that the Test Case can then be used on other components than buttons. If you want to select a cell from a table, however, you will have to use the concrete component table, because this is the highest level which offers this action.
The more abstract your specification, the more flexible your Test Cases are.
Copyright BREDEX GmbH 2011. Made available under the Eclipse Public License v1.0.