I am studying section 18.2 of the QFtest manual (for version
1.04.3) to clarify the scope of the required component name uniqueness.
Speaking of the standard recognition algorithm, at the end
of paragraph 4, it says “Components that aren't visible are not
considered.” What kind of visibility is meant? Which of the following
interpretations is correct?
Uniqueness requires that
all simultaneously (to the human eye) visible components
in the same window on screen have different names
in the same window, all components whose isVisible()
method returns true have different names
Say I have a tabbed pane with tabs A and B. On tab A there
is a button with name “save” and on B there is a button with name “save”.
Since tab A and tab B will not be simultaneously visible to the human eye, according
to interpretation 1), uniqueness is achieved even though the two buttons have
the same name. But according to interpretation 2), uniqueness is not achieved,
because isVisible() is true for both buttons.
In the same section 18.2, speaking of the recognition
algorithm used when “name overrides everything” is turned ON, the
last paragraph ends with a sentence: “The prerequisite for using this
method is that you can guarantee that if a name is set on a component, it is
going to be unique among the simultaneously visible components of the same
class in one window.” This is the formulation that lead me to think of
interpretation 1) above.
Is there any difference in the significance of visibility between
on one hand, using the standard recognition algorithm, and on the other hand,
having “name overrides everything” turned on?
Med venlig hilsen / Regards
Systems Engineer, MSc C.S.
Søren Frichs Vej 39, DK-8000 Aarhus C
Tel.: +45 8943 2184 (direct)
Fax: +45 8943 2020