background image
<< View objects on the OnLine Catalog page | The DOM extension Multi-tagging >>

Dynamic instantiation

<< View objects on the OnLine Catalog page | The DOM extension Multi-tagging >>
Getting Started: A Tutorial
35
2 P
REPARING
TO
U
SE
THIS
T
UTORIAL
Becoming Familiar with the Web Application Under Test
Dynamic instantiation
Typically, before you begin recording your scripts you record a test frame
that contains declarations of each of the Web pages within the application
that you want to test. But if you have not declared the pages in the Web
application, SilkTest dynamically instantiates the objects when you record
them. This means that SilkTest automatically creates a unique name based on
the object's class and tag. For more information about classes and tag see
"Basic object-oriented concepts" on page 8
.
If we were not using the gmow.inc test frame to view the GMO application.
the DOM extension would have dynamically instantiated the objects as
displayed in the following image.
Note If you would like to try this yourself, you must remove the
gmow.inc file from the SilkTest Options/Runtime Use Files.
Browser.BrowserChild("Welcome to
Green Mountain
Outpost").HtmlImage("Logo|#1|$htt
p:??demo.borland.com?images?gmo-
animate.gif")
Browser.BrowserChild.("Welcome to
Green Mountain
Outpost").HtmlHeading("GMO
OnLine")
Browser.BrowserChild.("Welcome
to Green Mountain
Outpost").HtmlText("Welcome to
Green Mountain Outpost's OnLine
Catalog!")
Browser.BrowserChild."Welcome to
Green Mountain
Outpost").HtmlLink("Please let us
know how you like our
site|#1|$mailto:gmo-
master@borland.com")