background image
<< What is Captured in the Test Frame? | Specifying browser size and fonts >>

Test frames for Web applications

<< What is Captured in the Test Frame? | Specifying browser size and fonts >>
Getting Started: A Tutorial
71
4 C
APTURING
Y
OUR
A
PPLICATION
The Test Frame
Test frames for Web applications
When you create a test frame for a Web application the following information
about the application is captured and stored in the declaration for the main
window:
A constant named
wMainWindow
This constant holds the identifier value of your
application's home page, that is, the page that was
displayed in the browser when you created the
test frame. The recovery system uses
wMainWindow to restore the browser to that page
when a test fails.This is known as BaseState.
Typically the BaseState navigates to the first page
of the application.
A window of class
BrowserChild
This window has the same identifier as the value
of wMainWindow; this is the window that
SilkTest loads in order to restore the application
to BaseState.
sLocation
The URL for the homepage; used by the recovery
system to load the page.
sUserName and
dPassword
Two commented constants that specify the user
name and password to access the application (if
required).
BrowserSize and
bDefaultFont
Two commented constants that specify the size of
the browser window and the default font to use
for displaying text.
Objects Declarations
Declarations of all objects on the page, such as
HtmlHeadings, HtmlText, HtmlLinks, HtmlText,
HtmlPushButtons and so on.