Version 8.0.1 |
The 'Install CustomWebResolver'
node offers the following functionality:
| |||||||
Figure 50.1: Reduction of complexity for "CarConfigurator Web" demo |
id
or name
to identify a component and saves them in the 'Name' attribute of the
'Component' node. You can configure 'Install CustomWebResolver'
to use a different HTML attribute as id.
You can use the following HTML features to identify a GUI object:
class
attribute,
The mapping of the HTML attributes can be subject to certain conditions. QF-Test offers the following options to set conditions for single mappings. It is possible to combine them.
A functional component often may consist of nested layers of elements. Some of the layers may have attributes useful for component recognition, others not. For recording and replay it does not matter which layer you map. The main thing is to has attributes for component recognition. QF-Test will also check nested components for further attributes and save them with the mapped QF-Test component. Example: 'CustomWebResolver' – TabPanel and Accordion
In addition you get functional components such as combo boxes, lists, tables and trees which have to be implemented in HTML via several objects, named 'complex components' in QF-Test, i.e. a list, where you need to tell QF-Test which HTML object will be the list container and which HTML objects will be the list items.
The following sections provide a list of mandatory and optional HTML elements which need to be mapped for a complex component to be recognized as such, each containing a comprehensive example.
In most cases the HTML attribute class
is
significant for component recognition and provides information about
the functional type of the component, sometimes it is other attributes.
There are also some frameworks where you can only access this information
through special JavaScript methods.
For adapting QF-Test to those frameworks you need to implement
other resolvers in addition to a CustomWebResolver
.
In this chapter, the focus is on the first two.
For adapting QF-Test to more complicated cases,
please get in touch with our support team.
Last update: 9/10/2024 Copyright © 1999-2024 Quality First Software GmbH |