background image
<< Specify a new File name | Record Window Declarations dialog >>

Recording window declarations

<< Specify a new File name | Record Window Declarations dialog >>
78
Getting Started: A Tutorial
4 C
APTURING
Y
OUR
A
PPLICATION
The Window Declaration
7
Change the default Window Name
In the 4Test Identifier text box at the bottom of the New Test Frame
dialog, type GMO to provide a shorter identifier that is easy to use.
8
Close the dialog
Click OK. The new test frame appears.
9
Open the declaration
(Web): Click the plus icon [+] next to the line window BrowserChild
GMO
.
(client/server): Click the plus icon [+] next to the line window MainWin
GMO
.
10 Save the declaration
Click File/Save. The new test frame is added to your project.
The Window Declaration
The second stage of creating a test frame is recording window declarations
for the other windows/pages/dialogs in your application and adding those
declarations to the test frame.
Note You don't need to have all the declarations in one file. You can
put them into different files, and make them available to scripts
using the 4Test use statement. For more information about use
statements, see the online Help.
Recording
window
declarations
1
In SilkTest, open the test frame
(Web): If webtut.inc is not already open, click File/Open and select the
test frame webtut.inc.
(client/server): If cstut.inc is not already open, click File/Open and
select the test frame cstut.inc.
2
Open another window of the AUT
(Web): If GMO is not open, start Internet Explorer and navigate to the
homepage of the GMO application,
http://demo.borland.com/gmopost/
.
Maximize the browser if necessary. On the GMO OnLine home page,
click Enter GMO OnLine. The OnLine Catalog page opens.