background image
<< Recording a Test Frame | Test Frame - Preparing to record window declarations >>
Test Frame - Why window declarations make your tests robust
<< Recording a Test Frame | Test Frame - Preparing to record window declarations >>
76
User's Guide
4 R
ECORDING
A
T
EST
F
RAME
Why window declarations make your tests robust
Why window declarations make your tests robust
Window declarations are extremely powerful features, for two reasons.
Declarations specify
logical names
A window declaration specifies a cross-platform, logical name for a GUI
object, called the identifier, and maps the identifier to the object's actual
name, called the tag. Because your testcases use logical names, if the object's
actual name changes on the current GUI, on another GUI, or in a localized
version of the application, you need only change the tag in the window
declarations; you don't need to change any of your scripts.
Declarations can
encapsulate data and
functions
You can add variables, functions, methods, and properties to the basic
window declarations recorded by SilkTest. For example, you can add
variables to a dialog box declaration that specify what the tab sequence is,
what the initial values are, and so on. You access the values of variables at
runtime as you would a field in a record.
Preparing to record window declarations
If you plan to test Web applications, make sure you enable the correct
browser extension(s) on your target and host machine. For more information,
see Chapter 3, "Enabling Extensions for Applications Under Test" and
Testing Web Applications with SilkTest.
If you do not plan to test Web applications, you must disable all browser
extensions on the host machine.
Enabling browser extensions
Enabling browser
support on a target
machine
By default, SilkTest enables all the browser extensions on your target
machine during the installation procedure. To change the default settings or
verify your current settings, you must invoke a utility called the Extension
Enabler, as described in the following procedure.
Note If you are running local tests--that is, your target and host are
the same machine--you must still ensure that browser extensions are
enabled appropriately by running the Extension Enabler on the host
machine.
Procedure To enable support for browsers on a target machine:
1
From the Silk program group, click Extension Enabler.