background image
<< Dynamic instantiation | Setting Up to Test Client/Server Applications >>

The DOM extension Multi-tagging

<< Dynamic instantiation | Setting Up to Test Client/Server Applications >>
36
Getting Started: A Tutorial
2 P
REPARING
TO
U
SE
THIS
T
UTORIAL
Becoming Familiar with the Web Application Under Test
The DOM extension uses the following syntax when tagging dynamically
instantiated objects:
Syntax:
Browser.BrowserChild.class("tag")
Example:
Browser.BrowserChild.HtmlHeading("GMO OnLine")
In this declaration:
·
Browser
refers to your Web browser
·
Browser Child
refers to any Web page that you have not declared
·
HtmlHeading
is the class of the object
·
GMO OnLine
is the caption
For more information about dynamic instantiation or syntax and structure,
see the online Help.
Multi-tagging
The DOM extension also provides additional information for dynamically
instantiated tags, when available, through multi-tagging. For example:
Syntax:
Browser.BrowserChild.class("caption|index|window
identifier")
Example:
Browser.BrowserChild.HtmlLink
("
Please let us know
how you like our site.|#1|$mailto:gmo-master@borland.com
")
In this declaration:
·
Browser
refers to your Web browser
·
Browser Child
refers to any Web page that you have not declared.
·
HtmlLink
is the class of the object
·
Please let us know how you like our site.
is the caption.
·
#1
is the index, signifying that this is the first HtmlLink on the page.
·
$mailto:gmo-master@borland.com
is the window identifier.
By multi-tagging, or generating any of the five types of tags: caption, prior
text, index, window identifier and location for each object, the DOM
extension provides a higher rate of object recognition. Since the DOM
extension identifies an object by the tags, if one of the tags does not match,
but the others do, your testcase will still succeed. For example, if you are
testing a Web application with dynamically changing content the caption may
change but the index would remain the same, enabling your test to succeed.
For more information about multi-tagging, see the online Help.
You have completed the preparation required to test the GMO Web
application. Proceed to
Chapter 3, "Planning a Testing Strategy" on page 53
.