Before the introduction of the SmartID in QF-Test Version 6.0, generic components were the pattern of choice for avoiding recording components. With SmartIDs, this goal can be achieved easier and more flexibly. Still, the concept of generic components is described here for backwards compatibility.
A typical use case is the testing of localized applications.
Another situation could be the use of a GUI framework during development. This generates, for example, a lot of similar dialogs which differ by only a few components. But you must re-record them for each dialog, for example global navigation buttons, because they are located inside a new window each time.
With generic components, you use variables in the component properties or simply delete non-dynamic parts of them.
The following is a general approach for generalizing components:
Note Generic components are very useful for replay of tests, but QF-Test does not use them for recording. It always records concrete components and you need to manually replace these with generic components afterwards.
|Last update: 9/29/2023|
Copyright © 1999-2023 Quality First Software GmbH