Search This Blog

Thursday, September 23, 2010

Hierarchy of test description


When using programmatic descriptions from a specific point within a test object hierarchy, you must continue to use programmatic descriptions
From that point onward within the same statement. If you specify a test object by its object repository name after other objects in the hierarchy have
Been described using programmatic descriptions, Quick Test cannot identify the object.

For example, you can use Browser(Desc1).Page(Desc1).Link(desc3), since it uses programmatic descriptions throughout the entire test object hierarchy.
You can also use Browser("Index").Page(Desc1).Link(desc3), since it uses programmatic descriptions from a certain point in the description (starting
from the Page object description).

However, you cannot use Browser(Desc1).Page(Desc1).Link("Example1"), since it uses programmatic descriptions for the Browser and Page objects but
then attempts to use an object repository name for the Link test object (QuickTest tries to locate the Link object based on its name, but cannot
locate it in the repository because the parent objects were specified using programmatic descriptions).