48.2
Generating the component QF-Test ID

QF-Test uses the following algorithm designed for the best possible assignability of GUI objects when creating QF-Test IDs:

  1. The Name attribute of a Component has a value: The value is used for the QF-Test ID.
  2. No Name, but a Feature is available: This value is used for the QF-Test ID and prefixed with the value of the Class name in lowercase letters.
  3. No Name or Feature is available, but an Extra features named qfs:label is: This value is used for the QF-Test ID and prefixed with the value of the Class name in lowercase letters.
  4. Neither name nor description is available: The class name in lowercase letters is used.

If the QF-Test ID derived this way is not unique, a running number is attached.

Finally a prefix can be added to the QF-Test ID. This depends on the following options:

You can find these settings in the options menu in section »Recording«-»Components«. Open the options menu via »Edit«-»Options«

Find examples in How to judge robust component recognition.

Note Since the QF-Test ID attribute only serves to link the test nodes to recorded components, it can be nice to change it afterwards for better readability. If you choose a value that is already in use, QF-Test will output a warning. If you have already recorded events referring to this component, QF-Test will offer to automatically adjust their QF-Test component ID attribute. This automatic feature does not work for references including variables in the QF-Test component ID attribute.