Академический Документы
Профессиональный Документы
Культура Документы
Trademarks
Data Bank Wizard, e-Manager, e-Reporter, e-Spider, e-TEST, e-Tester,
d-Tracker, ServerStats, TrueLoad, and Visual Scripts, are all trademarks or
service marks and e-Load and e-Monitor, are registered trademarks of
Empirix Inc in the United Stats and other countries. Microsoft is a
registered trademark and Windows, Visual C++, Visual J++, and Visual
Basic are trademarks of Microsoft Corporation. Java is a trademark of
Sun Microsystems. Pentium is a registered trademark of the Intel
Corporation. All other names are used for identification purposes only
and may be trademarks of their respective owners.
Empirix Inc.
Contents
Contents
Preface
About This Guide ........................................................................................xvii
Related Documentation.................................................................................xix
e-TEST Suite Printed Manuals ............................................................xix
Other Printed Manuals .......................................................................... xx
Electronic Documentation...................................................................... xx
Using Help ...................................................................................................xxi
Conventions..................................................................................................xxii
Obtaining Technical Support .....................................................................xxiii
Chapter 1
Introduction
Feature Highlights...........................................................................................1
Automatic Test Generation..............................................................................2
Visual Scripts ....................................................................................................3
e-Test Programming Interface ........................................................................4
e-Spider and Automatic Script Generation......................................................4
The Data Bank Wizard....................................................................................4
Specialized Web Server Testing ......................................................................5
Real Time Visual Test Results Analysis ..........................................................5
System Requirements .......................................................................................6
Contents
iii
Contents
Chapter 2
e-Tester Basics
Installing and Starting e-TEST suite ..............................................................7
Main Window Features...................................................................................8
Overview of the Menu Options................................................................8
Visual Script Pane ...................................................................................19
Browser Pane...........................................................................................21
Test Scriptlet Editing Pane.....................................................................22
Playback Results Pane ............................................................................23
Status Bar ................................................................................................23
Microsoft Visual Basic IDE ...................................................................24
Java Console ............................................................................................25
Browser Specific Visual Scripts......................................................................25
Setting Preferences.........................................................................................26
Configuring e-Tester to Use a Proxy Server .................................................27
Using Workspaces .........................................................................................28
Adding a New Workspace......................................................................29
Opening a Workspace.............................................................................30
Closing a Workspace ..............................................................................30
Deleting a Workspace.............................................................................31
Chapter 3
iv
Contents
Contents
Contents
vi
Contents
Contents
vii
Contents
Using e-Spider
Main Window Features...............................................................................172
File Menu .............................................................................................172
Edit Menu.............................................................................................173
Run Menu.............................................................................................173
Tools Menu...........................................................................................173
Help Menu ...........................................................................................174
Address Line .........................................................................................174
Site Map Tree .......................................................................................174
Status Bar ..............................................................................................175
Setting Maximum Navigation Depth..........................................................175
Working with e-Spider.................................................................................175
Starting e-Spider ...................................................................................175
Pausing and Resuming e-Spider ..........................................................176
Stopping e-Spider..................................................................................176
Appending Pages to the Tree ...............................................................176
Deleting Pages from the Tree...............................................................177
Excluding URLs in e-Spider ...............................................................178
Modifying an Excluded URL .............................................................179
Ignoring a Page in the Tree..................................................................179
Ignoring All But the Current Page in the Tree....................................179
Generating a Visual Script from e-Spider.............................................180
Working with Map Files .............................................................................181
Saving Map Files ..................................................................................181
Creating a New Map File.....................................................................181
Opening an Existing Map File ............................................................181
Exporting the Site Map Tree................................................................182
viii
Contents
Chapter 8
Chapter 9
Contents
ix
Contents
Contents
xi
Contents
Appendix A
Appendix B
Programming Reference
Webanlst.Exe COM Server ........................................................................299
ProgT Class...........................................................................................300
RswEobj Class.......................................................................................301
RSWMint.Exe COM Server......................................................................303
ProgX Class ..........................................................................................303
RswEobj Class.......................................................................................304
RswIProgs Type Library .............................................................................304
IProg Class............................................................................................304
IProgAction Class.................................................................................305
IProgNav Class.....................................................................................306
IProgOM Class ....................................................................................306
IProgPlay Class.....................................................................................307
Playback Results Constants ..................................................................309
Error Constants.....................................................................................310
Status Constants ....................................................................................311
VBADLL Type Library ..............................................................................311
RSWApp Class .....................................................................................312
RSWAppOM Class..............................................................................314
RSWVBAPage Class............................................................................315
RSWVBAScript Class ..........................................................................315
RSWVBATest Class.............................................................................316
VBAGlobalObject Class .......................................................................317
Product Constants.................................................................................317
AfterPlay Event............................................................................................318
AmIWAPScript Method.............................................................................319
Back Method................................................................................................320
BeforeAction Event......................................................................................322
BeforePlay Event..........................................................................................324
Cancel Property............................................................................................325
xii
Contents
xiii
Contents
GoBack Method...........................................................................................403
GotoPage Method........................................................................................404
Halt Method ................................................................................................406
HasCustomTests Method ...........................................................................407
Index Property..............................................................................................408
InsertNav Method .......................................................................................410
IterateScript Method....................................................................................412
IterationCount Method................................................................................413
IterationsBegin Event ..................................................................................414
IterationsEnd Event.....................................................................................415
LastDialogText Method..............................................................................416
LastDialogTitle Method..............................................................................417
Length Property ...........................................................................................418
MatchHtml Method....................................................................................419
MatchPattern Method.................................................................................420
Nav Property ................................................................................................421
Navigate Method .........................................................................................423
Om Property ................................................................................................425
OpenScript Method.....................................................................................427
OpenWorkspace Method ............................................................................428
PageBegin Event..........................................................................................429
PageEnd Event ............................................................................................431
PageUId Property........................................................................................433
PerformTest Event.......................................................................................434
Play Property................................................................................................435
PlaySuspended Event...................................................................................436
Postdata Property .........................................................................................437
Quit Method ................................................................................................438
ReplaceNav Method ....................................................................................439
RSWApp Property.......................................................................................440
SaveScript Method.......................................................................................441
ScriptBegin Event ........................................................................................443
ScriptClose Event.........................................................................................444
ScriptEnd Event...........................................................................................445
ScriptLength Property .................................................................................447
ScriptName Property ...................................................................................448
ScriptOpen Event.........................................................................................449
ScriptRename Event ....................................................................................450
xiv
Contents
Regular Expressions
MetaCharacters ............................................................................................485
I n d e x ........................................................................................................491
Contents
xv
Contents
xvi
Preface
Welcome to the e-Tester User Guide. This guide explains how to use the
features and options of e-Tester for testing Web pages or applications.
This guide is intended for Web test engineers who will be developing
e-Tester Visual Scripts for regression and performance (load and
scalability) testing of a Web site or application. The guide does require an
understanding of software or Web application testing concepts. Test
engineers using e-Tester should be familiar with the concepts of
regression testing, load testing, scalability testing, and operational
monitoring.
The record/playback paradigm of e-Tester does not require any
programming experience to develop Visual Scripts for testing. However,
the advanced programmability features available in e-Tester do require
experience with programming languages such as VBScript and Visual
Basic. The programming sections of this manual assume that you
understand programming concepts in VBScript and Visual Basic.
e-Tester.
Chapter 2 ee-Tester Basics: provides descriptions of the e-Tester main
Visual Scripts, modify default tests, run Resource Validation, and work
with script node properties.
xvii
Preface
Chapter 5 Using Test Cases: explains how use built-in test cases and
how to create your own programmatic tests.
Chapter 6 Working with Test Results: explains how to locate and view
Library, set up unexpected dialog box handling, and how to define user
names and passwords for specific URLs. It also explains how to create and
delete Workspaces, and how to delete Visual Scripts and Results Logs.
Chapter 10 Using the Programming Interface: explains how to extend
DHTML objects, collections, and properties that can be used when creating
Web pages. The lists are provided as a convenient resource when using the
e-Test Programming Interface (e-PI) to create Test Scriptlets, Custom VBA
tests, and External Callout tests for Visual Scripts.
Appendix D Regular Expressions: provides a reference for Regular
Expression syntax.
xviii
Preface
Related Documentation
The e-TEST suite includes a complete set of printed manuals, electronic
manuals, and online help.
Preface
xix
Preface
ServerStats User Guide explains how to use the features and options of
ServerStats to monitor operational performance of a variety of application
servers, Web servers, database servers and systems.
e-Reporter User Guide explains how to use the features and options of
e-Reporter and WebReporter to generate graphs and reports for e-Load,
e-Monitor, and ServerStats performance data.
Electronic Documentation
The e-TEST suite download from our Web site automatically installs an
Adobe Portable Document Format (PDF) version of the Getting Started
with e-TEST suite manual and an e-Spider Tutorial. These documents
require the Adobe Acrobat Reader, version 4.x, to open and view the
.PDF files. You can download the free Acrobat Reader from the Adobe
Web site: http://www.adobe.com/products/acrobat/readstep2.html.
The Getting Started with e-TEST suite PDF file is an option on the
e-TEST suite Start menu. The e-Spider Tutorial PDF file is copied to the
e-TEST suite installation directory (C:\Empirix\eTEST is the default).
The installation also includes a readme.doc file that contains release notes
and the latest updates to the product documentation. The readme.doc file
opens in Microsoft Wordpad when you select the Release Notes option
on the e-TEST suite Start menu. Also included is an e-Monitor v5.0 to
v5.1 conversion documentation (Wm50-51Conv.pdf) file that explains how
to migrate existing 5.0 Shell Scripts to 5.1 jobs and schedules.
The full e-TEST suite documentation set is provided on the product CDROM in Adobe Portable Document Format (PDF). You can use the
xx
Preface
Acrobat Reader, version 4.x, to view, search, and print the documentation
set. The e-TEST suite CD-ROM includes the Acrobat Reader application.
You can install Acrobat Reader using the e-TEST suite CD-ROM setup
program or by selecting ar40eng.exe in the Acrobat Reader directory. See
the Adobe Web site, http://www.adobe.com, for additional information
about Acrobat Reader.
The full documentation set includes the following files:
E e-Test Suite Getting Started.pdf
E e-Tester User Guide.pdf
E e-Tester for WAP User Guide.pdf
E e-Manager User Guide.pdf
E e-Monitor User Guide.pdf
E e-Load User Guide.pdf
All of the .PDF files are in the Documentation directory of the product
CD-ROM. The e-Test Suite Getting Started.pdf, e-Spider Tutorial.pdf,
WM50-51Conv.pdf, and readme.doc files are installed during the e-TEST
suite setup procedure. You can copy the user guide .PDF files to a local
drive or open them in Acrobat Reader from the CD-ROM.
If you downloaded the product from the our Web site and wish to receive
electronic versions of the User Guides in .PDF format, please send an
email message to webtest_support@empirix.com. Youll need the Acrobat
Reader v4 to open and view the documents.
The e-TEST suite CD-ROM also includes the Microsoft Visual Basic
Scripting Edition (VBScript) Language Reference documentation. You
can install the files using the e-TEST suite CD-ROM setup program or by
selecting vbsdoc.exe in the MS VB Script Documentation directory.
Using Help
e-Tester provides a comprehensive on-line help system. The help topics
include step-by-step how to instructions for common tasks and a
complete reference.
You can press the F1 key at any open dialog box for an explanation of the
options. You can select Help Contents to open the on-line help contents
and index.
Preface
xxi
Preface
Conventions
This guide uses the following typographical conventions to identify
specific items:
Convention
Description
Sans Serif
Fixed-Pitch type
Program code.
Icon.
xxii
Icon.
Icon.
Preface
Fax.
Key Requests: To request a software license key, please call (781) 9938500 or send your request via email to keys@empirix.com.
Preface
xxiii
Preface
xxiv
Chapter 1
Introduction
e-Tester is a functional test tool that lets you easily create, maintain, and
execute regression testing scripts for your Web-based applications.
e-Tester features a powerful, intuitive Visual Script, an automated test
case generator, a specialized text matching component and the ability to
execute data-driven tests using the Data Bank Wizard.
The development of the World Wide Web and the popularity of Webbased applications require a new generation of automated test tools.
e-Tester is an integrated framework on which to build automated tests
specifically for this new paradigm in software technology. e-Tester is
designed to deliver an immediate improvement to the quality of your
software by offering repeatable, measurable results that help keep pace
with the application development cycle.
Feature Highlights
e-Tester offers the following advantages for Web-based application
testing:
E Visual Script Technology/Automatic Test Generation you can record
and test your entire application in minutes with reusable, objectoriented Visual Scripts. Recorded Visual Scripts automatically capture
and test Anchors, Elements, Forms, Frames, HTML, Images, Image
Maps, Links, ActiveX controls, Java Applets, VBScript, and
JavaScript. Visual Scripts require no programming.
E Graphical Test Results and Simple Script Updating test failures and
single Visual Script can be used over and over with varying input and
response data using values from an external data source.
E Visual Test Case Insertion additional test cases can be added to Visual
Scripts to verify server response times, form elements, and the presence
or absence of specific text in a page.
certificates.
verifies all referenced Web resources that include links and images.
Visual Scripts
These user-defined test cases can be stored in the Test Case Librarian for
quick and simple re-use across all visual scripts.
e-Tester provides full testing flexibility and extensibility using the e-Test
Programming Interface. You can access the e-Test Programming Interface
using VBScript Test Scriptlets, custom tests in the integrated Visual Basic
for Applications development environment, an ActiveX Enabled External
Callout Facility, and External Program control. The e-Test Programming
Interface allows you to embed your own testing logic at strategic points in
the recorded script to suit your specialized testing needs. The e-Test
Programming Interface supports many programming environments,
including Microsoft Visual C++, Microsoft Visual Basic, and VBScript.
Visual Scripts
Visual Scripts offer the fastest and easiest way to define tests for Web
applications. Visual Scripts capture the interaction of the user with the
Web application under test. These scripts serve as your baseline and can
be replayed against new versions of your Web application to detect
functional, regression, scalability, and post-deployment defects.
Visual Scripts offer you the power and flexibility to address all the testing
challenges you face in your organization.
E You build a suite of Visual Scripts that serve as the baseline for
your application can be re-used for load testing and scalability testing.
E All of the functional testing scripts that depict correct behavior of your
Since Web applications may sometimes require that you have separate
baselines for different browsers, e-Tester allows you to create baselines for
both Internet Explorer and Netscape Navigator.
Chapter 1: Introduction
During playback, the parameters in the Web page are filled with values from
the Data Bank file. Data Bank files can be easily created or modified using any
simple text editor, spreadsheet, word processor, or database application.
e-Tester can also be used to automatically generate a Data Bank file from
a Visual Script. Users can create sophisticated unattended regression tests
to thoroughly exercise a Web application by using varied input data from
Data Bank files.
Chapter 1: Introduction
System Requirements
System Requirements
e-Tester has the following system requirements:
E Operating System: Microsoft Windows NT 4.0, Windows 2000, or
recommended
Chapter 2
e-Tester Basics
This chapter explains how to use the main features of e-Tester. It explains
how to install and start the program and provides a description of the
features of the main window.
http://www.empirix.com/Empirix/Web+Test+Monitoring/Products
/choose+form.html
E Download the product (ets##-IE4.exe or ets##-IE5.exe) from the
e-TEST suite.
2.
Results Pane
Status Line
The Title bar of the window shows the program name followed by the
current Workspace and Visual Script name.
Directly above the Web Browser pane is a combo box for entering the
URL or file location of the Web page(s) to test. The bottom of the main
window includes a status line.
The following sections explain each of the menu options and show the
associated toolbar buttons.
8
File Menu
These menu options let you work with Visual Script files, workspaces, and
output logs. The following options are available:
New Script creates a new Visual Script.
Open Script opens an existing Visual Script for playback or
modification.
Close Script closes the currently open Visual Script.
Open Workspace opens a different workspace for storing test scripts
and output log information. You create and delete workspaces using the
options on the Admin menu.
Close Workspace closes the currently open workspace.
Save Script saves any changes to the currently open Visual Script. If the
script has not been saved before, e-Tester asks for a filename.
Save Script As saves the currently open Visual Script using a different
filename.
Save Output Log As saves the current Playback Results Log to a file.
Inherit VBA From imports Visual Basic for Applications code from a
saved Visual Script and adds the code to the current Visual Script.
Export Script As exports the currently open Visual Script to an ASCII text
file. The Visual Script hierarchy is written to the text file the same way as
it is expanded or collapsed in the Visual Script pane.
Export Output Log As exports the contents of the Results log pane to an
ASCII text file. You can also export saved Results log files using Results
View Results Log.
Script Comments opens a dialog box for inserting comments about
Edit Menu
These menu options let you edit Visual Scripts, expand and collapse the
script tree, clear the output log window, and work with the Data Bank
Wizard. The following options are available:
Cut Page cuts the currently selected page from the Visual Script .
Copy Page copies the currently selected page in the Visual Script tree
Visual Script.
Clear Output Window removes the current information from the Output
Log window.
Reset To Original State clears any left-over, persistent settings from a
10
Use this option before loading the page where you want to start recording
into the browser pane. This ensures that the new Visual Script that you
record will not be affected by any left-over persistent settings.
Data Bank Wizard opens the Data Bank Wizard dialog box.
Properties opens the properties dialog box for the currently selected
Run Menu
These options let you record and play back Visual Scripts, generate
Netscape-specific baselines, and run resource validation. The following
options are available:
Record provides options for starting and stopping manual recording of
Visual Scripts and generating Netscape-specific baselines. The following
submenu options are available:
Start
Stop
Page Snapshot records the state (mouse click events, user input
data, etc.) of the current page in the browser to the Visual Script.
This option is only active if the state of the page has changed since
it was recorded to the Visual Script. For example, if a user clicks on
the page (but not a link to another page), enters text into form
fields, or performs other actions that do not cause a transition to a
new page, the state of the page changes. However, the changed state
is not automatically recorded as part of the Visual Script. The Page
Snapshot option lets you manually record the current state of the
page as part of the Visual Script.
Navigate Manually opens a dialog box for manually specifying the
page URL, target frame, post data and header information for the
next page to record to the Visual Script.
Current Page appends the current page to the Visual Script.
Generate Netscape Script converts the default IE-specific Visual
11
currently open Visual Script. The following submenu options are available:
Start
Stop
Current Page plays back the currently selected page in the Visual
Script.
Up to Current Page plays back the Visual Script from the beginning
Resource Validation runs the resource validation test for the currently
Tests Menu
These options let you insert and modify test cases in the Visual Script.
The following options are available:
Insert Text Matching Test inserts a test case to match the presence or
absence of a specific text string in a Web page into the Visual Script.
Insert Server Response Test inserts a test case specifying the minimum and
maximum server response time for a page into the Visual Script.
Insert Test Scriptlet Before opens the Test Scriptlet pane for writing code
to use as an extended test for a Visual Script. The code executes before the
page of a Visual Script plays back. Test Scriptlets Before are custom
VBScript code snippets that can be used to access and evaluate the Web
page source, Document Object Model, and page navigation before the
page plays back in the Visual Script. The VBScript that you create is
stored as an internal part of the Visual Script.
Insert Test Scriptlet After opens the Test Scriptlet pane for writing code
to use as an extended test for a Visual Script. The code executes after the
page plays back in the Visual Script. The VBScript that you create is
stored as an internal part of the Visual Script.
12
Insert External Callout Test inserts a user-defined external test into the
Visual Script. External Callout tests are programs you create in an
ActiveX .dll. See Chapter 10 and Appendix B of this manual for the
requirements for creating the ActiveX .dll.
Insert Form Element Test
Test inserts a test that performs the specified
custom test on a Web page element object. The Custom Test Wizard lets
you select the element object directly from the Web page by highlighting
it with the mouse. The wizard also lets you specify the element object
property to test and the type of test to perform. The Custom Test Wizard
generates Microsoft Visual Basic for Applications (VBA) code in the
Microsoft Visual Basic Integrated Development Environment. You can
customize the wizard-generated code for your own specific testing
purposes. Chapter 5 explains how to use the Custom Test Wizard.
Modify Default Tests opens a dialog box where you can set options for
the automatic, built-in, e-Tester test cases. This is available only when a
page is selected in the Visual Script.
Modify Text Matching Test opens a dialog box for changing the options
Test Scriptlet. This option is only active when a Test Scriptlet Before
node is selected in the Visual Script.
Modify Test Scriptlet After opens a script editing pane for changing the
Test Scriptlet. This option is only active when a Test Scriptlet After node
is selected in the Visual Script.
Modify External Callout Test opens a dialog box for changing the options
13
Modify Form Element Test opens a dialog box for changing the options
Custom Test options. This option is only active when a Custom Test node
is selected in the Visual Script.
Browser Menu
These options let you navigate Web pages in the e-Tester Browser. The
following options are available:
Go Back goes back to the previous Web page.
Go Forward goes forward to the next Web page.
Go Home goes to the URL specified in the RSW.INI file for the home page.
Stop stops loading the currently selected Web page.
Show Applet Resource opens a window listing the Java Applet resources
14
Results Menu
These options let you locate failures in the Visual Script and accept or
discard tested versions of Visual Script pages. The following options are
available:
View Results Log opens a dialog box for viewing or exporting Results log
results log in HTML format. The HTML format provides options for
submitting failure information to d-Tracker (if installed).
Find Next Failure jumps to the next failure indicated in the Visual Script.
You can also press the F3 key.
Find Previous Failure jumps to the previous failure indicated in the
Visual Script. You can also press the Shift-F3 keys.
Accept Tested Page accepts the changes detected in the selected Web
Script page on playback and retains the recorded baseline for testing.
Accept All Tested Pages accepts all changes detected in the Web pages
Options Menu
These selections let you set the options for Visual Script playback, external
callout tests, resource validation, and the results log. The following
options are available:
Playback opens a dialog box for setting the Visual Script playback options.
Error Recovery opens a dialog box for setting the error recovery actions
to perform on failure of tests.
External Callout opens a dialog box for setting the External Callout
15
test options.
Results Log opens a dialog box for setting the playback result output log
options.
Netscape opens a dialog box for setting the Netscape related Visual
Scripting options.
Event Playback opens a dialog box for specifying the delay and failure
Tools Menu
These options let you open other tools in the e-TEST suite. The available
options will depend upon the software you have installed on your system.
The following options may appear on the Tools menu:
WAP Script Recorder - starts and closes the Wireless Application Protocol
browser for recording Visual Scripts for WAP applications. Use Options
WAP Options to specify the WAP browser to emulate.
e-Spider opens the e-Spider window, which allows you to map your site
or Web application.
e-Manager starts the e-Manager application for running multiple Visual
e-Monitor starts e-Monitor for creating jobs and schedules that can play
back multiple e-Tester Visual Scripts for monitoring of a Web
application.
e-Load starts the e-Load for performing load and stress testing on Web
applications.
Code View opens the Visual Basic for Applications environment for
developing custom test code. You can also right-click on a Custom Page
Programmability node of a Visual Script to open the VBA environment.
e-Load Quick Test starts e-Load using the current Visual Script as a
Admin Menu
These options let you perform administrative tasks on your test library,
workspaces, and scripts. The following options are available:
Test Library opens a dialog box for adding, removing, or modifying Text
where d-Tracker is installed and the user name and password to use for
entering issue/defect information.
New Workspace opens a dialog box for creating a new workspace.
Delete Workspace opens a dialog box for selecting the workspace to delete.
Delete Scripts opens a dialog box for selecting the Visual Scripts to delete.
Delete Logs opens a dialog box for selecting the playback results log files
to delete.
17
Window Menu
These options let you change the view and size of the panes of the
e-Tester main window. The following options are available:
Resize Visual Script View changes the relative widths of the Visual Script
pane and the Browser pane of the e-Tester main window to make one or
the other more visible.
Resize Output Log View shows or hides the Playback Results Log pane.
Help Menu
These options let you access the e-Tester online help, provide information
about obtaining Technical Support, and show the e-Tester serial number
and current license.
18
Page Hierarchy
Click
to expand a branch or
to collapse a branch.
The Visual Script tree will include any test cases you insert into the Visual
Script. Each item in the tree is identified by its icon and a text description.
- Red flag:
test case failure.
19
The available options will vary depending upon which type of Visual
Script node is selected. The following are examples of the available popup
menu options:
E Toggle the default existence test for Visual Script nodes;
E Expand and collapse Visual Script nodes;
E Load the selected page into the browser pane;
E Modify default tests;
E Accept or discard tested pages generated by Visual Script playback;
E Modify test case options and Test Scriptlets;
E View Visual Script node properties.
Menu items that are dimmed do not apply to the currently selected Visual
Script node.
20
Browser Pane
The browser pane contains a seamlessly integrated Web browser that you use
to select the Web pages to test. It provides full navigation and Web access.
Enter URL or File Location
Enter the full path and file name of the URL or local file, or drop down
the list to select from recently accessed Web pages.
21
22
You can adjust the widths of the individual columns by dragging the dividers.
Icons in the Visual Script show the location of any specific failures of
default tests or test cases. Resource Validation test results are listed in a
separate window after playback of the script.
You can turn on and off the display of the Playback Results pane using
the Window Resize Output Log View option.
Status Bar
The status bar provides status and current progress information. The
mode determines the information that appears in the status bar.
Mode (PLAY/EDIT/REC)
Browser
Elapsed Time
Browser Status
Progress
23
You can develop custom tests using the e-Tester Custom Test Wizard or
your own custom code. The Custom Test Wizard lets you select Web
page objects, specify test options, and automatically generate Visual Basic
code. Chapter 5 explains how to use the Custom Test Wizard. Chapter 10
and Appendix B explain how to use the e-PI to create custom tests using
your own Visual Basic code.
24
Java Console
The Java Console displays error information for Java applets.
You can use the Java console to view more detailed messages than are
displayed in the Browser Status pane of the Status Bar.
Select Browser Show Java Console to open the window. The Show Java
Console menu option only appears if you installed the e-TEST suite with
Java support.
The Microsoft VM - Java console enabled (requires restart) setting on the
Advanced tab of the Control Panel Internet Properties must also be
selected before the window will open.
25
Setting Preferences
Setting Preferences
The Preferences options let you set auto save and browser timeout options.
Selecting Options Preferences opens the Preferences dialog box:
saves Data Bank variables for use across multiple Visual Scripts. If you
specify Data Bank variables and bind the variables to fields in a Data
Dank file for a specific Visual Script, selecting this option saves those
Data Bank variables and field bindings for use with a new Visual Script.
You only need to map the saved Data Bank variables to the specific
Parameters in the new Visual Script. When cleared, all Data Bank
variables, mappings, and field bindings are cleared when you close a
Visual Script or create a new Visual Script.
Record all list selections by index when checked, e-Tester selects options
in a <SELECT> list of a Web page using the zero-based index of the
<OPTION> tags (for example Value[0], Value[1], etc.) and ignores the text
of the option. When cleared, e-Tester selects list items using the value of
the option in the HTML source (for example, the text List Value within
the HTML: <OPTION Value=List Value). The default setting is cleared.
26
navigation information and files required for playing back the Visual
Script in e-Load. When cleared, e-Tester does not generate the navigation
and files for playing back the Visual Script in e-Load. The default is
selected.
Browser Timeout sets the amount of time the browser will wait for a
Web page in the Visual Script. You can view the captured HTML source
in the Visual Script by selecting an HTML node of a Visual Script page
and selecting Edit Properties.
E Capture Original when selected, e-Tester captures the HTML source
as sent by the server to the client browser. This is the standard setting.
E Capture
Capture Processed when selected, e-Tester captures the HTML
source in structured form after the client browser processes the HTML.
2.
3.
4.
27
Using Workspaces
5.
In the Proxy server group, select the Use a proxy server check box.
Access Using
Proxy Server
5.
Click Advanced, and then type the appropriate proxy server address
or addresses.
Specify Proxy
Addresses
6.
7.
8.
Using Workspaces
Workspaces store project related Visual Script files and Results log files.
You can use Workspaces to organize your various testing projects.
e-Tester lets you create multiple Workspaces.
The Workspace is a user-specified subdirectory of the installation
directory (C:\Empirix is the default). e-Tester automatically appends an
28
Using Workspaces
3.
Click OK.
Note: The new Workspace does not automatically become the
29
Using Workspaces
Opening a Workspace
e-Tester automatically opens the last open Workspace when you start e-Tester.
To open a different Workspace:
1.
Note: If you have an unsaved Visual Script, e-Tester asks if you want
to save the file before opening the Open Project Workspace dialog
box. Click Yes to save the file, No to discard the unsaved file, or
Cancel to cancel opening a new workspace.
2.
3.
Click OK. The opened workspace name appears in the title bar of
e-Tester.
Closing a Workspace
Although it is not necessary to close a Workspace before opening a different
Workspace, you may want to do this in certain situations. For example, you
may want to close a Workspace at the end of a testing project. This makes
sure that the next time you start e-Tester for another testing project, the
previous project Workspace will not open automatically.
30
Using Workspaces
workspace.
When you close the Workspace, the majority of the e-Tester menu options
and toolbar buttons are dimmed. Opening a Workspace restores the menu
and toolbar options.
Deleting a Workspace
e-Tester lets you delete a Workspace and all project files in the
Workspace.
To delete a Workspace:
1.
2.
3.
Click OK.
4.
31
Using Workspaces
32
Chapter 3
33
34
1.
2.
Type or select the full URL or path and file name of the first page into
the address line of the Browser pane of e-Tester. (If typed, press Enter.)
3.
4.
35
Page Nodes in
Visual Script Pane
5.
Select Run Record Stop or click the toolbar button when finished.
Once the Visual Script is recorded, you can customize the script in a
variety of ways. See Working with Visual Scripts in Chapter 4 for
additional details about customizing Visual Scripts.
Notes: When recording frames-based Web pages, be sure to follow
links starting from the base frame. This provides e-Tester with a
reference point from which to start navigating frames during playback.
It is important that the first page recorded to the Visual Script is not
loaded into the browser pane by an action that occurred on a previous
page (for example, Back/Forward browser buttons, link navigation,
or form submission). If the recording of the first page of the Visual
Script is dependent upon the context of navigation to the page, the
Visual Script playback may not work correctly.
36
2.
3.
Click on the page or enter data into a form (without submitting the
form data), or click on a option in a Java applet to trigger an event.
4.
5.
Submit the form data or continue navigating the Web site, applet or
application to record additional pages to the Visual Script.
6.
Select Run Record Stop or click the toolbar button when finished
recording.
37
to spider the entire site from the home page due to time and system
resource issues. A more efficient approach is to identify related sections of
your site or application and create a set of modular Visual Scripts by first
manually loading a specific page in a section and then starting e-Spider.
To record Visual Scripts with the e-Spider:
38
1.
Type or select the full URL or path and file name of the first page
where you want to start spidering into the address line of the Browser
pane of e-Tester.
2.
3.
4.
Wait for the e-Spider to finish. e-Spider builds a map of the site or
application as a tree hierarchy.
Double-click the page with a form in the e-Spider map. The page
appears in the e-Tester Browser pane.
7.
When the Results page appears in the e-Tester Browser pane, click
the Append Page to Tree button in e-Spider to add the Results page
to the e-Spider tree. The icon appears next to the page with the
form in the e-Spider map.
9.
Repeat steps 6-8 for each form page in the e-Spider tree.
Note: See Using
39
Select File Save Site Map As or click the toolbar button in e-Spider
to save the site map to a file. This is useful if you need to make any
change to the tree in the future.
11.
Generated
Visual Script
40
Form input data appears under the Visual Script Parameters node of the
Results page returned by the Web application processing the form:
Start e-Tester.
2.
3.
41
42
4.
5.
6.
7.
8.
9.
Click OK.
10.
2.
3.
navigate.
Target Frame the name of the frame if navigating to a frames based
page. This is the value of a Target= attribute of the frame set.
PostData any name/value pair data to include as Post data for the
page. Specify as name=value&name=value,&name=value, etc.
Headers any additional HTTP headers to send to the server. The
headers are in addition to standard browser headers.
43
Start e-Tester and type the following URL in the Address field:
c:\Empirix\eTEST\rswwin.htm.
2.
3.
Type the URL of your Web application in the Address line and press
Enter.
4.
5.
6.
Select Run Record Stop or click the toolbar button when finished.
The recorded Visual Script will carry forward the cookies and play back
correctly.
44
The click event on the See Section 1 link will be recorded and will be
executed on playback of the Visual Script.
You can override the default recording behavior and have e-Tester not
record clicks to Anchor tags.
To record anchor transitions:
1.
2.
Set the following setting in the WebAnalyst section of the either the
Global User Defaults or <Scriptname> Settings branch.
IgnoreAnchorTransitions=True
Note: If IgnoreAnchorTransitions does not appear in the Global User
Defaults | WebAnalyst tree, click the right mouse button on the
WebAnalyst node and select Add Settings. Select the check box next to
IgnoreAnchorTransitions and click Add Setting.
3.
4.
45
If a page is encountered that has a META Refresh tag and a refresh time
over 10 seconds, the page will be recorded in the Visual Script.
This code checks for the text string <TITLE>Table of Contents in the
HTML source of the page returned by the server. If the string is not in
the source, the Custom VBA code replays the current page. e-Tester loops
on the current page (which should be the first Auto page) until the server
returns a page with the <TITLE>Table of Contents string in the
HTML source. Playback then continues with the Visual Script page after
the last Auto page. In the above example, the next page after the last Auto
page is page four of the Visual Script.
46
dialog box), which may not reappear when you revisit the site due a
session cookie, e-Tester recognizes the cookie and skips the login page
during playback. e-Tester logs a message indicating the login page was
skipped and playback continues with the next page.
To automate the user name and passwords during recording and playback
of a Visual Script, you can use the e-Tester Authentication Manager. The
Authentication Manager lets you specify username and password
combinations for multiple URLs. You can also map the usernames and
passwords to a Data Bank file. When e-Tester encounters a URL that
needs authentication via a popup dialog box, it automatically fills in the
username and password in the dialog box that is displayed. Select Admin
Authentication Manager to add URLs, usernames, and passwords to the
Authentication Manager. See the Using Admin Options in Chapter 9 for
additional information about using the Authentication Manager.
Alternatively, navigating to the URL will cause the browser to display a
dialog box wherein the user must type in a username and password. To
bypass the popup box that prompts for the username and password, prefix
the username and password to the URL before navigating as shown
below:
http://<username>:<password>@<URL>
The same technique can be applied for 'Spidering' sites that require
authentication.
47
2.
2.
3.
4.
48
49
2.
3.
4.
2.
50
1.
2.
Select to play
back with
recorded delay
Specify maximum
delay time
3.
Select the Play with Recorded Delay Between Pages check box.
4.
5.
Click OK.
6.
51
2.
E Playback with Data Bank playback of the Visual Script uses data
52
Playback with Data Bank playback of the Visual Script uses data
values from a Data Bank file as the parameters in the Web pages or
application.
E Name the name of Data Bank file being used.
E Current Record Number the current record from the Data Bank
file. Data from this record will be passed to the parameters if Use
Current Record Only is selected.
E Start at Record the first Data Bank record to use for playback
E End at Record the last Data Bank record to use for playback
entire Visual Script (all pages) using all of the specified records for
each iteration. If you have a Data Bank file with 5 records and
Iterate over the range 2 times, e-Tester plays back the entire Visual
Script (all pages) a total of 10 times - twice for each record.
3.
2.
Enter data into the form and click the Submit button.
3.
4.
Stop Recording.
5.
53
6.
7.
Select the Variables tab and map variables to the Visual Script
parameters.
Select variables
to map to script
parameters
Click to map
all variables to
script parameters
8.
Select the Data Binding tab and select a Data Bank file.
Select variables
to bind to Data
Bank fields
Click to bind
all variables to
Data Bank fields
54
9.
10.
Click OK.
e-Tester User Guide
11.
12.
Set Which
Data Bank
Records
Set #
of Iterations
Through
Range
13.
14.
Specify the range of Data Bank records to use during playback of the
script in the Start at Record and End at Record fields. You can enter
First and Last, respectively, to iterate playback through the entire
Data Bank.
15.
Set the number of iterations through the Data Bank in the Iterate over
Range field.
16.
Click Iterate.
17.
e-Tester plays back the entire Visual Script (all pages) using all of the
specified records for each iteration. If you have a Data Bank with 5
records and iterate over the range 2 times, e-Tester plays back the
Visual Script (all pages) a total of 10 times - twice for each record.
2.
3.
55
4.
Click to specify
Data Bank record
5.
6.
7.
8.
Specific
Record
Set #
of Iterations
Over
Record
56
9.
10.
Set the number of iterations for the record in the Iterate Over Record field.
e-Tester User Guide
11.
Click Iterate.
12.
e-Tester plays back the entire Visual Script (all pages) using the
specified record for each iteration.
2.
3.
Select Properties.
4.
Edit the URL by changing the original URL to the new URL.
5.
6.
7.
9.
The new script can now be used to play back against the new URL.
57
58
1.
2.
3.
4.
5.
6.
Save the Visual Script as a Netscape baseline Visual Script (.nom file
extension).
7.
8.
See Working with Visual Scripts in Chapter 4 for a complete list of the
flags and icons used in Visual Scripts.
59
61
E Always Invoke VBA IDE on VBA Errors when selected, e-Tester opens
default).
Script Settings the Script Setting tab is where you set playback options
E Playback with Data Bank when selected, e-Tester plays back the
Visual Script using the data values from the specified Data Bank.
'
Use All Records when selected, e-Tester plays back the Visual
'
Use Current Record Only when selected, e-Tester plays back the
Visual Script using only the current record in the Data Bank file.
62
Start New Browser Session Before Playback when selected, e-Tester starts a
new browser session before starting playback of the Visual Script. A new
session clears current graphs and statistics and starts collecting new data.
Delete Persistent Cookies Before Playback when selected, e-Tester deletes
cookies set by Web applications before playing back the Visual Script.
Skip Auto Pages in Thin Load when selected, Visual Script playback in
e-Loads Thin Client mode will skip auto pages that were recorded as part
of the Visual Script.
Play with Recorded Delay Between Pages when selected, e-Tester
includes any delay or think time time (i.e. the time a user took to read a
page, locate a link, and then click the link) between pages that occurred
when the Visual Script was recorded.
Maximum Delay (seconds) sets the maximum amount of time e-Tester will
wait between playback of pages in the Visual Script. This option is only
available when Play with Recorded Delay
Delay Between Pages is selected. This is
useful to reduce long think time delays that occurred when the Visual
Script was recorded to a specific maximum amount of time during playback.
63
deletes the specified cookie file after each playback of the Visual Script.
Specify the path and filename of the Netscape cookie file.
Start Ne
Netscape
tscape determines when the Netscape browser is started.
E Before playing Netscape script starts the Netscape browser before
starting e-Tester.
64
E After closing Netscape script exits the Netscape browser when you
E When opening IE script exits the Netscape browser when you open an
E Only when exiting e-Tester exits the Netscape browser only when you
exit e-Tester.
Launch Timeout sets the maximum time that e-Tester will wait for the
65
The Event Recording Options dialog box has the following options:
Events to Record lists the HTML tags and the associated DHTML event
handlers that you specify. You customize the Event to Record list as
required for your Web application. Each HTML tag can have more than
one DHTML event handler associated with it. You can enable and disable
event recording for specific tags and event handlers by selecting or
clearing the check box next to the name.
Element Tag provides a list of the HTML tags. Select a tag and then
selected HTML tag. When you add event handlers to tags, the tag name
and event name appear in the Events to Record list. You can add multiple
event handlers to the currently selected HTML tag. Select another event
handler name and click Add Event again.
You should define Event Recording options before loading Web pages
and recording Visual Scripts.
66
The Event Playback Options dialog box has the following options:
Event Playback Delay sets the type of delay to use for playback of
'
Delay (sec) sets the amount of time to use as the constant delay.
E Use Recorded Delay when selected, e-Tester uses the recorded delay
'
Min (sec) sets the minimum playback delay time in seconds.
'
Max (sec) sets the maximum playback delay time in seconds.
67
Event Failure sets the retry and timeout options in case of a DHTML or
events before timing out. This setting also sets the playback timeout
for transitions between Java nodes of the Visual Script tree.
Applet support is enabled and which version of e-Tester Visual Scripts are
being used.
E No Support when selected, the Microsoft Java Applet support is
disabled.
Sun Plugin Applet Support this option specifies if Sun Plugin Applet
68
69
expression | [expression] | []
expression can be any regular expression. You can specify multiple
expressions with logical OR using the pipe (|) character between
BV_SessionID=[0-9]*.[0-9]*&|BV_EngineID=[a-z]*.[09]*&|VALUE="[0-9]*"
70
param1=*,param2=*,param3=*,paramN=*
The following examples show how specific settings affect the playback
comparison.
For the following URL:
http://www.foo.com/engine123/submit.pl?name1=value1&n
ame2=value2
name*=value*
BV_SessionID=@@@@0166988701.0932590606@@@@&BV_EngineI
D=calfdfllemjbfdicfmjcfkkdhhm.0
71
val1*,val2*,val3*,valN*
The following example shows how specific settings affect the playback
comparison.
For the following URL:
http://www.foo.com/engine123/submit.pl?name1=value1&n
ame2=value2
value*
excludes the URL parameters value1 and value2 from the playback
comparison.
E URL Subpaths specifies URL path values to exclude from Visual
LikePattern is the pattern to match for the path of the URL. Each
The following example shows how specific settings affect the playback
comparison.
For the following URL:
http://www.foo.com/engine123/submit.pl?name1=value1&n
ame2=value2
www*.foo.com,engine*
72
73
The excluded HTML source will not be tested and will not cause red
flags to be generated in the Visual Script during playback. The HTML
source excluded from the playback comparison will be shown in purple
text when you double-click on any Different HTML node in the Visual
Script.
Both <DIV BV_BeginIgnore> and <DIV BV_EndIgnore> require the
closing </DIV> tag. If you omit the <DIV BV_EndIgnore> tag, all
HTML differences that follow <DIV BV_BeginIgnore> will be ignored.
74
Chapter 4
75
expand the script, or sections of the script, to view specific nodes, add test
cases and modify default tests.
Collapsed Page
Expanded Page
Page Hierarchy
2.
Click the
the node.
icon to collapse
2.
Select Edit Expand Page or click the icon next to the page node
or select Edit Collapse Page or click the icon to next to the page
node.
Note: You can also click the right mouse button and select the Expand
or Collapse
Collapse options from the popup menu.
Clicking the icon expands the page to its previous expanded state,
which might be one level or all levels depending upon the last time
the page was expanded.
76
delay associated with the page. The playback delay is the actual amount of
time (think time) the user spent on the page before going to another page.
E Cookies node: shows the Client Request and Server Response values.
E Parameters node: shows the form elements and data values for form
results pages. If the page is mapped to a Data Bank, the Parameters
77
Note
Note: The Address, Custom Page Programmability, and Frame nodes are
always included in the Visual Script. The sub-nodes can vary depending
upon the structure of the recorded page. Web pages that include other
types of page components will have additional tree nodes displayed in a
similar fashion.
In addition to icons with textual identifiers (for example, HTML, images,
links, etc.), the Visual Script use the following icons:
Icon
Description
78
Expand or collapse the Visual Script to show the node(s) you want to
export. The text in the exported file will appear the same as is shown
in the Visual Script pane.
2.
Select File Export Visual Script As. e-Tester opens a dialog box for
saving the file.
3.
You can use any ASCII editor to view or print the file. The following is an
example of a Visual Script exported to an ASCII file:
- [1] EMPIRIX|HOME
+ Address: http://www.empirix.com/
- Frame (EMPIRIX|HOME)
Html
+ Images
- Links
http://www.empirix.com:80/index.html
http://www.empirix.com:80/company/index.html
http://www.empirix.com:80/products/index.html
http://www.empirix.com:80/news/index.html
http://www.empirix.com:80/support/index.html
http://www.empirix.com:80/contact/index.html
http://www.empirix.com:80/success.html
http://www.empirix.com:80/partners.html
http://www.empirix.com:80/jobs.html
http://www.empirix.com:80/sitemap.html
http://www.empirix.com:80/y2k.html
+ [2] EMPIRIX|PRODUCTS|e-TEST SUITE
+ [3] EMPIRIX|NEWS & EVENTS|IN THE NEWS
The nodes with the minus (-) signs are nodes that were expanded in the
Visual Script pane when the script was exported. The nodes with the plus
(+) signs are nodes that were collapsed in the Visual Script pane when the
script was exported.
79
Copying Pages
To copy a page in the Visual Script:
1.
2.
3.
Moving Pages
To move a page in the Visual Script:
1.
2.
3.
Select the page location in the Visual Script where you want the page
moved.
4.
Select Edit Paste or click the toolbar button. The page is pasted to
the Visual Script directly after the currently selected page.
Appending a Page
To append a page to the Visual Script:
80
1.
2.
Deleting Pages
To delete a page from the Visual Script:
1.
2.
Adding Comments
To add comments for an entire Visual Script:
1.
2.
3.
2.
Select the top-level node of the page where you want to add a
comment.
3.
81
4.
5.
Select OK.
82
1.
2.
3.
Click OK.
4.
2.
Select Tests Modify Default Tests. The default test dialog box opens:
3.
4.
Click OK.
83
2.
3.
4.
Click OK.
2.
84
2.
3.
4.
Click OK.
Note: You can also press the F4 key to view properties, or click the
right mouse button and select Properties from the popup menu.
85
Resource List
2.
3.
Wait for the tests to finish and view the validation results.
Validation Test Status
4.
86
2.
3.
4.
You can use any ASCII editor to view or print the file. The following is an
example of an exported Resource Validation file before running the
Resource Validation test:
Item 1 Host: www.empirix.com Resource: Internet Status:
Item 1. 1 Host: www.empirix.com Resource:
Item 1. 2 Host: www.empirix.com Resource:
Item 1. 3 Host: www.empirix.com Resource:
Item 1. 4 Host: www.empirix.com Resource:
Item 1. 5 Host: www.empirix.com Resource:
Item 1. 6 Host: www.empirix.com Resource:
index.html
company.html
products.html
news.html
support.html
contact.html
The status and error information is listed after each item. The error
headings appear under an item only when an error occurred.
Chapter 4: Working with Visual Scripts
87
2.
3.
Click OK.
The Playback Options setting affects the Resource Validation test for
the entire Visual Script.
88
2.
3.
4.
Click OK.
Notes: Validation tests are options only on Link nodes and Image nodes.
You can also press the F4 key to view properties, or click the right
mouse button and select Properties from the popup menu.
89
This dialog box lets you specify the default Resource Validation parameters.
Resource Validation the following option:
E Maximum Number of Threads the maximum number of threads
2.
90
The dialog box shows the properties of the currently selected node of the
Visual Script. The properties are as follows:
Page the page number and title from the Visual Script.
Type the Visual Script node type: Frame, Scripts Collection, Image
Collection, Links Collection, Page, etc.
Name the page name assigned to this node.
Execute Existence Test when selected, the default existence test is run on
playback. The existence test verifies that the node exists in the current
version of the Web page or application during playback of the Visual Script.
When cleared, the test is ignored for the node. Clearing this check box is the
same as clicking the right mouse button and selecting Ignore Test.
Result the result of the existence test: passed or failed.
91
ActiveX Properties
This dialog box shows the properties of the currently selected ActiveX
node of the Visual Script.
playback.
Result the result of the existence test: passed or failed.
Attribute Name the name of the ActiveX attribute.
Attribute Value the value of the ActiveX attribute.
92
tag set).
URL the Uniform Resource Locator of the page.
Actions lists the Dynamic HTML and/or Java events to be played back.
The associated check box lets you include or exclude specific events in the
Visual Script playback. When selected, the event is included in playback.
When cleared, the event is not included.
93
Transition Criteria lists the criteria that must be met before allowing a
manual Page Snapshot that records state changes (i.e. user clicks, data
entered into forms, etc.) of a page. This relates to Java event transitions
and the automatic pacing setting within Options Java.
Attributes the duration and delay times as follows:
E Recorded Duration the amount of time in seconds required to record
the page.
page.
Base Final Event on Index when selected, e-Tester navigates pages using
the zero-based index of the event that occurred on the page (for
example, a click on Link[0], Link[1], etc.) and ignores any text related to
the event. When cleared, e-Tester navigates pages using the text for the
click events from the HTML source (for example, the text Link Text
within the HTML: <A HREF="nextpage.html">Link Text</A>). The
default setting is cleared.
Cookies Properties
This dialog box shows the properties of the currently selected Cookies
node of the Visual Script.
94
the server.
E Cookie the cookie name.
E Comparison shows the comparison results between the Master Value
E Master Value shows the cookie value when the page was recorded to
E Tested Value shows the cookie value when the page was played back
E Master Value shows the comparison results between the Master Value
E Tested Value shows the comparison results between the Tested Value
E Master Response Value the cookie from the server response when the
E Tested Response Value the cookie from the server response when the
95
E e-Load Thick Client select this option if the Visual Script will be
played back in e-Load Thick Client mode for limited load testing.
e-Load Thick Client mode uses a full-featured browser control that
includes access to the Document Object Model (DOM) of the Web
96
back in e-Load Thin Client mode for full load and scalability testing.
e-Load Thin Client mode uses a browser control emulator that does
not include the Document Object Model (DOM). e-Load Thin Client
mode requires fewer system resources and is more scalable than Thick
Client mode.
Errors any error values returned by the custom VBA code for the Visual
Script page.
E Event Name the name of the playback event in which the error
occurred.
E Error Description any text description of the error returned from the VBA
code.
E Error Number any error number returned from the VBA code.
97
playback.
Result the result of the External Callout test: passed or failed.
Invoke External Callout indicates when the External Callout test should
be invoked by e-Tester.
E Before Playback of Page when selected, the External Callout test is
performed before e-Tester plays back the Visual Script for the page.
e-Tester waits for a return value from the External Callout Server
before running default tests on the Web page.
performed after e-Tester plays back the Visual Script for the page.
e-Tester waits for a return value from the External Callout Server
before running default tests on next Web page in the Visual Script.
Return Values any return codes returned by the External Callout Server.
E Error Number from Server an error number returned from the
98
playback.
Result the result of the existence test: passed or failed.
Properties the list of the form element properties in the HTML source.
E Test when selected, the property and value are tested on playback.
E Property the form element attribute (i.e. type, name, value, etc.).
E Current Value the value of the property of the HTML Form element.
99
playback.
Result the result of the Form element test: passed or failed.
Expression an expression to evaluate that tests the Form element.
Test Result shows if the expression evaluates True or False when you click
the Test button.
Test tests the expression entered in the Expression text box.
100
playback.
Result the result of the existence test: passed or failed.
Attributes attributes of the <FORM> HTML source.
E Action the Action attribute of the <FORM> tag in the HTML source.
E Method the Method attribute of the <FORM> tag in the HTML source.
E Encoding the encoding scheme specified by the form in the HTML source.
E Target the target frame to go to in a Frames-based Web Site specified
101
playback.
Result the result of the existence test: passed or failed.
HTML Source the HTML source of the page.
102
playback.
Result the result of the existence test:
passed or failed.
run on playback. The Resource Validation verifies that the image exists in
the current version of the Web page or application during playback of the
Visual Script.
Result the result of the validation test:
passed or failed.
Details the status of the page resource during playback of the Visual
Script, as follows:
E Available the resource was found during playback of the Visual Script.
E Host not reachable e-Tester was unable to reach the host of this
103
also include subnodes for the classes used in the applet. The node types
vary depending upon the applet but may include Panel, Button, Label,
TextArea, etc. The subnode properties dialog box is the same as the Java
Applet node.
Execute Existence Test when selected, the default existence test is run on
playback.
Result the result of the existence test: passed or failed.
Attribute Name the name of the Java Applet attribute.
The list of
Attribute Names will vary depending upon the type of node.
104
playback.
Result the result of the existence test: passed or failed.
Execute Valida
Validation
tion Test when selected, the Resource Validation test is
run on playback. The Resource Validation verifies that the image exists in
the current version of the Web page or application during playback of the
Visual Script.
Result the result of the validation test: passed or failed.
Details the status of the page resource during playback of the Visual
Script, as follows:
E Available the resource was found during playback of the Visual Script.
E Host not reachable e-Tester was unable to reach the host of this
105
The dialog box shows the properties of the currently selected node of the
Visual Script. The properties are as follows:
Page the page number and title from the Visual Script.
Type the Visual Script node type: Page.
Name the page name assigned to this node.
Execute Existence Test when selected, the default existence test is run on
playback.
Result the result of the existence test: passed or failed.
Advanced opens a dialog box for specifying advanced settings for Visual
Script playback. The advance settings are provided for special-case
circumstances involving URLs that are changed dynamically.
106
Panel Properties
This dialog box shows the properties of the currently selected Java Applet
Panel node of the Visual Script.
playback.
Result the result of the existence test: passed or failed.
Attribute Name the name of the Java Applet Panel attribute.
Attribute Value the value of the Java Applet Panel attribute.
107
Parameter Properties
This dialog box shows the properties of the currently selected Form
element of the Visual Script.
playback.
Result the result of the existence test: passed or failed.
Attributes the attributes of the Parameter node in the Visual Script.
E Recorded Value the data value captured from a form in a Web page
E Tested Value the data value captured from a form in a Web page or
Parameter node of the Visual Script using the Data Bank Wizard.
Use Default value on play back when selected, the Visual Script plays
back using the value defined with the value= attribute of a name/value
pair in the page source. When cleared, the Visual Script plays back using
the recorded value or the value from a Data Bank.
108
playback.
Result the result of the existence test: passed or failed.
Script Source the JavaScript or VBScript source from the Web page or
application.
109
on playback.
E Result the result of the Server Response test case: passed or failed.
110
Page Specification the start and stop settings for the Server Response
Test. These settings are useful for testing Server Response time across
multiple pages.
E Start test on this page when selected, the Server Response test starts
on this page.
E End test on this page when selected, the Server Response test ends on
this page.
Time Specifications the time attributes of the Server Response test case.
e-Tester will wait to receive a response from the server during playback.
E Maximum
Maximum Time Allowed for Playback the maximum amount of time
e-Tester will wait to receive a response from the server during playback.
111
playback.
Result the result of the existence test: passed or failed.
Return Values any return codes returned by the Test Scriptlet.
E Error Number from Server
Server an error number returned from the Test
Scriptlet.
E Error String from Server a text description of the error returned from
112
playback.
Result the result of the Text Matching test: passed or failed.
Test For the type of text matching performed by the test case (presence
or absence of selected text).
Selected Text the text string to test for in the Web page or application.
113
WML Properties
This dialog box shows the properties of the currently selected WML node
of the Visual Script. WML nodes are recorded by Visual Scripts that
e-Tester records against Web applications designed for Wireless
Application Protocol (WAP) devices.
subnodes for the cards, decks, and other content in the WML file. The
node types vary depending upon the contents of the WML file.
Execute Existence Test when selected, the default test for Existence test is
run on playback.
Result the result of the existence test: passed of failed.
Attribute Name the name of the WML attribute. The list of Attribute
114
Chapter 5
115
E Selected text is absent the test case passes if the Selected Text is not
Selected Text specifies the text string to match in the Web page or
application source. You can capture text directly from the Web page or
application by highlighting a text string with the mouse before opening
the Text Matching test case dialog box. You can also enter or edit the text
manually, or reference Data Bank variables for verifying data-driven tests.
Test Result shows the current status of the test case.
Select From Test Library opens the test library to select a previously
Add to Test Library stores this test case in the test library.
Test on HTML performs the Text Matching test case interactively on the
current HTML. This button is active only if you edited or entered the
Selected Text manually.
Accept adds the test case to the selected page in the Visual Script.
The following sections explain how to use the Text Matching test case.
Be sure the page you want to test is the current page in the Browser
pane. (Right-click the mouse and select Goto Page.)
2.
Highlight the text (in the Browser) that you want to match using the
mouse.
3.
Select Tests Insert Text Matching Test or click the toolbar button.
The highlighted text automatically appears in the Selected Text box of
the Insert Text Matching Test dialog box.
Note: You can enter any text to compare in the Selected Text box,
5.
E Selected text is absent the test case passes if the Selected Text is
6.
Click Accept. The Text Matching test case is added under the Frame
node of the Visual Script page.
117
118
Making the assumption that if the text 30 Inch Crusader with Light is in the
page returned by the search for Lamps, the search was successful. With
known input data and expected results, you can build a Data Bank file
with multiple values to use for data-driven testing and verification, as in
the following example:
Input,Expected
Lamps,30 Inch Crusader with Light
Paints,Exterior Flat House Latex Paint
Plants,1 gallon Hosta assorted 1 quart
Searches for the products Lamps, Paints, and Plants are expected to return
the associated text string for a successful search.
The input data and expected results are not limited to single fields. For
example, you could set up a test where the input data is a username and
password, and the expected result is the first and last name of the user. In
this case, the Data Bank file would contain four fields, as follows:
username,password,firstname,lastname
The username and password fields are the input data fields and the
firstname and lastname fields are the expected result fields. Each record
in the Data Bank file would contain the actual data for each of the fields.
The following example shows a Data Bank file with multiple input data
fields and expected results fields:
username,password,firstname,lastname
jsmith,jms04P,John,Smith
mmcmillin,mmc46a,Mary,Mcmillin
jalexander,jda2a4,Jason,Alexander
rromano,rorFX2,Ray,Romano
jpurdue,jfp9vs,Jillian,Purdue
The Data Bank file with the input data and expected results should be
saved as a .csv file to the DataBank subdirectory of the installation
directory (C:\Empirix\eTEST is the default).
Load the data input page for your application into the Browser (for
example the search or login page).
119
2.
3.
Enter and submit the input data. You can use any representative
input data for script recording purposes.
4.
5.
2.
Add new variable names for each field in the Data Bank file. Specify
each variable as External - Map to External Data Source.
Click to Add New Variables
Define Variable
For Each Data
Bank Field
Parameters in
Visual Script
3.
120
Map the variables for the input data fields to the corresponding
Visual Script parameters.
Input Data
Variables
Mapped to
Parameters
4.
5.
Select the Data Bank file containing the input data and the expected
results data.
6.
Bind each input data field and each expected results data field to the
corresponding variable name in the wizard.
Select Data Bank File
Select Data
Bank Field
Select
Variable
Variables
Mapped to
Data Bank
Field Names
121
7.
Click Fetch Record to cycle through the records in the Data Bank file.
8.
2.
3.
4.
5.
Type the variable names for the expected results fields into the
Selected Text box in the form <<var_name>>. You can also enter
static text that you expect to be part of the results page, as shown
below:
Enter Static
Text and
Variable
Names
6.
7.
1.
2.
3.
Click Iterate.
The Visual Script plays back once for each record in the Data Bank file.
On each playback, the Visual Script passes the input data to the Web
application, and then the Text Matching test case compares the results
page with the data in the expected results fields. Any failures are
indicated by a red flag on the Text Matching node of the Visual Script.
2.
3.
Enter changes.
4.
Click OK.
2.
Click Add.
3.
4.
5.
6.
7.
or:
1.
123
2.
3.
4.
2.
3.
4.
5.
Click OK.
6.
Click Accept.
The Text Matching test case is added under the Frame node of the
Visual Script page.
2.
3.
Click Remove.
4.
Click OK.
124
1.
2.
Select Edit Delete Text Matching Test or click the toolbar button.
3.
Current Page shows the page in the Visual Script where the test case will
be added.
Page Specification defines the page specifications, as follows:
E Name specifies the name of the Server Response test.
E Start test o
on
n this page when selected, starts the Server Response test
on this page.
E End test on this page when selected, ends the Server Response test on
this page.
125
The Time tab is available when End test on this page is selected. The Time
tab contains the following options:
time e-Tester will wait to receive a response from the server during
playback.
time e-Tester will wait to receive a response from the server during
playback.
126
1.
Select the page where you want to start (or end) a Server Response
test in the Visual Script.
2.
Select Tests
Tests Insert Server Response Test or click the toolbar button.
3.
On the Page tab, enter a name for the Server Response test in the
Name field.
4.
Select the Start test on this page checkbox if you want to start the
Server Response test on the current page.
- or e-Tester User Guide
Clear the Start test on this page checkbox if you started the Server
Response test on a different page.
5.
Select the End test on this page checkbox if you want to end the
Server Response test on the current page.
- or Clear the End test on this page checkbox if you want to end the Server
Response test on a different page.
6.
7.
8.
Click OK.
e-Tester adds the test case to the Visual Script between the Address
and Frame nodes.
2.
3.
4.
Click OK.
2.
3.
127
This dialog box lets you specify the comparison options for a form
element of a page.
Name enter a name for this test case. A test case name is required.
Specify Comparison Condition specifies the comparison condition to use
E Current Value shows the value of the Form element property when
'
Property Must Always be Empty verifies that the selected property
is empty.
'
Property
Property Must Always be a Number verifies that the selected
128
'
Property Must Always be a String verifies that the selected
'
Property Must Always be in Range verifies that the selected
'
Property Must Satisfy Expression verifies that the selected
property contains a value that evaluates True. You must specify the
expression to evaluate.
'
Property Must Equal Vari
Variable
able verifies that the selected property
contains a value that equals a Data Bank variable value. You must
specify the variable in an expression.
2.
3.
4.
5.
6.
7.
8.
129
9.
Click OK.
The Form Element test case is added under the Element node of the
Form in the Visual Script.
130
E Selecting Tests Insert Test Scriptlet After adds a Test Scriptlet that
When you add a Test Scriptlet to a Visual Script, the e-Tester browser
pane changes to a script-editing pane where you can define your own
VBScript code as a Test Scriptlet. The following illustration shows the
script-editing pane:
Script Editing Pane
Test Scriptlet
in Visual Script
When you first add a Test Scriptlet, the script-editing pane only contains
the text Your Script Here. You add your Test Scriptlet code and
comments to define the test.
131
Enter your VBScript code into the script-editing pane. Click Done and
Save the Visual Script when finished editing the Test Scriptlet.
The code for Test Scriptlet test cases can access the Document Object
Model of the Web page, evaluate and modify elements and properties,
access Data Bank values, and change Visual Script page navigation
programmatically based upon specific conditions.
e-Tester includes the e-Test Programming Interface (e-PI), which provides
several methods and properties that you can use when developing Test
Scriptlets. Chapter 10 of this manual explains how to use Test Scriptlets to
extend your Visual Script testing capabilities. Appendix B contains a
reference for the e-PI methods and properties that you can use in your
custom code.
132
This dialog box lets you define an External Callout test case. The
External Callout Test has the following options:
External Callout OLE Server information about the OLE server, as follows:
E Program Id the ProgID key under the CLSID entry of the Registry for
133
Invoke Callout Function specifies when to invoke the external callout test.
E Before playback of page when selected, the tests are called before
E After playback of page when selected, the tests are called after
E Page Identifier shows the page title from the Visual Script.
Specify an external callout server. This is an ActiveX .dll that you can
build using Visual Basic, Visual C++, Visual J++ or any other
environment that offers support for building ActiveX .dll files.
Note: e-Tester contains a sample Visual Basic Project that you can
customize to create an ActiveX .dll to use for External Callout tests.
The filename is rswsample.vbp and is located in the RSWSource
Add your testing logic in the two methods of the server. There are
two methods that your server must support.
E beforePagePlay
E afterPagePlay
The code for External Callout test cases can assess the Document
Object Model of the Web page, evaluate and modify elements and
properties, access Data Bank values, and change Visual Script page
navigation programmatically based upon specific conditions.
Chapter 10 explains the requirements for creating an ActiveX .dll to
use for External Callout tests. e-Tester also includes the e-Test
Programming Interface (e-PI) that provides several methods and
properties that you can use when developing External Callout tests to
extend your Visual Script testing capabilities. Appendix B contains a
reference for the e-PI methods and properties that you can use in your
custom code.
134
3.
Add an External Callout test case to the page in the Visual Script
where you want to perform your custom tests.
2.
3.
Search for the name of your .dll and determine its CLSID.
4.
5.
Under the CLSID entry, look for the ProgID key. The ProgID is the
name of the server to specify in the e-Tester External Callout test case.
2.
Select Tests Insert External Callout Test or click the toolbar button.
3.
Enter the name of the External Callout OLE Server in the Program
Id field.
4.
Click the Test Server button and make sure the Status field returns
Available.
5.
6.
Click OK.
135
External Callout OLE Server specifies the default server and status, as
follows:
E Program Id enter the Program ID of the OLE Server to use as the
default server.
E Status shows the current status of the OLE server. Either Available or
Unavailable.
E Error an error string returned if the OLE server is Unavailable.
E Test Server tests for the OLE Server and returns the Status. The test
136
Select the page node of the Visual Script where you want to add the
custom test.
137
2.
Click the right mouse button and select Goto Page. e-Tester opens
the page in the Browser pane.
When you start the Custom Test Wizard, the wizard creates the custom
test for the page in the Browser pane.
the custom test in the Visual Script node and in the VBA environment.
Test Error String
String specifies an error string to be returned to e-Tester if an
error occurs during a custom test. This error string will be included in the
Visual Script node for the custom test if an error occurs in the test. The
value of the errDescription property in the Visual Basic code also will
be included in the Visual Script node.
Where should the test execute? specifies the target Visual Script
138
played back in e-Load Thick Client mode for limited load testing.
e-Load Thick Client mode uses a full-featured browser control that
includes access to the Document Object Model (DOM) of the Web
page or application. e-Load Thick Client mode requires more system
resources and is less scalable than Thin Client mode.
The Current Path is the object model location of the Web page object
currently beneath the mouse cursor. The objects in the browser pane
change color to highlight the current Web page object.
The Visual Script pane shows the Web page hierarchy and shows the
location of the element, currently below the mouse pointer, in the page
source.
Chapter 5: Using Test Cases
139
Select a Web page element in the Browser pane or the Visual Script pane
using the mouse. The object model path is added to the Select Object
Model Element window as the Selected Path. The selected element path
appears in the window in the form window[1].htmlTag[#].
Click Accept Selected in the Object Model Element window.
tag and index number in the Web page in source order. For example, the
third image tag in the Web page source is represented as img[3].
Choose what you want to test specifies what part of the element you
the selected Web page element appear in the list. The Custom Test
Wizard lets you specify tests for specific Web page element properties.
140
If you select Properties, select the property of the Web page element to test
from the list. The Property selection of the Select path and property panel
has the following options:
Select the element property to use for the test from the list.
141
Clicking the arrow button opens the Path Generation Rules options of the
Select path and property panel. The following options are available:
Selecting New opens a dialog box for defining a new path generation rule:
142
E Select attributes used to locate the element within the parent selects
the HTML tags attribute to use to locate the selected tag within the
parent tag(s). Click the button to add the selected attribute to the list.
When you add a new rule, the Custom Test Wizard defines the rule in the
Path Generation Rules list.
The Selected Element is updated to include the parent tags and attribute.
The Selected Element path uses the following format:
window[index].parent.[index].element(attribute=
'value')[index]
143
options:
E True when selected, the test passes if the property value is True during
E False when selected, the test passes if the property value is False
144
E Equal to the databank variable below when selected, the test passes if
the property value is equal to the Data Bank variable value during
playback of the Visual Script. Select a Data Bank variable name. Data
Bank variables must be defined using the Data Bank Wizard in
e-Tester before they are available for selection.
E [Data Bank Variable Name] lists the defined Data Bank variables
property.
145
E [Operator] specifies the comparison operator to use for the test. The
Description
>
Greater than
<=
Equal to
>=
<
Less than
!=
Not equal to
From
to the Data Bank variable value during playback of the Visual Script.
Select a Data Bank variable name. Data Bank variables must be
defined using the Data Bank Wizard in e-Tester before they are
available for selection.
E [Data Bank Variable Name] lists the Data Bank variables defined in
If you select the From operator, the Custom Test Wizard adds a field for
specifying the date range:
146
options:
E [Current value] shows the current numeric value of the selected
property.
E [Operator] specifies the comparison operator to use for the test. The
Description
>
Greater than
<=
Equal to
>=
<
Less than
147
Operator
Description
!=
Not equal to
From
If you select the From operator, the Custom Test Wizard adds a field for
specifying the numeric range:
148
String Properties
The String options appears if you selected a string property of the selected
property.
matches the following specifies the type of match to use for the test. The
current value of the text string during playback of the Visual Script.
E Wildcard the test passes if the text or property value matches the
current value of the Visual Basic Like operator pattern during playback
the current value of the Regular Expression pattern during playback of the
Visual Script.
149
Wizard Generated
Code
Project Explorer
Window
The Visual Basic Project Explorer window contains the default project for
the Visual Script. The project name is the same name as the Visual Script.
The Custom Test Wizard also generates Visual Basic code based upon
your selections and the type of Web page element property. The wizardgenerated code is added to the Visual Script VBA project as a new
document. The document name is the name defined in the Welcome
panel of the Custom Test Wizard.
150
The code for custom tests is added to the performTest event of the
RSWVBATest object. Each custom test created by the Custom test Wizard
includes the RSWVBATest object with the following events and properties:
Property/Event
Description
errDescription
errNumber
performTest
RSWApp
151
The Current Path is the object model location of the Web page object
currently beneath the mouse cursor. The objects in the browser pane
change color to highlight the current Web page object.
The Visual Script pane shows the Web page hierarchy and shows the location
of the element, currently below the mouse pointer, in the page source.
Select a Web page element in the Browser pane or the Visual Script pane
using the mouse. The selected element path appears in the window in the
form window[1].htmlTag[#].
Select Copy El
Element
ement Path in the Select Object Model Element window.
The object model path is copied to the Windows clipboard. You can paste
the element path into Visual Basic code to use with the
GetElementByPath method.
Return to ee-Tester.
152
Chapter 6
) next
153
2.
2.
The HTML from the recorded Web page (master) is shown in blue text.
The HTML from the Web page used for playback (tested) is shown in
red text.
e-Tester uses a heuristic program to determine and exclude machinegenerated components of Web page source that can change dynamically
(i.e. session IDs) when visiting a site. The machine-generated components
will not be tested and will not cause red flags to be generated in the Visual
154
Script during playback. Any HTML that is excluded from the playback
comparison is shown in purple text.
The Different HTML node only appears in the Visual Script after playback
if there are differences found in the HTML for a Web page.
2.
The Script from the recorded Web page (master) is shown in blue text.
The Script from the Web page used for playback (tested) is shown in red text.
The Different Script node only appears in the Visual Script after playback if
there are differences found in the JavaScript or VBScript for a Web page.
Any JavaScript/VBScript that is excluded from the playback comparison
is shown in purple text.
155
156
2.
Click the right mouse button and select Ignore (type) Test Failure
from the popup menu.
Nodes with ignored test failures are identified with red and yellow
flags ( ) next to the node.
Nodes with striped flags (
the Visual Script tree.
2.
Click the right mouse button and select Ignore (type) Test from the
popup menu.
Nodes with ignored tests are identified with a yellow flag (
to the node.
) next
157
Test # the test number within an e-Tester session. Each playback of the
Visual Script increments the Test #.
Time the time and date of the test action.
Iteration the iteration number if playback iterations were used.
Action the playback action. The Action column always shows the
beginning and ending time and date of the Visual Script playback. Other
information can be listed in the Action column depending upon the
settings in the result log options and playback options. You can set the
options in the Report section of Options Results Log to show failures
only or all details. You can also set the playback options to automatically
run the Resource Validation test after playback. The Action column also
shows the results of the Resource Validation test.
Elapsed Time the amount of time required to initiate a request (for
example, user input) and receive a response from the server and display
the page components (HTML, images, links, etc.).
Result the test result: passed or failed.
Summary shows additional information about failed tests.
See the next section, Analyzing Results Log Timelines, for additional
information about the Time and Elapsed Time information.
158
Request
Action Initiated
through Browser
(User Input)
Response
Display Page
Components
(HTML, Images
Links, etc. )
Test Cases
Automatic Tests
Cases (HTML
Validation, Forms
Links, Images, etc.)
Timeline 1
Elapsed Time
Timeline 2
Timeline 3
Think Time
Time Spent Between
Actions Intiated
through Browser
(Recorded Delay)
The Request component is the moment a user action is initiated from within
the browser to the server. This can be a click on a link to another page, a
form submission, or other action that requires a response from the server.
The Response component is the amount of time it takes for the server to
process the request and return all components of the requested page.
The Test Cases component is the amount of time it takes to perform the
default existence and validation tests of the Visual Script plus the time it
takes to complete any user inserted test cases (for example text matching
or server response test cases).
The Think Time component is the actual amount of time that occurred
between page navigation when the Visual Script was recorded. Visual
Scripts can be played back with or with out the recorded delay by setting
or clearing the Play with Recorded Delay Between Pages check box in the
Playback Options.
159
When analyzing Results logs, you can use the timestamp to determine the
amount of time required to playback a specific page or the entire Visual Script.
Overall Visual Script Time (10:59:57 - 10:59:34 = 23 seconds)
The timestamp times include the Request, Response, Test Case, and
Recorded Delay times of the playback run (either Timeline 2 or Timeline 3
on the previous page).
You can also evaluate the effects of the recorded delay on page playback.
The following example shows the log with the results from two different
playbacks of the same Visual Script. The first playback (Test# 1) did not
use the recorded delay for playback. The second playback (Test# 2) did
use the recorded delay (think time).
Without Recorded Delay (10:59:57 - 10:59:34 = 23 seconds)
160
This dialog box lets you specify the Results log file name and mode.
Log File Name specifies how to name the Results log file, as follows:
E Default to Script Name when selected, the Results log file name is the
same name as the current Visual Script file with a .LOG extension.
E Default to Workspace Name when selected, the Results log file name
E Use Specified Name when selected, you can specify any name. Enter
name of the workstation is added to the beginning of the log file name.
with new results data each time the Visual Script is played back.
E Do Not Log when selected, e-Tester does not write results data to the
log file. The results data still appears in the Results log pane of e-Tester.
161
Report specifies the type of data to include in the Results log, as follows:
E Failures Only when selected, e-Tester includes only failure indications
E All Details when selected, e-Tester includes all testing details in the
Results log.
2.
Select Edit Expand Page to view the Visual Script for the page.
The Test # must be from the last playback cycle in the Results log.
162
e-Tester open the Resource Validation window with the results from the
last time the Resource Validation test was run.
2.
3.
Select File Export Output Log As. e-Tester opens a dialog box for
saving the file.
2.
You can use any ASCII editor to view or print the file. The following is an
example of a Results log exported to an ASCII file:
Test 1 Time:12:36:57PM 2/3/00 Action:BEGIN TESTING SCRIPT:Script2
Test 1 Time: 12:36:58 PM 2/3/00 Action: [1] Welcome
Elapsed Time: 0.07 secs
Result:
Failed
Summary:
Different HTML
Test 1 Time: 12:36:58 PM 2/3/00 Action:[2] Kitchens
Elapsed Time: 0.14 secs
Result:
Failed
Summary:
Different HTML
Test 1 Time: 12:36:58 PM 2/3/00 Action:[3] Lighting
Elapsed Time: 0.15 secs
Result:
Passed
Test 1 Time:12:36:58PM 2/3/00 Action:END TESTING SCRIPT:Script2
163
2.
2.
3.
164
2.
Select the log file from the Select Results Log list. The Results log file
contains the following information:
Select Results Log specifies the name of the log file to view.
Session # shows the number of the e-Tester session..
Test # shows the test number within an e-Tester session. Each
playback of the Visual Script increments the Test #.
Time shows the start time and date for the test action.
Iteration shows the iteration number if playback iterations were
used.
Action shows the playback action.
Elapsed Time shows the amount of time required to test the page.
Result shows the test result: passed or failed.
Summary shows additional information about failed tests.
Chapter 6: Working with Test Results
165
Export exports the Results log to a file. Select the type of file (Text
or HTML).
2.
Select the log file from the Select Results Log list.
3.
3.
Click Export. e-Tester opens a dialog box for saving the file.
4.
166
1.
Open and play back the Visual Script for which you want to view
results.
2.
e-Tester opens the a new Web browser window containing the results.
e-Tester also saves the results into an HTML file using the name
VisualScriptName.htm.
The browser version of the results log contains the same information as in
the e-Tester Results Log Viewer plus a d-Tracker column. Log entries
that indicate Warning or Failure will include a Submit button for
transferring information into the d-Tracker issue management system.
d-Tracker is a separate product from the e-TEST suite, which you may or
may not have installed.
2.
3.
167
This dialog box lets you view the current error recovery settings and select
the error recovery options to change.
Test the test categories for error recovery:
E Default Page Test recovery options for pages that failed any of the
E Server Response Test recovery options for Server Response test case
failures.
E Text Matching Test recovery options for Text Matching test case
failures.
E Form Element Test recovery options for Form Element test case
failures.
E External Callout Test recovery options for External Callout test case
failures.
E Resource
Resource Validation Test recovery options for Resource Validation test
failures.
E New Content recovery options for pages that have new content.
E Missing Content recovery options for pages that are missing content.
E Browser Errors recovery options for errors that occur in the Browser.
E Severe Content Errors recovery options for pages that have had a large
E False playback continues with the next page in the Visual Script if an
error occurs.
Skip Remaining Iterations the current setting for each type of test:
E True playback halts after the current iteration is finished if an error occurs.
E False playback continues the current and subsequent iterations if an
error occurs.
E False e-Monitor is not notified that an error occurred in the Visual Script.
169
2.
3.
Click the Modify Actions button to open the Modify Error Options
dialog box.
4.
5.
Click OK.
You can change the settings for each type of test.
170
Chapter 7
Using e-Spider
The e-Spider automatically searches the HTML pages that make up your
Web site or Web application. The e-Spider allows you to quickly and
easily generate a Visual Script from a set of linked pages without having to
manually navigate the pages.
The e-Spider will not follow any links that use a protocol other than Http or
Https. It automatically ignores links such as News, Telnet, FTP, MailTo, etc.
The e-Spider automatically dismisses confirmation dialogs box that
appear for links to downloadable executables or documents and marks
these links with yellow flags. The e-Spider does not list links to
documents in other domains and will not follow them.
Note: If you have a very large site or application, it is not advisable to try
to spider the entire site from the home page due to time and system
resource issues. A more efficient approach is to identify related sections of
your site or application and create a set of modular Visual Scripts by first
manually navigating to a specific section and then starting e-Spider.
171
Status Line
The Title bar of the window shows the program name followed by the
current Map file name and the status.
File Menu
The File menu options let you work with e-Spider Map files. The
following options are available:
New Site Map clears the e-Spider tree window for creating a new map file.
Open Site Map opens a dialog box for selecting the map file to open.
Save Site Map saves the current e-Spider tree to a file. If you have not
saved the file previously, a dialog box opens for specifying the name.
Save Site Map As saves the current e-Spider tree to a new file name. A
172
Edit Menu
The Edit menu options let you specify the pages to include when
spidering a site. The following options are available:
Ignore Page the page and all pages linked below the page will not be
included when you run the e-Spider and/or generate a Visual Script.
Ignore All Other Pages all other pages in the e-Spider tree will not be
Run Menu
The Run menu options let you start, stop, and continue the e-Spider. You
can also generate Visual Scripts. The following options are available:
Start starts searching pages that make-up the Web site or application.
The starting point is the URL specified in the Address drop down list.
Continue continues searching the pages.
Generate Visual Script generates a Visual Script based upon the pages in
Tools Menu
The Tools menu options let you access other tools in the e-TEST suite.
The following options are available:
e-Tester switches focus to the e-Tester window.
173
e-Load starts e-Load for running load and performance testing on Web
applications.
e-Monitor starts e-Monitor for creating defining jobs that can playback
Help Menu
These options let you access the e-Spider on-line help.
Address Line
The Address line shows the top level URL where e-Spider starts scanning
Web pages. By default, e-Spider enters the URL of the page currently
displayed in the Browser pane of the e-Tester main window. However,
you can also type a URL manually.
Description
Description
Status Bar
The status bar provides status and current progress information. The
mode determines the information that appears in the status bar. The status
bar panes from left to right are as follows:
Spider Status shows the current status of e-Spider.
Current Site shows the current location.
Count shows the number of pages navigated by e-Spider.
Starting e-Spider
To start the e-Spider:
1.
Load the Web page or application to start from into the e-Tester
Browser pane.
2.
3.
In the e-Spider window, select Run Start or click the toolbar button.
175
4.
2.
Stopping e-Spider
To stop the e-Spider:
1.
176
1.
2.
3.
Click the Web page Submit button. The Web page Submit button
can have any text label, such as Register, Search, or Finished.
4.
5.
The new page is appended one level below the form page in the
e-Spider tree.
After you generate a Visual Script from the e-Spider tree, the form
elements and data appear under the Parameters node of the Visual
Script page.
2.
177
Start e-Spider.
2.
3.
4.
5.
Click OK.
Exclude URLs will exclude locations relative to the URL of the starting
page. In order to exclude /subfolder/doc.htm, enter subfolder/doc.htm, not
http://www.mycompany.com/subfolder/doc.htm.
178
Start e-Spider.
2.
3.
4.
5.
6.
Click OK.
2.
) next to the
2.
Select Edit Ignore All Other Pages or click the toolbar button.
All pages except the current page are marked with yellow flags.
179
Load the Web page or application to start from into the Browser
pane.
2.
3.
4.
5.
6.
180
7.
Select Run Generate Visual Script or click the toolbar button. The
new Visual Script appears in e-Tester.
8.
9.
2.
If the tree has not been saved before, a dialog box opens for entering
a file name.
3.
2.
3.
Click Yes to save the tree to a map file or No to discard the tree.
2.
181
Select File Export Site Map As. e-Spider opens a dialog box for
saving the file.
2.
You can use any ASCII editor to view or print the file. The following is an
example of a Site Map tree exported to an ASCII file:
- "EMPIRIX|HOME" - www.empirix.com/
"EMPIRIX|HOME" - index.html
"EMPIRIX|COMPANY|ABOUT EMPIRIX" - company/index.html
- "EMPIRIX|PRODUCTS|e-TEST SUITE" - products/index.html
- "EMPIRIX|PRODUCTS|e-TESTER" - products/etester.html
- products/etesterfeature.html
- products/tester.pdf
- "EMPIRIX|PRODUCTS|e-MONITOR"-products/emonitor.html
- products/emonitorfeature.html
- products/monitor.pdf
- "EMPIRIX|PRODUCTS|e-LOAD" - products/eload.html
- products/eloadfeature.html
- products/eload.pdf
"EMPIRIX|PRODUCTS|FEATURES" -products/feature.html
- products/t_suite.pdf
- "EMPIRIX|NEWS & EVENTS|NEWS" - news/index.html
182
Chapter 8
e-Tester
Variables
Parameters lists the parameters recorded into the Visual Script from
forms, JavaScript, or other user input controls. The Parameters list has
two columns:
E Name lists the parameter name and Visual Script page number.
E Recorded Value shows the data value recorded to the Visual Script.
Variables specifies variable names to be mapped to the parameters from
the Visual Script. You can add variable names and mappings manually
using the Add Variable and Add Mapping buttons. You can also add
variables and parameters using the AutoAuto-Map button. Variable names are
used to bind to fields in a Data Bank file.
E Add Variable button opens a dialog box for defining a variable name.
Type in the name of a variable and click OK.
184
E Delete Variable button deletes the selected variable. Select the name
to delete from the Variable list and click this button. A confirmation
dialog box appears. Click OK to delete the variable. Deleting a variable
also deletes any mapping that it may have with the parameters and any
binding with fields from the Data Bank file.
E Add Mapping button maps a variable to a parameter from the script.
All recorded parameters that are mapped will be replaced with the
values from the Data Bank files if the variable is bound to a field. If
variables are mapped but not bound to fields the recorded value will be
used during playback.
E Variable Name shows the variable name from the Variable list.
E Variable Value shows the value of the variable from the current
E Recorded Value shows the value of the parameter as recorded into the
Visual Script.
E Tested Value shows the value of the parameter that was last supplied to
the parameter during playback. In most cases, this will be the variable
value.
E Fetch Record advances the record pointer to the next record in the
Data Bank file and updates the list view controls with the data from the
current record.
E Goto Record opens a dialog box for specifying the record to retrieve
from the Data Bank file and updates the list view controls with the data.
185
Data Bank specifies the Data bank file containing data to use as
Bank file. The default directory for e-Tester Data Bank files is the
\DataBank directory under the installation directory (C:\Empirix\eTEST
is the default).
E Clear button clears the Data Bank file selection, any fields in the Data
Bank Fields list, and any bindings that the variables may have to fields.
Variables lists the variable names mapped to the parameters nodes in the
Visual Script.
Data Bank Fields lists the field names from the Data Bank file.
Bindings shows which variables are bound to which fields from the Data
Bank file. The columns in the Bindings list view are as follows:
E Variable name shows the names of the variables mapped to
186
E Field Name shows the name of the Data Bank field to which the
variable is bound.
E Field Value shows the current value of the field from the Data Bank
E Field Number shows the number for the field (field1, field2, will have
E Current
Current Record From Databank shows current record that e-Tester is
E Fetch Record advances the record pointer to the next record in the
Data Bank file and updates the list view controls with the data from the
current record.
E Goto Record opens a dialog box for specifying the record to retrieve
from the Data Bank file and updates the list view controls with the data.
E binds the Data Bank variables to the fields from the Data Bank file.
You can then add your own comma-delimited data to the Data Bank file.
187
2.
Enter field names on the first line of the file separated by commas (no
spaces).
3.
4.
Example:
FirstName,LastName,Mail,Phone
John,Smith,JohnS@empirix.com,x993
Mary,Ellen,MaryE@empirix.com,x742
188
2.
Enter data into the form and click the Submit button.
3.
4.
Stop Recording.
5.
6.
7.
Map and bind variables in the Data Bank Wizard to the Visual
Script parameters and Data Bank fields.
2.
3.
4.
189
The Data Bank Wizard opens a dialog box for defining a variable.
5.
6.
7.
Click OK.
8.
9.
10.
190
The Data Bank Wizard adds the mapping to the Mappings list.
Variable
Mapping
List
11.
Description
"text"
function
variableName
191
Expression
Description
formula
You can use the following e-Tester functions to return values to internal
Data Bank variables:
Function
Description
CurRecord
CurDatabank
CurScript
CurWorkspace
CStr(expression)
Date
Day(string)
DBVarValueOf
192
Function
Description
Description
ElementValueOf
element.
Now
Hour(string)
IterationCount
Month(string)
Time
WeekDay(string)
Year(string)
193
The Cstr function is used to convert the time and date values to String
data types.
194
Map to
Parameter
Variable Name
Expression
field1
iVar_field1
field2
iVar_field2
elementValueOf("form1","elm1")
field3
iVar_field3
iVar_field1 + iVar_field2
You then map the internal variable to the Visual Script parameter for the
form field where you want to enter the incremented value.
Use the Iterate playback option when you play back the Visual Script. Set
the Iterate options to Use Current Record Only and set the Iterate Over
Record value to the number of times you want the Visual Script to play
back, as follows:
Playback
with
Data Bank
Set
Current
Only
Set
Iterations
The values passed to the form field over three iterations of the Visual
Script playback will be as follows:
login1
login2
login3
195
You can define and map multiple internal variables to pass values to more
than one form field. For example, you could define two internal variables
and map each variable to a different Visual Script parameter, as follows:
Map to
Parameter
Variable Name
Expression
login
iVar_login
pwd
iVar_pwd
The values passed to the form fields over three iterations of the Visual
Script playback will be as follows:
login1
password1
login2
password2
login3
password3
Using the above method, you do not need to bind the variables to fields in
a Data Bank file.
The following example expression concatenates a text string with the
record number from an attached Data Bank file to increment a value
passed to a Visual Script parameter:
"login" & Cstr(CurRecord)
The following table shows an example of the defined variable and the
expression used to pass a Data Bank value:
196
Variable Name
Type
Expression
eVar_login
external
N/A
iVar_login
internal
DBVarValueOf("eVar_login") &
Cstr(CurRecord)
The following table shows an example of the Data Bank binding to the
field name in the Data Bank file (db_login):
Variable Name
Mapping
Binding
iVar_login
login
None
eVar_login
None
db_login
Make sure you have mapped variables to parameters in the Visual Script.
2.
If necessary, select Edit Data Bank Wizard or click the toolbar button.
3.
4.
5.
Select a Data Bank file and click Open. A list of field names from the
Data Bank file appears in the Data Bank Fields list.
6.
197
7.
8.
Click Add Binding. The Data Bank Wizard adds the binding to the
Bindings list.
Variable
Binding
List
198
9.
10.
Click OK to save the settings and close the Data Bank Wizard.
e-Tester User Guide
Use the Data Bank Wizard to map and bind Visual Script
parameters to fields in a Data Bank file.
2.
3.
Set Which
Data Bank
Records
Set #
of Iterations
Through
Range
4.
5.
Specify the range of Data Bank records to use during playback of the
script in the Start at Record and End at Record fields. You can enter
First and Last, respectively, to iterate playback through the entire
Data Bank.
6.
Set the number of iterations through the Data Bank in the Iterate over
Range field.
7.
Click Iterate.
e-Tester plays back the entire Visual Script (all pages) using all of the
specified records for each iteration. If you have a Data Bank with 5
records and iterate over the range 2 times, e-Tester plays back the
Visual Script (all pages) a total of 10 times twice for each record.
199
Use the Data Bank Wizard to map and bind Visual Script
parameters to fields in a Data Bank file.
2.
3.
4.
5.
6.
7.
Specific
Record
Set #
of Iterations
Over
Record
8.
9.
Set the number of iterations for the record in the Iterate Over Record
field.
10.
Click Iterate.
e-Tester plays back the entire Visual Script (all pages) using the
specified record for each iteration.
200
2.
Type the URL of the Web page with a Java applet in the Address line
and press Enter.
3.
4.
5.
6.
7.
8.
201
202
9.
Select the Textchange Data Bank Variable Name item in the Attributes
tab.
10.
Click the Data Bank button. e-Tester opens a dialog box for
specifying a variable name.
11.
Enter the name of the Data Bank variable to use. This variable name
should be the same name as the variable you specify in the Data Bank
Wizard to connect the text field to a Data Bank field.
12.
Click OK to close the Specify Data Bank Variable Name dialog box.
The variable name appears in the Value column of the Attributes tab.
13.
14.
15.
16.
17.
Enter the name of the variable that you specified in the Attributes tab
and click OK.
203
204
18.
19.
Click Select.
20.
21.
Select the name of the Data Bank field to bind to the variable.
22.
23.
Click Fetch Record to cycle through the Data Bank field values.
24.
25.
2.
Type the URL of the Web page with a Java applet in the Address line
and press Enter.
3.
4.
5.
6.
205
206
7.
8.
9.
Select the Key Data Bank Variable Name item in the Attributes tab.
10.
Click the Data Bank button. e-Tester opens a dialog box for
specifying a variable name.
11.
Enter the name of the Data Bank variable to use. This variable name
should be the same name as the variable you specify in the Data Bank
Wizard to connect the TextField to a Data Bank field.
12.
Click OK to close the Specify Data Bank Variable Name dialog box.
The variable name appears in the Value column of the Attributes tab.
13.
14.
15.
207
208
16.
17.
Enter the name of the variable that you specified in the Attributes tab
and click OK.
18.
19.
Click Select.
20.
21.
Select the name of the Data Bank field to bind to the variable.
22.
23.
Click Fetch Record to cycle through the Data Bank field values.
24.
25.
209
Play
Iterate
210
Chapter 9
E Specify user name and password information for testing sites that
211
Present or Absent).
Text the text string or variable name(s) to compare in the Web page or
application source.
Add opens the Modify Text Matching Test dialog box for creating a new
test case. The test case is added to the library, but not the Visual Script. You
can select Text Matching test cases from the library when you insert a test
case into the Visual Script.
Modify opens the Modify Text Matching Test dialog box for editing
the values of an existing test case. Select the test case to edit and click
Modify.
Remove removes a Text Matching test case from the library. Select the
test case to remove and click Remove.
2.
Click Add.
3.
4.
5.
6.
7.
1.
212
2.
3.
4.
2.
3.
Click Remove.
4.
Click OK.
Defined
Dialogs
Dialog
Information
Details
213
File Menu
These menu options let you save dialog information and exit the Dialog
Manager. The following options are available:
Save saves the dialog information.
Exit exits the Dialog Manager.
Edit Menu
The Edit menu options let you capture or delete dialog box information
and specify the priority of the dialog boxes listed in the Dialog Manager.
Delete deletes the selected dialog box information from the Dialog
Manager list.
Move Up moves the currently selected dialog box information up one
Text information for the dialog box below the mouse cursor. Click the
mouse button on the selected dialog box to capture the information into
the Dialog Manager.
214
Dialog
Caption
Dialog
Text
Action to
Perform
Evaluation
Priority
Priority specifies the priority in which the Dialog Manager checks the
215
Dialog Class
Dialog Text
Action to
Perform
Dialog Caption
Dialog Appearance
Causes Fatal Error
When Checked
You specify the Class, Caption, Text, Action to perform, and if the dialog
box is considered a fatal error.
You can capture the Class, Caption, and Text information from any dialog
box that is currently displayed on the screen using Edit Select Dialog.
Class enter the class of the dialog box. An asterisk indicates all classes or
characters.
Caption enter the caption text of the dialog box. An asterisk indicates all
characters.
Text enter the text of the dialog box. An asterisk indicates all characters.
216
Action select the action to perform if the dialog box appears during
playback of a Visual Script. You can enter Data Bank variable names and
special keyboard actions into the Action field. Enclose the Data Bank
variable names within double angle-brackets, for example
<<varUserName>> and <<varPassword>>. Enter keyboard actions
using the form {KEY}, for example {TAB}.
Fatal when selected, the appearance of the dialog box is considered a
fatal error.
Change Selected Item applies any changes to a currently defined dialog
2.
3.
Select File Save or click the toolbar button to save the changes.
2.
Select Edit Select Dialog or click the toolbar button. The Dialog
Manager options a dialog box showing the Class, Caption, and Text
information of the dialog box beneath the mouse cursor.
217
3.
Click the left mouse button on the dialog box to capture. The Class,
Caption, and Text information is captured directly from the displayed
dialog box into the Dialog Manager.
4.
5.
Select or clear the Fatal check box if the appearance of the dialog box
should indicate a fatal error.
6.
7.
Select File Save or click the toolbar button to save the changes.
2.
3.
4.
218
5.
6.
Select or clear the Fatal check box if the appearance of the dialog box
should indicate a fatal error.
7.
8.
Select File Save or click the toolbar button to save the changes.
2.
3.
4.
5.
6.
7.
Select or clear the Fatal check box if the appearance of the dialog box
should indicate a fatal error.
8.
9.
Select File Save or click the toolbar button to save the changes.
2.
3.
4.
Select File Save or click the toolbar button to save the changes.
219
The dialog box lists the currently defined user names and passwords and
has the following columns and options:
Realm the full Uniform Resource Locator (URL) for the Web
application that requires a user name and password.
User Name the user name value to pass to the Web application.
Password the password value to pass to the Web application.
Map UserName to Variable shows the name of the Data Bank variable,
Authentication information.
Remove removes the currently selected Authentication from the list.
220
Adding a Record
To add a record to the Authentication Manager:
1.
2.
3.
4.
(Optional) Enter Data Bank variable names for the user name and
password. Enclose the Data Bank variable names within double angle
brackets, as in <<varUserName>> and <<varPassword>>.
5.
Click OK.
Modifying a Record
To modify a record in the Authentication Manager:
1.
2.
3.
4.
5.
(Optional) Edit Data Bank variable names for the User Name and
Password. Enclose the Data Bank variable names within double
angle brackets, as in <<varUserName>> and <<varPassword>>.
6.
Click OK.
Removing a Record
To remove a record from the Authentication Manager:
1.
2.
3.
4.
Click OK.
221
workspace.
Existing Workspaces lists the currently defined workspaces.
222
Deleting Workspaces
Selecting Admin Delete Workspace opens the Workspace dialog box:
of data including Visual Script files and results logs. Be sure you really want
to do this before proceeding.
Select the workspace to delete and click OK.
e-Tester prompts you to confirm the deletion. Click Yes in the confirmation
dialog box to delete the workspace and associated files or click No or Cancel
to cancel.
This dialog box lets you delete a Visual Script from the current workspace.
Select the Visual Script file to delete and click OK.
e-Tester prompts you to confirm the deletion. Click Yes in the confirmation
dialog box to delete the Visual Script or click No or Cancel to cancel.
Chapter 9: Using Admin Options
223
Deleting Logs
Selecting Admin Delete Log opens the Delete Log dialog box:
This dialog box lets you delete a Results log from the current workspace.
Select the Results log to delete and click OK.
e-Tester prompts you to confirm the deletion. Click Yes in the confirmation
dialog box to delete the Results log or click No or Cancel to cancel.
224
Chapter 10
Visual Scripts record and playback pages and how the e-PI can access the
navigation between Visual Script pages.
About Thick Client and Thin Client
Client explains the differences between
document objects.
Getting Data Bank Values explains how the e-PI works with Data Banks.
Using Tests Scriptlets explains how to use VBScript from within an
225
Creating External Callout Tests explains how to use the e-PI to create
with the e-Test suite for using external programs to control e-Tester.
226
6
5
4
3
2
VBScript
Code
VBA IDE
VB
C++
Java
VB
C++
Java
227
User-defined test cases can be added to Visual Scripts with a few mouse
clicks. e-Tester includes the following types of user-defined test cases that
can be inserted quickly and easily into Visual Scripts:
E Text matching verifies that specific text is either present or absent in a
page. For example, you may want a test that verifies a search result
page contains the text Your search returned the following matches, or
that another page does not contain the message Server Error.
example, you may want a test that checks the content of a Web page
form field.
E Server response time checks the server response time for a specific
part of a transaction. For example, you may want a test that measures
and verifies the server response time for a specific Web transaction as
seen by an end user.
Visual Scripts can also mask tests that are not important or are expected to
indicate changes to the Web page or application.
Chapter 10: Using the Programming Interface
229
FirstName,LastName,Mail,Phone
Bush,George,GHWB@,x1989
Carter,James,JEC@,x1977
Clinton,William,WJC@,x1993
Ford,Gerald,GRF@,x1974
Nixon,Richard,RMN@,x1969
Johnson,Lyndon,LBJ@,x1963
Kennedy,John,JFK@,x1961
Reagan,Ronald,RWR@,x1981
Data Banks allow the test to run through several iterations with different
sets of data, and optionally to perform result comparisons based also on
variable data. Like the first level of extensibility, adding user-defined Test
Cases and connecting Data Banks to the Visual Script are done without
the need for programming.
231
232
The following illustration shows a sample Visual Script with Visual Basic
code added to the Custom Programmability node:
4
Visual Scripts
with Custom
Visual Basic
Code
(VBA IDE)
= RSWApp.om.getTopDocument(0)
topdoc.links.Length
= 0 To numlinks - 1
topdoc.links(lIndex).href
233
You can use the Wizard-generated code as is or add your own customized
code to perform additional specialized tests.
234
External Callout Test Cases can be inserted into the Visual Script and can
be executed before playback of a Visual Script page or executed after
playback of a Visual Script page.
External Callout Tests provide the same level of testing extensibility as
Test Scriptlets and integrated Visual Basic with the added flexibility of the
choice of the development language and environment. The e-PI methods
provided let you access document objects, find and manipulate Web page
elements and properties, access Data Banks, and change page navigation.
Custom ActiveX .dlls that you create as Callout tests must support two
e-Tester methods, BeforePagePlay and AfterPagePlay, which are explained
later in this chapter. e-Tester comes with a sample Visual Basic Project
that you can use as a starting point for creating your own tests.
Chapter 10: Using the Programming Interface
235
Option Explicit
Dim WithEvents m_tester As mint.ProgX
Private Sub Main()
Call Initialize
End Sub
Private Sub Initialize()
Set m_tester As New mint.ProgX
End Sub
Private Sub cmdStartMint_Click()
m_tester.play.openWorkspace "RSWDemo"
m_tester.play.openScript "tutor1"
m_tester.play.doScript
End Sub
236
See the External Program Control section of this chapter for more
information about creating external programs to drive e-Tester. See the
Command Reference in Appendix B for more information about the
available properties, methods, and events in the e-PI to control e-Tester.
237
Test Scriptlets
Test Scriptlets are VBScript code snippets that are an internal part of the
e-Tester Visual Scripts. You create custom Test Scriptlets using e-Tester.
Test Scriptlets can be inserted into the Visual Script as tests that get
executed before playback of a Visual Script page or executed after
playback of a Visual Script page.
Test Scriptlets use the rswObject object of the e-PI. Variables are variants.
Execute BeforePagePlay
Navigate to Page
Load Page into Browser
Compare Differences
Perform Existence Tests
Perform Validation Tests
Perform User Test Cases
Execute AfterPagePlay
239
With Custom VBA test, each page in the Visual Basic project includes a
BeforePlay event that accesses the BeforePagePlay method and an
AfterPlay event that accesses the AfterPagePlay method.
With External Callout test cases, you add the BeforePagePlay and
AfterPagePlay methods to your own ActiveX .dll that you can create using
standard programming languages, such as Visual Basic, Java, or C++.
You then insert an External Callout test case into the Visual Script that
references the Callout Server of the ActiveX .dll.
The code used for Test Scriptlets, Custom VBA tests, and External
Callout test cases can assess the Document Object Model of the Web
page, evaluate and modify elements and properties, access Data Bank
values, and change Visual Script page navigation programmatically based
upon specific conditions.
240
241
The following HTML sample shows how a page is defined in the HTML
source.
<HTML>
<HEAD>
<TITLE>Document Title</TITLE>
</HEAD>
<BODY>
<DIV>
<P><A HREF="contents.html">Contents</A></P>
</DIV>
<IMG SRC="contents.gif">
</BODY>
</HTML>
BODY
IMG
DIV
P
A
HTML represents the top-level document with the child objects HEAD
and BODY. The HEAD object is a child of HTML and contains the child
property TITLE. The BODY object is the child of HTML and contains
the child objects IMG and DIV, which are sibling objects. The DIV object
is the child of BODY and contains the child P, which in turn is the parent
of A.
For example, in the above hierarchy, the inner HTML of the document
object can be represented as follows:
document.body.innerhtml
242
Multiple objects of the same type in a Web page are grouped into
collections. Objects within a collection can also be represented using dot
notation and a zero-based index value, as follows:
document.images(0)
This represents the first image in the collection of images on the Web
page in source order. When developing custom tests for use with e-Tester
Visual Scripts, you can use the object references to locate individual
objects within a Web page. For example, you can use the object model to
determine the number of links on a page.
Document objects contains a variety of collections, elements, methods,
and properties that can be accessed and manipulated using the Document
Object Model and e-Tester e-PI. The e-PI provides methods for getting
the Document Object Model of Web pages recorded to a Visual Script.
However, not all objects have defined collections in the Dynamic HTML
Object Model. See Appendix C for lists of collections, elements, and
properties that can be used with HTML and Dynamic HTML.
This represents a mouse click on the first HREF link on the Web page in
source order.
243
When developing custom tests for use with e-Tester Visual Scripts, you can
access the properties to query or set attributes of a Web pages elements in
the Visual Script. The properties are useful for checking various aspects of
the Web page. You can query an element property using the following dot
notation and a script variable:
varname = documentObject.child.property
You can set an element property using the following dot notations:
documentObject.child.property = value
documentObject.Collection[("name")](index).property =
value
This gets the value of the HREF property of the first link on the page, in
source order, and assigns it to the script variable myval. The following
example custom VBA code displays a list of all of the links in a recorded
Web page in the e-Tester results log pane:
'setup the variables
Dim topdoc As Object
Dim numlinks As Long, linkIndex As Long
Dim hrefVal As String, indexVal As String
'get the document object using e-PI
Set topdoc = RSWApp.om.getTopDocument(0)
'determine how many links on the page
'from the "length" property of the object model
numlinks = topdoc.links.length
'loop through the links and display link index and
'HREF value in e-Tester results log pane
If numlinks <> 0 Then
For linkIndex = 0 To numlinks - 1
hrefVal = topdoc.links(linkIndex).href
indexVal = "Link(" + Cstr(linkIndex) + ")"
Call RSWApp.WriteToLog(indexVal, "", hrefVal)
Next
End If
244
The following example VBA code gets a value from a Data Bank and
passes it to the Web page Java function validdate. If the validdate
function returns True, the date value is valid, otherwise an error number
and description are passed to e-Tester.
Dim doc As Object, retval As Boolean, mydate
Set doc = RSWApp.om.GetTopDocument(0)
Call RSWApp.GetDatabankValue("datevariable", mydate)
retval = doc.parentwindow.validdate(mydate)
If Not retval Then
err.number=9999
err.description="not a valid date"
End If
245
Description
FindDoc
FindElement
GetTopDocument
Once an object variable has been set in the Test Scriptlet or External
Callout program, you can query or change HTML element properties
programmatically.
246
You can use dot notation programming to access specific properties, such
as the page title, Uniform Resource Locator, and the length of links or
forms collections. For example the following code snippet sets the
document title, URL, and links collection length to the variables
docTitle, docUrl, and linksLength, respectively:
Dim topdoc As Object, docTitle As String
Dim docUrl As String, linksLength As Long
Set topdoc = RSWApp.om.GetTopDocument(0)
docTitle = topdoc.title
docUrl = topdoc.url
linksLength = topdoc.links.length
See Appendix C for lists of collections, elements, and properties that can
be used with HTML and Dynamic HTML document objects.
247
You can leave out the optional parameters specified as any value using
"*", as follows:
Set framedoc=RSWApp.om.FindDoc("Cont*",,,parentdoc)
If the Visual Script page using the Test Scriptlet or Callout test was
recorded from a sub frame and you want to get the document object of the
current Visual Script page in a sub frame, you do not need to specify the
parent document object. The following code snippet gets the document
object of the document with the <TITLE> "Introduction" to the
variable framedoc:
Dim framedoc As Object
Set framedoc=RSWApp.om.FindDoc(,"Intro*")
You can use the object model to set the value of Form INPUT elements.
For example, the following code snippet sets the value of the FirstName
INPUT element to Chris:
myElement.value="Chris"
You can also use the object model to get the outer HTML value. For
example, the following code snippet sets the outerhtml property to the
variable myElementval:
myElementVal=myElement.innerhtml
You can also use the object model to perform mouse clicks on HTML
elements. The following code snippet finds the INPUT element of
248
249
is used to store the text string returned from the HTML source.
You can find pattern matches in the HTML source of a specific frame by
including the frame name in the MatchHtml method, as follows:
resultb=RSWApp.matchHtml(myMatch, "<A href=",">","main")
When specifying the left and right string patterns to match, you can use
the question mark (?) and asterisk (*) wildcard characters. The question
mark matches zero or one character. The asterisk matches zero or more
characters. You use the wildcard character in place of character patterns
that are part of the HTML source. The following example shows how the
question mark and asterisk can be used to search for strings containing
quotation marks in the HTML source:
resultb=RSWApp.matchHtml(myMatch, "href=?index*",">","")
index to locate forms on a page and elements within the forms. The index
is based on the source order of the FORM elements and each child
INPUT element of each form in the Web page.
250
Description
GetDatabankValue
SetDatabankValue
Before you can access Data Bank values (from a file) using the e-PI, you
must create a Data Bank file containing the data you plan to use as part of
testing. Data Bank files are comma-delimited ASCII files with the field
names as column headers on the first line of the file. Subsequent lines of
the file contain data. e-Tester uses the \DataBank subdirectory of the
installation directory (C:\Empirix\eTEST is the default) as the default
location for Data Bank files.
After you create a Data Bank file, you must also map and bind the Data
Bank field names to Visual Script variables using the Data Bank Wizard.
You can set Data Bank internal variables using the SetDatabankValue
method. Internal Data Bank variables are mapped to Visual Script
parameters.
251
You can set up a Data Bank file to populate multiple Web page Form
fields, as follows:
FirstName,LastName,Mail,Phone
John,Smith,JohnS@empirix.com,(781) 993-8500
Mary,Ellen,MaryE@empirix.com,(781) 993-8501
If a data value contains a comma, place quotation marks around the value,
as follows:
John,Smith,"Anytown, MA",(781) 993-8500
You can also combine Form field input values with multiple check box or
option button settings, as follows:
Search,Option1,Option2,Option3
Lamps,True,False,False
Lamps,False,True,False
Lamps,False,False,True
Plants,True,False,False
Plants,False,True,False
Plants,False,False,True
Paints,True,False,False
Paints,False,True,False
Paints,False,False,True
After you create a Data Bank file, you must map and bind the Data Bank
field names to Visual Script variables.
252
name of the Visual Script variable that is mapped and bound to the Data
Bank field name using the Data Bank Wizard. The "var_Search"
variable is defined as an external variable in the Data Bank Wizard.
The above code snippet uses the FindElement method of the e-PI to
locate the Form INPUT elements. You can also use the object model and
dot notation programming to set the values explicitly. The following code
snippet gets the Data Bank value for a form field and three option
Chapter 10: Using the Programming Interface
253
buttons. The code then sets the form element value, the option button
values and clicks the Submit button using the object model.
Dim topdoc As Object, searchText As String
Dim radio1, radio2, radio3
'Indicate that we will replace the navigation
'for the previous page
RSWApp.replaceNav
'Get
Call
Call
Call
Call
254
255
E Selecting Tests Insert Test Scriptlet After adds a Test Scriptlet that will
When you add a Test Scriptlet to a Visual Script, the e-Tester browser
pane changes to a script-editing pane where you can define your own
VBScript code. The following illustration shows the script-editing pane:
Script Editing Pane
Test Scriptlet
in Visual Script
When you first add a Test Scriptlet test, the script-editing pane only
contains the text Your Script Here. You enter your Test Scriptlet code
and comments to define the test.
256
Enter your VBScript code into the script-editing pane. Test Scriptlets use
the rswObject object of the e-PI. Variables are variants. Click Done and
Save the Visual Script when finished editing the Test Scriptlet.
Appendix B contains a reference for the e-PI methods and properties that
you can use in your custom code. The following section provides
additional information about creating and debugging Test Scriptlets.
257
258
259
You can use the available features of the debugger to evaluate the Test
Scriptlet code.
Note: Any edits you make to fix problems in Test Scriptlet code must be
made in the e-Tester script-editing pane. The Test Scriptlets are saved as an
internal part of the e-Tester Visual Scripts, which the debugger cannot save.
The debugger provides options for stepping through code. The following
sections provide basic information about using the step and view local
variable capabilities. For additional information about using the
Microsoft Script Debugger, refer to the Microsoft online help topics for
the debugger.
Stopping Debugging
While debugging in the Microsoft Script Debugger, e-Tester is in a
suspended state. The current Visual Script playback is halted at the point
where the Test Scriptlet started the debugger. You must stop the
Microsoft Script Debugger to restore e-Tester to a running state and
continue the Visual Script playback.
260
Click Yes to debug the Test Scriptlet. The debugger then displays a
message asking if you would like to open a project for debugging:
Click No. The debugger opens the Test Scriptlet as a VBScript script
block with e-Tester as an attached process:
261
You can use the available features of the debugger to evaluate the Test
Scriptlet code.
Note: Any edits you make to fix problems in Test Scriptlet code must be
made in the e-Tester script-editing pane. The Test Scriptlets are saved as an
internal part of the e-Tester Visual Scripts, which the debugger cannot save.
The debugger provides options for stepping through code, viewing
variable values, setting watches, and viewing threads and processes. The
following sections provide basic information about using the step and
view local variable capabilities. For additional information about using the
Microsoft Development Environment, refer to the Microsoft online help
topics for the debugger.
262
263
cursor on the line where you want execution to halt and select this option.
Step Into steps into the function or sub procedure. Since Tests Scriptlets
in e-Tester do not support functions or sub procedures, this command
simply executes the current script command.
Step Over steps over the current command and executes the next
265
Right-click the Custom Page Programmability node and select Edit VBA
Code to open the default Visual Basic project for the Visual Script in the
VBA environment.
Code Window
Project Explorer
Window
Properties
Window
Locals Window
The Visual Script project contains a document for each Web page
recorded to the Visual Script and a document for the entire script
The Project Explorer window also includes a Shared Code project. The
Shared Code project can contain code that will be used by all Visual
Scripts. You can write your own custom Visual Basic code in any of the
Visual Script page documents or in the Shared Code project.
The Custom Test Wizard also creates documents in the project specific to
settings selected in the Wizard. The document name is the same name as
the name defined in the Custom Test Wizard Welcome screen.
266
Shared Project
The Shared Workspace project lets you create custom Visual Basic code
that is shared by all e-Tester Visual Scripts. Each Visual Script project
automatically includes a reference to the Shared Workspace project. Any
code in the Shared Workspace project is automatically available for use by
all new Visual Scripts.
267
Description
afterPlay
beforeAction
beforePlay
errDescription
errNumber
RSWApp
268
Description
endPlay
errDescription
errNumber
RSWApp
scriptClose
scriptOpen
scriptRename
scriptSave
startPlay
269
Variables
Variables are typed and must be declared. Variables can be procedure-
Variables can also be shared between Visual Scripts. Declare the variable
using the Public statement in the (Declarations) procedure of the
(General) object of SharedModule, as follows:
Public myGlobalVar As String
Public Function MySharedFunc (ret As String)
'
'Procedure code
End Function
270
Error Handling
When creating Custom VBA tests, you can add custom error handling to
procedures using the On Error statement, Visual Basic Err object, and
e-PI errDescription and errNumber properties, as follows:
Private Sub RSWVBATest_afterPlay()
On Error GoTo ERRLBL
'Code for Sub procedure
ERRLBL:
'Some Error Handling Code
'and the following return values
errDescription = Err.Description
errNumber = Err.Number
End Sub
Select File Inherit VBA From. A dialog box opens for selecting the
Visual Script from which to inherit the saved VBA code.
2.
When you inherit VBA code from a saved Visual Script, the VBA code
from the saved Visual Script completely replaces any VBA code in the
current Visual Script.
Chapter 10: Using the Programming Interface
271
3.
4.
5.
6.
directory. If your Visual Scripts use shared code and you move Visual
Scripts between workstations, you should also make sure to move the
code in the rsw.vba file. You can either export the code or copy the
rsw.vba file.
272
Click Debug. The debugger opens the Custom VBA code in break mode
in the VBA IDE:
You can use the available features of the VBA IDE to evaluate the Custom
VBA test code.
Note: Any edits you make to fix problems in Custom VBA code are
273
The RSWApp object is part of the e-PI and has several properties that you
can access programmatically using Custom VBA tests. The following
illustration shows the expanded RSWApp tree.
Using Breakpoints
You can set breakpoints in Custom VBA tests to halt execution at specific
points in the Visual Basic code. When you set breakpoints and play back a
Visual Script in e-Tester, e-Tester automatically opens the VBA IDE at the
breakpoint location.
cursor on the line where you want execution to halt and select this option.
Step Into steps into the function or sub procedure.
Step Over steps over the current command and executes the next
275
Basic Procedure
There are three steps to perform to create external callout tests, as follows:
1.
Specify an external callout server. This is an ActiveX .dll that you can
build using Visual Basic, Visual C++, Visual J++ or any other
environment that offers support for building ActiveX .dll files.
2.
Add your testing logic in two methods of the server as explained below.
3.
Add an e-Tester External Callout test case to the pages in the Visual
Script where you want to perform your custom tests.
276
The RSWServer class module in the sample project includes two the
methods beforePagePlay and afterPagePlay, which you can modify
to add your own testing logic.
You can edit the code to add your own testing logic using Visual Basic
and the e-PI.
277
You can edit the code to add your own testing logic using Visual Basic
and the e-PI.
278
References, and then select the Rsw IProgs Lib check box.
When creating code for External Callout tests, you must explicitly
reference the rswObject for each e-PI property or method, as follows:
Dim pageNum Long
pageNum = rswObject.play.currentPageNumber
or:
Dim topdoc As Object
Set topdoc = rswObject.om.GetTopDocument
2.
Search for the name of your dll. The regedit or regedt32 program
will provide you with its ClassID.
3.
Once you have the ClassID, search for the classid in the registry.
4.
Under the ClassID entry, look for the ProgID key. The ProgID is the
name of the server to specify in the e-Tester External Callout test case.
279
280
The following sections explain how to create e-Tester objects and start the
applications using Visual Basic.
281
open a workspace, and playback a Visual Script. You can use the features
and capabilities of your development environment to drive e-Tester
functionality. Appendix B lists the properties, methods, and events available
in the e-PI that you can use to access e-Tester features.
282
ProgT/ProgX Property
Class
Gen
IProg
Om
IProgOm
Play
IProgPlay
VB Project Reference
Webanlyst.exe
RSWMint.exe
mint
RswIprogLib.dll
Where:
objectName is any user defined object name.
server is the name of the e-Tester COM server application. The server
name for the full e-Tester application is webanlst. The server name for
the minimum e-Tester application is mint.
class is the name of the object. The class name for the full e-Tester
application is ProgT. The class name for the minimum e-Tester
application is ProgX.
The following example creates the object variable f_tester as the object
name for the full e-Tester:
Option Explicit
Dim WithEvents f_tester As webanlst.ProgT
The following example creates the object variable m_tester as the object
name for the minimum e-Tester:
Option Explicit
Dim WithEvents m_tester As mint.ProgX
Chapter 10: Using the Programming Interface
283
Opening Workspaces
Once you create and set the object, you can use the features of the e-PI
and your development environment to open a workspace. The following
sample code opens the RSWDemo workspace on the button click:
Private Sub cmdOpenWorkspace_Click()
f_tester.play.openWorkspace "RSWDemo"
End Sub
284
Closing e-Tester
You can use the Quit method of RswIProgslib.IProg to close the full
e-Tester application, as follows:
objectName.gen.quit
Where:
objectName is the user defined object name for the webanlst.ProgT
object.
285
Where:
objectName is the user defined object name for the mint.ProgX or
webanlst.ProgT objects.
The following example clears the object variable f_tester as the object
name for the full e-Tester:
Set f_tester = Nothing
The following example clears the object variable m_tester as the object
name for the minimum e-Tester:
Set m_tester = Nothing
286
Appendix A
Information Codes
100
Continue
101
Switching Protocols
Success Codes
200
OK
201
Created
202
Accepted
203
NonNon-Authoritative Information
287
204
205
206
No Content
The server has fulfilled the request but does not need to return
new information.
Reset Content
The server has fulfilled the request and the client should reset
the document view which caused the request to be sent to allow
the user to initiate another input action.
Partial Content
The server has fulfilled the partial GET request for the
resource.
Redirection Codes
300
Multiple
Multiple Choices
301
Moved Permanently
302
303
304
Not Modified
305
Use Proxy
306
288
Not Used
307
Temporary Redirect
Failure Codes
400
Bad Request
Unauthorized
402
Payment Required
403
Forbidden
404
Not Found
405
406
407
408
Request TimeTime-out
409
Conflict
410
Gone
289
411
412
Length Required
Precondition Failed
413
414
415
416
Expectation Failed
501
290
Not Implemented
Implemented
Internet Codes
502
503
504
505
Bad Gateway
Service Unavailable
Internet Codes
Internet Error Codes
12001
Out of Handles
12002
Timeout
12003
Extended Error
12004
Internal Error
12005
Invalid URL
12006
Unrecognized Scheme
291
Internet Codes
12007
12008
12009
Invalid Option
A request to InternetQueryOption or InternetSetOption specified
12011
12012
Shutdown
12013
12014
12015
292
Incorrect Password
12016
Invalid Operation
12017
Operation Canceled
12018
12019
Internet Codes
12020
Not Pro
Proxy
xy Request
12021
12022
12023
No Direct Access
12024
No Context
12025
No Callback
12026
Request Pending
12027
Incorrect Format
12028
12029
Cannot Connect
12030
Connection Aborted
12031
Connection Reset
12032
Force Retry
12033
293
Internet Codes
12034
Need UI
12035
Not Defined
This error code is not defined in WININET.
12036
Handle Exists
12037
12039
12040
12041
Mixed Security
12042
294
12043
12044
12045
Invalid CA
12046
Internet Codes
12047
12048
12049
Dialog Pending
12050
Retry Dialog
12051
Not Defined
This error code is not defined in WININET.
12052
12053
12111
12112
Transfer in Progress
The FTP operation was not completed because the session was
aborted.
No Passive Mode
Protocol Error
295
Internet Codes
12131
Not File
12132
Data Error
12133
End of Data
12134
Invalid Locator
12135
12136
12137
12138
Unknown Locator
296
12150
12151
Downlevel Server
12152
12153
Invalid Header
12154
12155
Internet Codes
12156
Redirect Failed
12157
12158
12159
12160
Not Redirected
12161
12162
Cookie Declined
12163
Disconnected
12164
Server Unreachable
12165
12166
12167
12168
12169
297
Internet Codes
12170
12171
Additional Information
For additional information about HTTP Status Codes and the Win32
Internet API Constants, see the following Web resources:
Section 10 of the Hypertext Transfer Protocol HTTP/1.1
Request for Comments: 2616:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
298
Appendix B
Programming Reference
This appendix provides a programming reference to the e-Test
Programming Interface (e-PI). The reference contains detailed
information for using the type libraries, and specific objects, methods,
properties, and events provided for programming Test Scriptlets, Custom
VBA tests, External Callout tests, and external program control.
default). The following section lists the available properties, methods, and
events for each class.
299
ProgT Class
The following table lists the properties and events of the ProgT class of
Webanlst.Exe.
300
Property/Event
Description
Gen
IterationsBegin
IterationsEnd
Om
PageBegin
PageEnd
Play
PlaySuspended
ScriptBegin
ScriptEnd
TransitionEnd
RswEobj Class
The following table lists the methods of the RswEobj class of Webanlst.Exe
and RswMint.Exe.
Method/Property
Description
ErrDescription
ErrNumber
FindInHtml
Gen
GetCurrentVuId
GetDataBankValue
GetDocuments
GetHtml
the Browser.
GetOriginalHtml
GetParameters
IterationCount
LastDialogText
LastDialogTitle
301
302
Method/Property
Description
MatchPattern
Nav
Om
PageUid
Play
Postdata
ScriptName
SetBehaviour
SetDataBankValue
TestLog
Url
ProgX Class
The following table lists the properties and events of the ProgX class of
RSWMint.Exe.
Property/Event
Description
Gen
Om
PageBegin
PageEnd
Play
PlaySuspended
ScriptEnd
TransitionEnd
303
RswEobj Class
The properties and methods are the same as listed for the RswEobj class
of WebAnlst.exe.
IProg Class
The following table lists the methods of the IProg class of the RswIprogs
Type Library.
304
Method
Description
Back
GetCookies
Halt
MatchHtml
Navigate
Method
Description
Quit
SetCookies
StateOf
IProgAction Class
The following table lists the properties of the IprogAction class of the
RswIprogs Type Library.
Property
Description
Cancel
EventClass
EventElem
EventType
Index
305
IProgNav Class
The following table lists the methods and properties of the IProgNav class of
the RswIprogs Type Library.
Method/Property
Description
ChangeNavigation
EventContext
GetParameterValues
GetRecordedPostdata
GetRecordedUrl
SetParameterValues
TimeToNavigate
IProgOM Class
The following table lists the methods of the IProgOM class of the RswIprogs
Type Library.
306
Method
Description
Description
FindDoc
FindElement
Method
Description
FindElements
FindElementValue
FireEvent
GetElementByPath
GetTopDocument
GetTopDocuments
IProgPlay Class
The following table lists the methods and properties of the IProgPlay class of
the RswIprogs Type Library.
Method/Property
Method/Property
Description
AmIWAPScript
ChangeCurrentPage
CurrentPageNumber
DoPage
307
308
Method/Property
Method/Property
Description
DoRV
DoScript
GetDataBank
GetDataBankSize
GetDataBankValue
GotoPage
HasCustomTests
InsertNav
IterateScript
Length
Nav
OpenScript
OpenWorkspace
ReplaceNav
SaveScript
SetCurrentDataBank
Record
Method/Property
Method/Property
Description
SetDataBankValue
SetOptions
Literal
-1
PLAYOUTCOME_UNKNOWN
PLAYOUTCOME_FINE
PLAYOUTCOME_TIMEDOUT
PLAYOUTCOME_STOPPED_WB_INTERACTION
PLAYOUTCOME_STOPPED_BY_USER
PLAYOUTCOME_END_OF_AUTOPLAY
PLAYOUTCOME_END_OF_MANUALPLAY
PLAYOUTCOME_STOPPED_BY_SHELL
PLAYOUTCOME_STOPPED_BY_SHELL_USER
PLAYOUTCOME_STOP_ONERR
PLAYOUTCOME_EXCEPTION
10
PLAYOUTCOME_XPRESSED_VARS_FAILED
11
PLAYOUTCOME_SUSPENSION_ABORTED
12
PLAYOUTCOME_IE_DIALOG
13
PLAYOUTCOME_NAVIGATION_FAILED
14
PLAYOUTCOME_FAILED_TESTS
309
Literal
15
PLAYOUTCOME_IEI_NOT_FOUND
16
PLAYOUTCOME_SECURITY_PROBLEM
17
PLAYOUTCOME_IGNORABLE_END
18
PLAYOUTCOME_PAGE_CHANGED
Error Constants
The following table lists the error constants of the RswIprogs Type Library.
310
Literal
&H80040000
PROGERR_OK
&H80040001
PROGERR_TIMEOUT
&H80040002
PROGERR_FAILED_CONTENT_TESTS
&H80040003
PROGERR_FAILED_RESOURCE_VALIDATION
&H80040004
PROGERR_SHELL_FAILED_COMMAND
&H80040005
PROGERR_SHELL_BAD_SYNTAX
&H80040006
PROGERR_UNEXPECTED_IE_DIALOG_BOXES
&H80040007
PROGERR_INTERNAL_ERROR
&H80040008
PROGERR_PLAYOUTCOME_BROWSER_NOT_FOUND
&H80040009
PROGERR_PLAYOUTCOME_XPRESSED_VARS_FAILED
&H8004000A
PROGERR_PLAYOUTCOME_NAVIGATION_FAILED
&H8004000B
PROGERR_USER
Status Constants
The following table lists the status constants of the RswIprogs Type Library.
#
Literal
ET_IDLE
ET_NAVIGATING
ET_PLAYING_PAGE
ET_PLAYING_SCRIPT
311
RSWApp Class
The following table lists the methods and properties of the RSWApp class of the
VBADLL Type Library.
312
Method/Property
Description
ChangeNavigation
CurrentPageNumber
ExecutingProduct
FindInHtml
GetCookies
GetDataBankValue
GetHtml
GetParameterValues
GetRecordedPostdata
GetRecordedUrl
GoBack
GotoPage
Method/Property
Description
InsertNav
LastDialogtext
LastDialogTitle
MatchHtml
Navigate
Om
ReplaceNav
ScriptLength
SetCookies
SetDataBankValue
SetParameterValues
TimeToNavigate
WriteToLog
313
RSWAppOM Class
The following table lists the methods of the RSWAppOM class of the VBADLL
Type Library.
314
Method
Description
FindDoc
FindElement
FindElements
FindElementValue
FireEvent
GetElementByPath
GetTopDocument
GetTopDocuments
RSWVBAPage Class
The following table lists the events and properties of the RSWVBAPage class of
the VBADLL Type Library.
Property/Event
Description
AfterPlay
BeforeAction
BeforePlay
ErrDescription
ErrNumber
RSWApp
RSWVBAScript Class
The following table lists the events and properties of the RSWVBAScript class
of the VBADLL Type Library.
Property/Event
Description
EndPlay
ErrDescription
ErrNumber
RSWApp
315
Property/Event
Description
ScriptClose
ScriptOpen
ScriptRename
ScriptSave
StartPlay
RSWVBATest Class
The following table lists the events and properties of the RSWVBATest class of
the VBADLL Type Library.
316
Property/Event
Property/Event
Description
ErrDescription
ErrNumber
PerformTest
RSWApp
VBAGlobalObject Class
The following table lists the methods of the VBAGlobalObject class of the
VBADLL Type Library.
Method
Description
DoRegExpMatch
Product Constants
The following table lists the constants of the VBADLL Type Library.
#
Literal
PRODUCT_TESTER
PRODUCT_THICK
PRODUCT_THIN
317
AfterPlay Event
AfterPlay Event
Purpose
Syntax
object_AfterPlay()
Parameter
object
Description
Member of
VBADLL.RSWVBAPage
Applies To
U Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
AfterPlay event is used to run custom page tests for Visual Script
pages. You enter the code in the Visual Basic for Applications
environment using the e-Tester Custom Page Programmability node.
The AfterPlay event executes any code in the procedure after
playback of the Visual Script page.
e-Tester automatically creates the RSWVBAPage object and AfterPlay
event for each Visual Script page in the Visual Basic environment. You
can add your own custom code to the event procedure.
The afterPlay event procedure is the equivalent of a Test Scriptlet
After test and the AfterPagePlay method in External Callout tests.
Example
See Also
318
AmIWAPScript Method
AmIWAPScript Method
Purpose
Syntax
object.property.AmIWAPScript
Parameter
object
Description
property
Member of
RswIprogs.IProgPlay
Applies To
# Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example 1
319
Back Method
Example 2
Option Explicit
'External Program Control
'Minimum Tester
'VB Project>References = mint (RSWMint.exe)
Dim WithEvents m_tester As mint.ProgX
Private Sub cmdCreateandStart_Click()
Dim resultb
Set m_tester = New mint.progX
m_tester.play.openWorkspace "RSWDemo"
m_tester.play.openScript "tutor1"
m_tester.play.doScript
resultb = m_tester.play.amIWAPScript
End Sub
See Also
Back Method
Purpose
Syntax
object.property.back()
Parameter
object
Description
property
Member of
320
RswIprogs.IProg
Back Method
Applies To
# Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
# Thin Client
Remarks
agent.
Example 1
Example 2
Option Explicit
'External Program Control
'Minimum Tester
'VB Project>References = mint (RSWMint.exe)
Dim WithEvents m_tester As mint.ProgX
'Full Tester
'VB Project>References = RSW e-Tester 4.0
'(Webanlst.exe)
Dim WithEvents f_tester As webanlst.ProgT
Private Sub cmdCreateandStart_Click()
Dim resultb
Set m_tester = New mint.progX
m_tester.play.openWorkspace "RSWDemo"
m_tester.play.openScript "tutor1"
m_tester.play.doScript
resultb = m_tester.gen.back()
End Sub
See Also
321
BeforeAction Event
BeforeAction Event
Purpose
Syntax
object_BeforeAction(ByVal actionObj As
RswIprogs.IProgAction)
Parameter
object
Description
Member of
VBADLL.RSWVBAPage
Applies To
U Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
The BeforeAction event is used to run custom tests for form actions
on Web pages in Visual Script. Actions on Web pages in Visual
Scripts are listed in the Address node Properties. You can use the
BeforeAction event and the actionObj properties to access
elements on which user actions occurred.
You enter the code in the Visual Basic for Applications environment
using the e-Tester Custom Page Programmability node. The
BeforeAction event executes any code in the procedure before each
form action (e.g. mouse click) occurs on a Web page in a Visual
Script.
e-Tester automatically creates the RSWVBAPage object and
BeforeAction event for each Visual Script page in the Visual Basic
environment. You can add your own custom code to the event
procedure.
322
BeforeAction Event
Example
actIndex As Long
actEvntType As String
actEventElem As String
actElemType As String
SubmitButton As Object
See Also
323
BeforePlay Event
BeforePlay Event
Purpose
Syntax
object_BeforePlay()
Parameter
object
Description
Member of
VBADLL.RSWVBAPage
Applies To
U Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
BeforePlay event is used to run custom page tests for Visual Script
pages. You enter the code in the Visual Basic for Applications
environment using the e-Tester Custom Page Programmability node.
The BeforePlay event executes any code in the procedure before
playback of the Visual Script page.
See Also
324
Cancel Property
Cancel Property
Purpose
Syntax
object.cancel
Parameter
object
Description
Member of
RswIprogs.IProgAction
Applies To
U Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example
actIndex As Long
actEvntType As String
actEventElem As String
actElemType As String
SubmitButton As Object
325
Cancel Property
Example
(cont'd)
See Also
326
ChangeCurrentPage Method
ChangeCurrentPage Method
Purpose
Changes the current page in the Visual Script and plays back the
specified page.
Syntax
object.property.changeCurrentPage(newpageId)
Parameter
object
Description
property
newpageId
Member of
RswIprogs.IProgPlay
Applies To
# Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
327
ChangeCurrentPage Method
Example 1
Example 2
Option Explicit
'External Program Control
'Minimum Tester
'VB Project>References = mint (RSWMint.exe)
Dim WithEvents m_tester As mint.ProgX
Private Sub cmdCreateandStart_Click()
Dim resultb
Set m_tester = New mint.progX
m_tester.play.openWorkspace "RSWDemo"
m_tester.play.openScript "tutor1"
m_tester.play.doScript
resultb = m_tester.play.changeCurrentPage(2)
End Sub
See Also
328
328
ChangeNavigation Method
ChangeNavigation Method
Purpose
Changes the navigation associated with the current Visual Script page.
Syntax
object.property.ChangeNavigation(target$,url$,
[postdata$], [headers$])
Parameter
object
Description
property
target$
url$
postdata$
headers$
Member of
RswIprogs.IprogNav, VBADLL.RSWApp
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
# Thin Client
329
ChangeNavigation Method
Remarks
Example 1
Example 2
See Also
330
GetDataBankValue, PostData
e-Tester User Guide
ChangeNavigation Method
ChangeNavigation Method
Purpose
Member of
Webanlst.RswEobj, mint.RswEobj
CurrentPageNumber Property
Purpose
Syntax
object.property.currentPageNumber
Parameter
object
Description
property
Member of
RswIprogs.IprogPlay, VBADLL.RSWApp
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
331
CurrentPageNumber Property
Remarks
Example 1
Example 2
Example 3
Option Explicit
'External Program Control
'Minimum Tester
'VB Project>References = mint (RSWMint.exe)
Dim WithEvents m_tester As mint.ProgX
'Full Tester
'VB Project>References = RSW e-Tester 4.0
'(Webanlst.exe)
'Dim WithEvents f_tester As webanlst.ProgT
Private Sub cmdCreateandStart_Click()
Dim pagenum As Long
Set m_tester = New mint.progX
m_tester.play.openWorkspace "RSWDemo"
m_tester.play.openScript "tutor1"
m_tester.play.doScript
pagenum = m_tester.play.currentPageNumber
List1.AddItem "Current Page: " + pagenum
End Sub
See Also
332
None
DoPage Method
DoPage Method
Purpose
Plays back the specified page of the Visual Script and then stops.
Syntax
object.property.doPage(pageId)
Parameter
object
Description
property
pageId
Member of
RswIprogs.IProgPlay
Applies To
U Test Scriptlets
U Custom VBA Tests
Applies To
# Thick Client
U Thin Client
Remarks
Example
Option Explicit
'External Program Control
'Minimum Tester
'VB Project>References = mint (RSWMint.exe)
Dim WithEvents m_tester As mint.ProgX
'Full Tester
'VB Project>References = RSW e-Tester 4.0
'(Webanlst.exe)
'Dim WithEvents f_tester As webanlst.ProgT
333
DoRegExpMatch Method
Example
(cont'd)
See Also
DoRV, DoScript
DoRegExpMatch Method
Purpose
Syntax
DoRegExpMatch(testString$,testPattern$)
Parameter
testString$
Description
testPattern$
Member of
VBADLL.VBAGlobalObject
Applies To
U Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example
334
DoRV Method
Example
(cont'd)
See Also
GetElementByPath, PerformTest
DoRV Method
Purpose
Runs the Resource Validation test for the specified Visual Script.
Syntax
object.property.doRV(results, [scriptname$],
[workspace$])
Parameter
object
Description
property
335
DoRV Method
Parameter
results
scriptname$
workspace$
Description
Member of
RswIprogs.IProgPlay
Applies To
U Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example
Option Explicit
'External Program Control
'Select VB Project>References = mint (RSWMint.exe)
Dim WithEvents m_tester As mint.ProgX
'Full Tester
'VB Project>References = RSW e-Tester 4.0
'Webanlst.exe)
'Dim WithEvents f_tester As webanlst.ProgT
Private Sub cmdCreate_Click()
Set m_tester = New mint.ProgX
End Sub
Private Sub cmdDestroy_Click()
Set m_tester = Nothing
End Sub
Private Sub Command1_Click()
Dim results()
m_tester.play.openWorkspace "RSWDemo"
m_tester.play.openScript "tutor1"
m_tester.play.doScript "tutor1", 2, 3
End Sub
336
DoRV Method
Example
(cont'd)
playOutcomeDescription As String, _
playMostSevereActionSet As Long, _
playMostSevereErrTypeSet As Long, _
playSumOfDurations As Long)
rvHost
rvResPath
rvCurStatus
rvErrDesc
rvResHandle
rvIntStatCode
rvStats
rvWininetErr
'Host
'Resource Path
'Current Status
'Error Description
'Resource Handle
'Internet Status Code
'Statistics
'WinInet Error Code
337
DoRV Method
Example
(cont'd)
See Also
338
DoScript, ScriptEnd
DoScript Method
DoScript Method
Purpose
Plays back the specified pages of the Visual Script and then stops.
Syntax
object.property.doScript([scriptname$],
[startPageId,] [finishPageId])
Parameter
object
Description
property
scriptname$
startPageId
finishPageId
Member of
RswIprogs.IProgPlay
Applies To
U Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
339
EndPlay Event
Example
Option Explicit
'External Program Control
'Select VB Project>References = mint (RSWMint.exe)
Dim WithEvents m_tester As mint.ProgX
'Full Tester
'VB Project>References = RSW e-Tester 4.0
'(Webanlst.exe)
'Dim WithEvents f_tester As webanlst.ProgT
Private Sub cmdCreate_Click()
Set m_tester = New mint.ProgX
End Sub
Private Sub cmdDestroy_Click()
Set m_tester = Nothing
End Sub
Private Sub Command1_Click()
m_tester.play.openWorkspace "RSWDemo"
m_tester.play openScript "tutor1"
m_tester.play.doScript "tutor1", 2, 3
End Sub
See Also
DoPage, DoRV
EndPlay Event
Purpose
Executes custom Visual Basic code after the end of Visual Script
playback.
Syntax
object_EndPlay()
Parameter
object
Description
Member of
VBADLL.RSWVBAScript
Applies To
U Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
340
ErrDescription Property
Remarks
The EndPlay event is used to run custom tests for Visual Scripts. You
enter the code in the Visual Basic for Applications environment using the
e-Tester Custom Page Programmability node. The EndPlay event
executes any code in the procedure after the end of Visual Script playback.
The EndPlay event executes only once at the end of Visual Script
playback.
e-Tester automatically creates the RSWVBAScript object and EndPlay
event for the Visual Script in the Visual Basic environment. You can add
your own custom code to the event procedure.
Example
See Also
RSWApp, StartPlay
ErrDescription Property
Purpose
Syntax
object.ErrDescription=description$
Parameter
object
Description
description$
341
ErrDescription Property
Member of
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
# Thin Client
Remarks
The description will appear in the Visual Script node and in the
Properties dialog box. The description can also be used to pass back a
test passed description when used with the setting: errNumber=0
(the default).
This property is only useful in VBA tests, a Test Scriptlet After or the
AfterPagePlay method of an External Callout test. A Test Scriptlet
Before and the BeforePagePlay method do not return any values to
e-Tester.
Example 1
Example 2
342
ErrNumber Property
errDescription = ""
errNumber = 0
Exit Sub
ERRLBL:
errDescription = Err.Description
errNumber = Err.Number
End Sub
See Also
ErrNumber
ErrNumber Property
Purpose
Syntax
object.ErrNumber=number&
Parameter
object
Description
number&
Member of
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
# Thin Client
Remarks
343
ErrNumber Property
You can define your own error numbers based upon the logic in your
custom tests. The number is returned to e-Tester and appears in the
Properties dialog box for the Test Scriptlet, VBA test, or External
Callout node. You can define a corresponding description using
ErrDescription.
This property is only useful in VBA tests, a Test Scriptlet After or the
AfterPagePlay method of an External Callout test. A Test Scriptlet
Before and the BeforePagePlay method do not return any values.
Example 1
Example 2
See Also
344
ErrDescription
e-Tester User Guide
EventClass Property
EventClass Property
Purpose
Syntax
object.EventClass
Parameter
object
Description
Member of
RswIprogs.IProgAction
Applies To
U Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example
See Also
345
EventContext Property
EventContext Property
Purpose
Gets the value of an event context using index and name ID.
Syntax
object.property.EventContext([eventIndex&],[nameId&])
Parameter
object
Description
property
eventIndex&
nameId&
Member of
RswIprogs.IProgNav
Applies To
# Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
U Thin Client
346
EventContext Property
Remarks
Returns a string containing the value of the event context. Events are
actions that occur on a page that may or may not cause navigation to
another page. For example, a mouse click is an event that can cause a
page navigation depending upon its context. If the click event is on a
link or image map the click causes a page navigation. If the click event
is in an INPUT field of a form, it does not cause page navigation.
The events correspond to the events recorded in the Address node
properties of the Visual Script. The eventIndex is the zero-based
index of the list of events in the Address node properties. The nameId
is the zero-based index of the object properties within each event. The
following is an example of how form events are represented in the
Address node of the Visual Script:
(click +window(0).form("theForm"|0).element("firstName"|1)
(click +window(0).form("theForm"|0).element("lastName"|2)
(click +window(0).form("theForm"|0).element(type="submit"|6)
See Also
None
347
EventElem Property
EventElem Property
Purpose
Syntax
object.EventElem.property
Parameter
object
Description
property
An object property.
Member of
RswIprogs.IProgAction
Applies To
U Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example
actIndex As Long
actEvntType As String
actEventElem As String
actElemType As String
SubmitButton As Object
EventElem Property
Example
(cont'd)
See Also
349
EventType Property
EventType Property
Purpose
Gets the type of event that occurred on the Web page to use for the
BeforeAction event.
Syntax
object.EventType
Parameter
object
Description
Member of
RswIprogs.IProgAction
Applies To
U Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example
actIndex As Long
actEvntType As String
actEventElem As String
actElemType As String
SubmitButton As Object
350
EventType Property
Example
(cont'd)
See Also
351
ExecutingProduct Property
ExecutingProduct Property
Purpose
Syntax
object.ExecutingProduct
Parameter
object
Description
Member of
VBADLL.RSWApp
Applies To
U Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
# Thin Client
Remarks
Example
See Also
352
FindDoc Method
FindDoc Method
Purpose
Syntax
Description
name$
title$
url$
parent
Member of
RswIprogs.IprogOM, VBADLL.RSWAppOm
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
353
FindDoc Method
Remarks
Example 1
The name$, title$, url$ parameters can use the Visual Basic Like
operator wildcard characters, as follows:
Characters
*
Description
[characterlist]
[!characterlist]
Example 2
354
FindDoc Method
Example 2
(cont'd)
Example 3
See Also
355
FindElement Method
FindElement Method
Purpose
Finds the object model for an HTML element in the current Visual
Script page using property, tag name, element range, or root element.
Syntax
object.om.FindElement ([propertyValuePattern$],
[tagName$], [propertyName$], [fromElement],
[toElement], [rootElement])
Parameter
object
Description
propertyValue
Pattern$
tagName$
propertyName$
fromElement
toElement
rootElement
Member of
356
RswIprogs.IprogOM, VBADLL.RSWAppOM
e-Tester User Guide
FindElement Method
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Returns an object.
To find the object model for the following HTML element in the
current Web page of the Visual Script:
<INPUT type="submit" value="Send Form">
Example 1
Characters
*
Description
[characterlist]
[!characterlist]
357
FindElement Method
Example 1
(cont'd)
Example 2
358
FindElement Method
Example 2
(cont'd)
End Sub
Example 3
359
FindElement Method
Example 3
(cont'd)
See Also
360
FindElements Method
FindElements Method
Purpose
Finds one or more HTML elements in the current Visual Script page
by property, tag name, element range, or root element.
Syntax
object.Om.findElements(elementArray,
[propertyPattern$], [tagName$], [propertyName$],
[fromElement], [toElement], [rootElement])
Parameter
object
Description
elementArray
propertyPattern$
tagName$
propertyName$
fromElement
361
FindElements Method
Parameter
toElement
rootElement
Description
Member of
RswIprogs.IprogOM, VBADLL.RSWAppOM
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example 1
Characters
*
Description
[characterlist]
[!characterlist]
362
FindElements Method
Example 2
Example 3
See Also
FindElement, FindElementValue
363
FindElementValue Method
FindElementValue Method
Purpose
Syntax
object.om.FindElementValue([propertyPattern$],
[tagName$], [propertyName$], [fromElement],
[toElement], [rootElement])
Parameter
object
Description
propertyPattern$
tagName$
propertyName$
fromElement
toElement
rootElement
364
FindElementValue Method
Member of
RswIprogs.IprogOM, VBADLL.RSWAppOm
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Returns a variant.
The propertyPattern$ parameter can use the Visual Basic Like
operator wildcard characters, as follows:
Example 1
Characters
*
Description
[characterlist]
[!characterlist]
365
FindElementValue Method
Example 2
parentDoc As Object
elementValue
fromElement As Object
toElement As Object
Example 3
parentDoc As Object
elementValue
fromElement As Object
toElement As Object
366
FindElementValue Method
Example 3
(cont'd)
See Also
367
FindInHtml Method
FindInHtml Method
Purpose
Syntax
object.findInHtml(string$)
Parameter
object
Description
string$
Member of
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
# Thin Client
Remarks
Example 1
368
FindInHtml Method
Example 2
See Also
FindElements, FindElementValue
369
FireEvent Method
FireEvent Method
Purpose
Syntax
object.om.FireEvent(element, eventName$)
Parameter
object
Description
element
eventName$
Member of
rswIprogs.IprogOM, VBADLL.RSWappOm
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
370
FireEvent Method
Example 1
Example 2
Example 3
371
Gen Property
Example 3
(cont'd)
See Also
FindElement
Gen Property
Purpose
Syntax
object.gen.method
Parameter
object
Description
method
Member of
372
Gen Property
Applies To
# Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
# Thin Client
Remarks
Example 1
Example 2
resultb As Boolean
urlStr As String,
cookieVnt
topdoc As Object
Set topdoc=f_tester.om.getTopDocument()
urlStr=topdoc.url
resultb = f_Tester.gen.GetCookies(urlStr,cookieVnt)
If resultb then
'Do whatever with cookie data in "cookieVnt"
End If
See Also
373
GetCookies Method
GetCookies Method
Purpose
Gets the value of the cookie for the specified Uniform Resource
Locator.
Syntax
object.property.GetCookies(url$,cookies$)
Parameter
object
Description
property
url$
cookies$
Member of
RswIprogs.Iprog, VBADll.RSWApp
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
# Thin Client
Remarks
374
GetCookies Method
Example 1
Example 2
resultb As Boolean
urlStr As String,
cookieVnt
topdoc As Object
Example 3
resultb As Boolean
urlStr As String,
cookieVnt
topdoc As Object
Set topdoc=f_tester.om.getTopDocument()
urlStr=topdoc.url
resultb = f_Tester.gen.GetCookies(urlStr,cookieVnt)
If resultb then
'Do whatever with cookie data in "cookieVnt"
End If
See Also
SetCookies
375
GetCurrentVuId Method
GetCurrentVuId Method
Purpose
Syntax
object.GetCurrentVuId
Parameter
object
Description
Member of
Webanlst.RswEobj, mint.RswEobj
Applies To
# Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
# Thin Client
Remarks
Use this procedure to get the ID of the current Virtual User being
played back in e-Load. The current Virtual User ID in e-Tester is
always zero.
Example
See Also
376
None
GetDataBank Method
GetDataBank Method
Purpose
Gets the field names and values from the Data Bank.
Syntax
object.property.getDataBank(fieldNames,values, index)
Parameter
object
Description
property
fieldNames
values
index
Member of
RswIprogs.IprogPlay
Applies To
# Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
# Thin Client
377
GetDataBank Method
Remarks
Example
See Also
378
GetDataBankSize Method
GetDataBankSize Method
Purpose
Syntax
object.property.getDataBankSize()
Parameter
object
Description
property
Member of
RswIprogs.IprogPlay
Applies To
U Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example
See Also
GetDataBank, GetDataBankValue,
SetCurrentDataBankRecord, SetDataBankValue
379
GetDataBankValue Method
GetDataBankValue Method
Purpose
Gets the current Data Bank value from the specified variable name.
Syntax
object.property.getDataBankValue(fieldVarName$,value)
Parameter
object
Description
property
fieldVarName$
value
Member of
RswIprogs.IprogPlay, VBADLL.RSWApp
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
# Thin Client
Remarks
380
GetDataBankValue Method
Use the Data Bank Wizard to define Visual Script variables and bind
the variable names to field names in the Data Bank file.
The current Data Bank record is determined by the record pointer of
e-Tester. The current record can be set using the Data Bank Wizard
or the Iterate options.
Example 1
Example 2
381
GetDataBankValue Method
Example 2
(cont'd)
Example 3
See Also
382
GetDocuments Method
GetDocuments Method
Purpose
Syntax
object.GetDocuments(collection)
Parameter
object
Description
collection
Member of
Webanlst.RswEobj, mint.RswEobj
Applies To
U Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Use this procedure to get a document from Web pages that open in
secondary windows.
Example
See Also
GetTopDocument, GetTopDocuments
383
GetElementByPath Method
GetElementByPath Method
Purpose
Syntax
object.om.GetElementByPath(path$,[elObject],[errorStr])
Parameter
object
Description
path$
elObject
errorStr
Member of
RswIprogs.IprogOM, VBADLL.RSWAppOm
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
384
GetElementByPath Method
Remarks
window[index].parent.[index].element(attribute=
'value')[index]
A path$ of window[1].td[3].a(innerText='support')[1]
indicates the first A (anchor) element with the inner text support in
the third TD (table cell) in the HTML source in Window 1 in source
order.
You can use the e-Tester Custom Test Wizard to automatically select
page elements, path rules, and generate custom VBA tests.
Example 1
385
GetElementByPath Method
Example 2
Example 3
See Also
386
GetHtml Method
GetHtml Method
Purpose
Syntax
object.getHtml(html$,frameName$,[master],[parsed])
Parameter
object
Description
html$
frameName$
master
parsed
Member of
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
# Thin Client
387
GetHtml Method
Remarks
The HTML source is from the version of the Web page or application
being played back in the Browser, not the recorded version in the Visual
Script. The text returned is the source of the <BODY> tags of the page
including the beginning and ending <BODY></BODY> tags.
When used in beforePagePlay, the HTML source will be from the
previous page played back by the Visual Script. When used in
afterPagePlay, the HTML source will be from the current page
being played back.
Returns True if successful, otherwise False. html$ will contain an
error string on an error.
Example 1
Example 2
See Also
388
GetParameters, GetOriginalHtml
GetOriginalHtml Method
GetOriginalHtml Method
Purpose
Returns the complete HTML source of the current page in the Browser.
Syntax
object.getOriginalHtml(html$,frameName$)
Parameter
object
Description
html$
frameName$
Member of
Webanlst.RswEobj, mint.RswEobj
Applies To
# Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
# Thin Client
Remarks
The HTML source is from the version of the Web page or application
being played back in the Browser, not the recorded version in the
Visual Script.
The text returned is the source of the <HTML> tags of the page
including the beginning and ending <HTML></HTML> tags.
When used in beforePagePlay, the HTML source will be from the
previous page played back by the Visual Script. When used in
afterPagePlay, the HTML source will be from the current page
being played back.
Returns True if successful, otherwise False. html$ will contain an
error string on an error.
389
GetParameters Method
Example
See Also
GetHtml, GetParameters
GetParameters Method
Purpose
Gets the parameters of the current page of the Visual Script as two
collections.
Syntax
Description
paramNames
paramValues
Member of
Webanlst.RswEobj, mint.RswEobj
Applies To
U Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
# Thin Client
Remarks
390
GetParameterValues Method
Example
See Also
GetHtml
GetParameterValues Method
Purpose
Gets the parameters names and values in the current page of the
Visual Script as two collections or arrays.
Syntax
object.property.getParameterValues(paramNames,
paramValues)
Parameter
object
Description
property
391
GetParameterValues Method
Parameter
paramNames
paramValues
Description
Member of
RswIprogs.IprogNav, VBADLL.RSWApp
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example 1
392
GetParameterValues Method
Example 2
Example 3
See Also
SetParameterValues
393
GetRecordedPostdata Method
GetRecordedPostdata Method
Purpose
Gets the post data recorded in the current page of the Visual Script.
Syntax
object.property.getRecordedPostdata(postdata$)
Parameter
object
Description
property
postdata$
Member of
RswIprogs.IprogNav, VBADLL.RSWApp
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
# Thin Client
394
GetRecordedPostdata Method
Remarks
Example 1
Example 2
395
GetRecordedPostdata Method
Example 3
See Also
396
PostData
GetRecordedUrl Method
GetRecordedUrl Method
Purpose
Gets the Uniform Resource Locator of the current page in the Visual
Script.
Syntax
object.property.getRecordedUrl(url)
Parameter
object
Description
property
url
Member of
RswIprogs.IprogNav, VBADLL.RSWApp
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
# Thin Client
Remarks
397
GetRecordedUrl Method
Example 1
Example 2
Example 3
See Also
398
GetTopDocument Method
GetTopDocument Method
Purpose
Gets the Object Model for the top document of a Visual Script page.
Syntax
object.om.GetTopDocument(winId$)
Parameter
object
Description
winId
Member of
RswIprogs.IprogOM, VBADLL.RSWAppOm
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Returns the Document Object Model for the Visual Script page.
If the winId string is 0, the Document Object Model of the current
page in the e-Tester browser window is returned.
If the winId is a string, the Document Object Model of the page in
the window specified by documents title string pattern is returned.
You can use the asterisk (*) and question mark (?) wildcards
characters in the pattern.
399
GetTopDocument Method
If the winId is a number, the number is the zero-based index for the
open browser windows (e-Tester browser and any secondary windows).
Example 1
Example 2
Example 3
See Also
400
FindDoc, GetTopDocuments
GetTopDocuments Method
GetTopDocuments Method
Purpose
Gets an array of all top documents from multiple open browser windows.
Syntax
object.om.GetTopDocuments(docCol, [onlyTransitioned])
Parameter
object
Description
docCol
onlyTransitioned
Member of
RswIprogs.IprogOM, VBADLL.RSWAppOm
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
401
GetTopDocuments Method
Example 1
Example 2
Example 3
See Also
402
GetTopDocument
e-Tester User Guide
GoBack Method
GoBack Method
Purpose
Syntax
object.GoBack()
Parameter
object
Description
Member of
VBADLL.RSWApp
Applies To
U Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example
See Also
403
GotoPage Method
GotoPage Method
Purpose
Goes to the specified Visual Script page and plays back the page.
Syntax
object.property.GotoPage(pageIndex)
Parameter
object
Description
property
pageIndex
Member of
RswIprogs.IprogPlay, VBADLL.RSWApp
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
# Thin Client
Remarks
404
GotoPage Method
Example 1
Example 2
Example 3
See Also
405
Halt Method
Halt Method
Purpose
Syntax
object.gen.halt()
Parameter
object
Description
Member of
RswIprogs.IProg
Applies To
U Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example
See Also
406
None
HasCustomTests Method
HasCustomTests Method
Purpose
Syntax
object.play.HasCustomTests()
Parameter
object
Description
Member of
RswIprogs.IProgPlay
Applies To
U Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Returns True if the Visual Scripts has custom tests, otherwise False.
Custom tests include custom VBA tests, Test Scriptlets, and External
Callout tests.
This method can be used to determine which Visual Scripts in a
library of Visual Scripts contain custom programming code.
Example
See Also
None
407
Index Property
Index Property
Purpose
Gets the index of an action that occurred on the Web page to use for
the BeforeAction event.
Syntax
object.Index
Parameter
object
Description
Member of
RswIprogs.IprogAction
Applies To
U Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
408
Index Property
Example
actIndex As Long
actEvntType As String
actEventElem As String
actElemType As String
SubmitButton As Object
See Also
409
InsertNav Method
InsertNav Method
Purpose
Syntax
object.play.InsertNav([pageId])
Parameter
object
Description
pageId
Member of
RswIprogs.IProgPlay
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
410
InsertNav Method
Example 1
Example 2
See Also
ReplaceNav
411
IterateScript Method
IterateScript Method
Purpose
Syntax
object.play.IterateScript([scriptname$])
Parameter
object
Description
scriptname$
Member of
RswIprogs.IProgPlay
Applies To
U Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example
See Also
412
DoScript
IterationCount Method
IterationCount Method
Purpose
Syntax
object.IterationCount()
Parameter
object
Description
Member of
Webanlst.RswEobj
Applies To
# Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example
See Also
IterateScript
413
IterationsBegin Event
IterationsBegin Event
Purpose
Syntax
object_IterationsBegin()
Parameter
object
Description
Member of
Webanlst.ProgT
Applies To
U Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example
See Also
414
IterationsEnd Event
IterationsEnd Event
Purpose
Syntax
object_IterationsEnd()
Parameter
object
Description
Member of
Webanlst.ProgT
Applies To
U Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example
See Also
415
LastDialogText Method
LastDialogText Method
Purpose
Syntax
object.lastDialogText
Parameter
object
Description
Member of
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example 1
Example 2
See Also
416
LastDialogTitle
LastDialogTitle Method
LastDialogTitle Method
Purpose
Syntax
object.lastDialogTitle()
Parameter
object
Description
Member of
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example 1
Example 2
See Also
LastDialogText
417
Length Property
Length Property
Purpose
Syntax
object.property.length()
Parameter
object
Description
property
Member of
RswIprogs.IProgPlay
Applies To
# Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Returns a Long.
Example 1
Example 2
See Also
ScriptLength
418
MatchHtml Method
MatchHtml Method
Purpose
Syntax
object.property.matchHtml(result$, [leftPattern$],
[rightPattern$ [frameNamePattern$])
Parameter
object
Description
leftPattern$
rightPattern$
frameNamePattern$
property
result$
419
MatchPattern Method
Member of
RswIprogs.Iprog, VBADLL.RSWApp
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
# Thin Client
Remarks
Example
See Also
GetParameters
MatchPattern Method
Purpose
Member of
webanlst.rswEobj, mint.rswEobj
420
Nav Property
Nav Property
Purpose
Syntax
object.property.Nav([pageId])
Parameter
object
Description
property
pageId
Member of
RswIprogs.IProgPlay
Applies To
# Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
421
Nav Property
Example 1
Example 2
See Also
422
Navigate Method
Navigate Method
Purpose
Navigates to the specified URL and frame with optional post data and
headers.
Syntax
object.property.navigate(url$,[targetFrame$],
[postdataStr$], [headers$])
Parameter
object
Description
property
url$
targetFrame$
postdataStr$
423
Navigate Method
Parameter
headers$
Description
Member of
RswIprogs.Iprog, VBADLL.RSWApp
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example 1
Example 2
See Also
424
InsertNav
Om Property
Om Property
Purpose
Syntax
object.om.method
Parameter
object
Description
method
Member of
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
425
Om Property
Example 1
Example 2
Example 3
See Also
426
OpenScript Method
OpenScript Method
Purpose
Syntax
object.property.OpenScript(scriptName$)
Parameter
object
Description
property
scriptName$
Member of
RswIprogs.IprogPlay
Applies To
U Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example
427
OpenWorkspace Method
Example
(cont'd)
See Also
OpenWorkspace Method
Purpose
Syntax
object.property.OpenWorkspace(scriptWorkspace$)
Parameter
object
Description
property
scriptWorkspace$
Member of
RswIprogs.IProgPlay
Applies To
U Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
428
PageBegin Event
Example
See Also
OpenScript, DoScript
PageBegin Event
Purpose
Syntax
object_PageBegin(playIndex As Integer,
currentScriptName As String,
userErrNumber As Long,
userErrDescription As String)
Parameter
object
Description
playIndex%
429
PageBegin Event
Parameter
currentScript
Name$
Description
errNumber&
errDescription$
Member of
mint.ProgX, Webanlst.ProgT
Applies To
U Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example
See Also
430
PageEnd Event
PageEnd Event
Purpose
Syntax
object_PageEnd(playIndex As Integer,
currentScriptName As String,
playOutcomeNumber As Integer,
playOutcomeDescription As String,
playOutcomeActions As Long,
playErrTypeSet As Long,
lastDuration As Long,
errNumber As Long,
errDescription As String)
Parameter
object
Description
playIndex%
currrentScript
Name$
playOutcome
Number%
playOutcome
Description$
playOutcome
Actions&
playErrTypeSet&
lastDuration&
431
PageEnd Event
Parameter
errNumber&
Description
errDescription$
Member of
mint.ProgX, Webanlst.ProgT
Applies To
U Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Used to execute code when play back of a Visual Script page ends.
Example
See Also
432
PageUId Property
PageUId Property
Purpose
Returns the Page ID from the External Callout Properties dialog box.
Syntax
object.pageUId
Parameter
object
Description
Member of
mint.rswEobj, Webanlst.rswEobj
Applies To
U Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
#Thin Client
Remarks
Example
See Also
433
PerformTest Event
PerformTest Event
Purpose
Syntax
RSWVBATest_performTest()
Parameter
object
Description
Member of
VBADLL.RSWVBATest
Applies To
U Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
UThin Client
Remarks
Example
See Also
434
Play Property
Play Property
Purpose
Syntax
object.play.method | property
Parameter
object
Description
method |
property
Member of
Applies To
# Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
# Thin Client
Remarks
435
PlaySuspended Event
Example 1
Example 2
See Also
Gen, Nav, Om
PlaySuspended Event
Purpose
Syntax
object_PlaySuspended(playIndex As Integer,
currentScriptName As String,
errNumber As Long,
errDescription As String,
errTypeSet As Long)
Member of
436
Parameter
object
Description
playIndex%
currentScript
Name$
errNumber&
errDescription$
errTypeSet&
mint.ProgX, Webanlst.ProgT
e-Tester User Guide
Postdata Property
Applies To
U Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example
See Also
Postdata Property
Purpose
Member of
mint.rswEobj, Webanlst.rswEobj
437
Quit Method
Quit Method
Purpose
Syntax
object_Quit()
Parameter
object
Description
Member of
RswIprogs.IProg
Applies To
U Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example
See Also
438
ReplaceNav Method
ReplaceNav Method
Purpose
Syntax
object.property.ReplaceNav(pageId)
Parameter
object
Description
property
pageId
Member of
rswIprogs.IprogPlay, VBADLL.RSWApp
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
439
RSWApp Property
Example
See Also
None
RSWApp Property
Purpose
Syntax
RSWApp.method | property
Parameter
method |
property
Description
Member of
VBADLL.RSWVBAPage, VBADLL.RSWVBAScript,
VBADLL.RSWVBATest
Applies To
U Test Scriptlets
# Custom VBA Tests
440
SaveScript Method
# Thin Client
Used With
# Thick Client
Remarks
Example
See Also
om
SaveScript Method
Purpose
Syntax
object.property.SaveScript(scriptName$)
Parameter
object
Description
441
SaveScript Method
Parameter
property
scriptName$
Description
Member of
rswIprogs.IprogPlay
Applies To
# Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example 1
Example 2
See Also
442
None
e-Tester User Guide
ScriptBegin Event
ScriptBegin Event
Purpose
Syntax
object_ScriptBegin(iteration As long)
Parameter
object
Description
iteration%
Member of
Webanlst.ProgT
Applies To
U Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example
See Also
443
ScriptClose Event
ScriptClose Event
Purpose
Syntax
object_ScriptClose()
Parameter
object
Description
Member of
VBADLL.RSWVBAScript
Applies To
U Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example
See Also
444
ScriptOpen, RSWApp
ScriptEnd Event
ScriptEnd Event
Purpose
Syntax
object_ScriptEnd(currentScriptName As String,
playOutcomeNumber As Integer, playOutcomeDescription
As String, playMostSevereActionSet As Long,
playMostSevereErrTypeSet As Long, playSumOfDurations
As Long&)
Parameter
object
Description
currentScript
Name$
playOutcome
Number%
playOutcome
Description$
playMostSevere
ActionSet&
playMostSevere
ErrTypeSet&
playSumOf
Durations&
Member of
mint.ProgX, Webanlst.ProgT
Applies To
U Test Scriptlets
U Custom VBA Tests
ScriptEnd Event
U Thin Client
Used With
# Thick Client
Remarks
Example
See Also
446
ScriptLength Property
ScriptLength Property
Purpose
Syntax
object.ScriptLength
Parameter
object
Description
Member of
VBADLL.RSWApp
Applies To
U Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example
See Also
None
447
ScriptName Property
ScriptName Property
Purpose
Syntax
object.ScriptName
Parameter
object
Description
Member of
mint.rswEobj, Webanlst.rswEobj
Applies To
# Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
# Thin Client
Remarks
Example
See Also
448
ScriptOpen Event
ScriptOpen Event
Purpose
Syntax
object_ScriptOpen(str As MSAPC.IApcStream)
Parameter
object
Description
Member of
VBADLL.RSWVBAScript
Applies To
U Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
environment. You can add your own custom code to the event
procedure. The ScriptOpen event executes only once when the
Visual Script is opened.
Example
See Also
RSWApp, ScriptClose
449
ScriptRename Event
ScriptRename Event
Purpose
Syntax
object_ScriptRename()
Parameter
object
Description
Member of
VBADLL.RSWVBAScript
Applies To
U Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example
See Also
450
ScriptSave Event
ScriptSave Event
Purpose
Syntax
object_ScriptSave(str As MSAPC.IApcStream)
Parameter
object
Description
Member of
VBADLL.RSWVBAScript
Applies To
U Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example
See Also
451
SetBehaviour Method
SetBehaviour Method
Purpose
Syntax
object.SetBehaviour(behaviorName$, behaviorValue)
Parameter
object
Description
behaviorName$
behaviorValue
array("pattern"[,"pattern"[,]]))
Member of
Webanlst.RswEobj
Applies To
# Test Scriptlets
U Custom VBA Tests
Used With
U Thick Client
# Thin Client
Remarks
This is useful for having e-Load mask specific types of images from
downloading. Create a Visual Script with a Test Scriptlet Before
containing the SetBehaviour procedure in e-Tester, as follows:
call SetBehaviour("xurlPatterns",array("pattern"
[,"pattern"[,]]))
where pattern is any URL pattern using Visual Basic Like Operator
patterns. For example:
call SetBehaviour("xurlPatterns",array("*.gif"))
452
SetBehaviour Method
Use the Visual Script as an e-Load Virtual User Profile. Enable Use
Download Manager and Use Custom Test Cases. You can also set VU
Display Ready to view the results of the SetBehaviour setting.
Examples
The following setting masks any .gif file containing s in the URL
and any .jpg with plant7.jpg at the end of the URL:
Call SetBehaviour("xurlPatterns",array("*s*.gif",
"*plant7.jpg"))
The following setting masks any .gif containing news in the URL
Call SetBehaviour("xurlPatterns",array("*news*.gif",
"*plant7.jpg"))
See Also
None
453
SetCookies Method
SetCookies Method
Purpose
Syntax
object.property.SetCookies(url$,cookies$)
Parameter
object
Description
url$
cookies$
property
Member of
rswIprogs.Iprog, VBADLL.RSWApp
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
# Thin Client
Remarks
454
SetCookies Method
Example 1
Example 2
Example 3
See Also
GetCookies
455
455
SetCurrentDataBankRecord Method
SetCurrentDataBankRecord Method
Purpose
Syntax
object.property.SetCurrentDataBankRecord(recNumber)
Parameter
object
Description
property
recNumber
Member of
rswIprogs.IprogPlay
Applies To
U Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example
See Also
456
GetDataBankSize, GetDataBankValue
SetDataBankValue Method
SetDataBankValue Method
Purpose
Sets the value of an internal Visual Script variable defined in the Data
Bank Wizard.
Syntax
object.property.setDataBankValue(dbName$, dbValue$)
Parameter
object
Description
property
dbName$
dbValue$
Member of
rswIprogs.IprogPlay, VBADLL.RSWApp
Applies To
# Test Scriptlets
# Custom VBA Tests
457
SetDataBankValue Method
U Thin Client
Used With
# Thick Client
Remarks
Example 1
Example 2
searchField As Object
searchText As String
submitButton As Object
SetDb As String
458
SetDataBankValue Method
Example 2
(cont'd)
Example 3
searchField As Object
searchText As String
submitButton As Object
setDb As String
459
SetDataBankValue Method
Example 3
(cont'd)
See Also
460
GetDataBankValue
SetOptions Method
SetOptions Method
Purpose
Syntax
object.property.SetOptions(option=value,
[option=value],[])
Parameter
object
Description
property
options
ev_mindelay=seconds
ev_maxdelay=seconds
pb_timeout=seconds
vu_docallouts=True | False
vu_dousertests = True | False
vu_execvba=True | False
vu_maxpagedelay=seconds
vu_minpagedelay=seconds
vu_minimumdisplay=0|1
vu_playwithdatabank=0|1
vu_traceon=0|1
Member of
rswIprogs.IProgPlay
Applies To
U Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
461
SetParameterValues Method
Example
See Also
None
SetParameterValues Method
Purpose
Sets the specified Parameter node value for the current page of the
Visual Script.
Syntax
object.property.setParameterValues(paramNamePattern$,
paramValues)
Parameter
object
Description
462
SetParameterValues Method
Parameter
property
paramNamePattern$
paramValues
Description
Member of
rswIprogs.IprogNav, VBADLL.RSWApp
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
# Thin Client
Remarks
Example
See Also
GetDataBankValue, GetParameterValues
463
StartPlay Event
StartPlay Event
Purpose
Syntax
object_StartPlay()
Parameter
object
Description
Member of
VBADLL.RSWVBAScript
Applies To
U Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
The StartPlay event is used to run custom tests for Visual Scripts.
You enter the code in the Visual Basic for Applications environment
using the e-Tester Custom Page Programmability node. The
StartPlay event executes any code in the procedure before the start
of Visual Script playback.
The StartPlay event executes only once at the beginning of Visual
Script playback.
e-Tester automatically creates the RSWVBAScript object and
StartPlay event for the Visual Script in the Visual Basic environment.
You can add your own custom code to the event procedure.
Example
See Also
464
StateOf Method
StateOf Method
Purpose
Syntax
object.gen.stateOf()
Parameter
object
Description
Member of
rswIprogs.IProg
Applies To
U Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example
See Also
None
465
TestLog Method
TestLog Method
Purpose
Syntax
object.TestLog([Action$],[Result$],[Summary$])
Parameter
object
Description
Action$
Result$
Summary$
Member of
mint.rswEobj, webanlst.rswEobj
Applies To
# Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
# Thin Client
Remarks
Use this procedure to write string values to the e-Tester results pane.
Example
See Also
466
WriteToLog
TimeToNavigate Property
TimeToNavigate Property
Purpose
Gets the amount of time it took for the current page to navigate.
Syntax
object.property.TimeToNavigate
Parameter
object
Description
property
Member of
rswIprogs.IprogNav, VBADLL.RSWApp
Applies To
# Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example 1
467
TransitionEnd Event
Example 2
Example 3
See Also
None
TransitionEnd Event
Purpose
Syntax
object_TransitionEnd(doc)
468
Parameter
object
Description
doc
A document object.
TransitionEnd Event
Member of
mint.ProgX, Webanlst.ProgT
Applies To
U Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
U Thin Client
Remarks
Example
See Also
469
URL Property
URL Property
Purpose
Syntax
object.url
Parameter
Description
object
Member of
mint.rswEobj, webanlst.rswEobj
Applies To
# Test Scriptlets
U Custom VBA Tests
Used With
# Thick Client
# Thin Client
Remarks
Returns a string containing the URL of the current page in the Visual
Script.
Example 1
Example 2
If rswObject.gen.SetCookies(rswobject.url, _
"ZZZZZ=76")=True then
Call rswObject.TestLog(,,"Cookie Set OK")
End If
See Also
470
WriteToLog Method
WriteToLog Method
Purpose
Syntax
object.WriteToLog([Action$],[Result$],[Summary$])
Parameter
object
Description
Action$
Result$
Summary$
Member of
VBADLL.RSWApp
Applies To
U Test Scriptlets
# Custom VBA Tests
Used With
# Thick Client
# Thin Client
Remarks
Use this procedure to write string values to the e-Tester results pane.
Example
See Also
TestLog
471
WriteToLog Method
472
Appendix C
Web Resources
The following Web resources provide more information about Web page
development, Dynamic HTML, the Document Object Model, and Web
page scripting.
Microsoft Web Workshop
http://msdn.microsoft.com/workshop/default.asp
DHTML References
http://msdn.microsoft.com/workshop/author/dhtml/reference/dhtmlrefs.asp
DHTML Properties
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties.asp
473
474
!DOCTYPE
ACRONYM
ADDRESS
APPLET
AREA
BASE
BASEFONT
BDO
BGSOUND
BIG
BLOCKQUOTE
BODY
BR
BUTTON
CAPTION
CENTER
CITE
CODE
COL
COLGROUP
COMMENT
custom
DD
DEL
DFN
DIR
DIV
DL
DT
EM
EMBED
FIELDSET
FONT
FORM
FRAME
FRAMESET
HEAD
Hn
HR
HTML
HTML Comment
IFRAME
IMG
INPUT
INPUT type=button
INPUT type=checkbox
INPUT type=file
INPUT type=hidden
INPUT type=image
INPUT type=password
INPUT type=radio
INPUT type=reset
INPUT type=submit
INPUT type=text
INS
ISINDEX
KBD
LABEL
LEGEND
LI
LINK
LISTING
MAP
MARQUEE
MENU
META
NOBR
NOFRAMES
NOSCRIPT
OBJECT
OL
OPTION
PARAM
PLAINTEXT
e-Tester User Guide
PRE
RT
RUBY
SAMP
SCRIPT
SELECT
SMALL
SPAN
STRIKE
STRONG
STYLE
SUB
SUP
TABLE
TBODY
TD
TEXTAREA
TFOOT
TH
THEAD
TITLE
TR
TT
UL
VAR
WBR
XML
XMP
ACRONYM
ADDRESS
APPLET
AREA
attribute
BASE
BASEFONT
BDO
BGSOUND
BIG
BLOCKQUOTE
BODY
BR
BUTTON
CAPTION
CENTER
CITE
clientInformation
clipboardData
CODE
COL
COLGROUP
COMMENT
currentstyle
custom
dataTransfer
DD
DEL
DFN
DIR
DIV
DL
document
DT
EM
EMBED
event
external
FIELDSET
FONT
FORM
FRAME
475
FRAMESET
HEAD
history
Hn
HR
HTML
IFRAME
IMG
INPUT
INS
ISINDEX
KBD
LABEL
LEGEND
LI
LINK
LISTING
location
MAP
MARQUEE
MENU
META
navigator
NEXTID
NOBR
NOFRAMES
NOSCRIPT
OBJECT
OL
OPTION
PARAM
PLAINTEXT
PRE
RT
RUBY
rule
runtimeStyle
SAMP
screen
SCRIPT
SELECT
selection
SMALL
SPAN
STRIKE
STRONG
style
STYLE
stylesheet
SUB
SUP
TABLE
TBODY
TD
TEXTAREA
TextNode
TextRange
TextRectangle
TFOOT
TH
THEAD
TITLE
TR
TT
UL
userProfile
VAR
WBR
window
XML
XMP
476
anchors
applets
areas
attributes
behaviorUrns
bookmarks
boundElements
cells
childNodes
children
controlRange
elements
embeds
filters
forms
frames
images
imports
links
mimeTypes
options
plugins
rows
rules
scripts
stylesheets
tBodies
TextRectangle
@charset
@font-face
@import
@media
accessKey
action
activeElement
align
aLink
aLinkColor
alt
altHTML
altKey
appCodeName
appMinorVersion
appName
appVersion
autocomplete
availHeight
availWidth
background
backgroundAttachment
backgroundColor
backgroundImage
backgroundPosition
backgroundPositionX
backgroundPositionY
backgroundRepeat
balance
behavior
bgColor
bgProperties
border
borderBottom
borderBottomColor
477
478
borderBottomStyle
borderBottomWidth
borderCollapse
borderColor
borderColorDark
borderColorLight
borderLeft
borderLeftColor
borderLeftStyle
borderLeftWidth
borderRight
borderRightColor
borderRightStyle
borderRightWidth
borderStyle
borderTop
borderTopColor
borderTopStyle
borderTopWidth
borderWidth
bottom
bottomMargin
boundingHeight
boundingLeft
boundingTop
boundingWidth
browserLanguage
bufferDepth
button
cancelBubble
canHaveChildren
caption
cellIndex
cellPadding
cellSpacing
checked
classid
className
clear
clientHeight
clientLeft
clientTop
clientWidth
clientX
clientY
clip
clipBottom
clipLeft
clipRight
clipTop
closed
code
codeBase
codeType
color
colorDepth
cols
colSpan
compact
complete
content
cookie
cookieEnabled
coords
cpuClass
cssText
ctrlKey
cursor
data
dataFld
dataFormatAs
dataPageSize
dataSrc
defaultCharset
defaultChecked
defaultSelected
defaultStatus
defaultValue
defer designMode
dialogArguments
dialogHeight
dialogLeft
dialogTop
dialogWidth
dir
direction
disabled
e-Tester User Guide
display
documentElement
domain
dropEffect
dynsrc
effectAllowed
encoding
event
expando
face
fgColor
fileCreatedDate
fileModifiedDate
fileSize
fileUpdatedDate
filter firstChild
font
fontFamily
fontSize
fontSmoothingEnabled
fontStyle
fontVariant
fontWeight
form frame
frameBorder
frameSpacing
fromElement
hash
height
hidden
host
hostname
href
hspace
htmlFor
htmlText
httpEquiv
id
imeMode
indeterminate
index
innerHTML
innerText
isMap
isTextEdit
keyCode
lang
language
lastChild
lastModified
layoutGrid
layoutGridChar
layoutGridCharSpacing
layoutGridLine
layoutGridMode
layoutGridType
left
leftMargin
length
letterSpacing
lineBreak
lineHeight
link
linkColor
listStyle
listStyleImage
listStylePosition
listStyleType
loop
lowsrc
margin
marginBottom
marginHeight
marginLeft
marginRight
marginTop
marginWidth
maxLength
media
menuArguments
method
Methods
multiple
name
nameProp
nextSibling
nodeName
479
480
nodeType
nodeValue
noHref
noResize
noShade
noWrap
object
offscreenBuffering
offsetHeight
offsetLeft
offsetParent
offsetTop
offsetWidth
offsetX
offsetY
onLine
opener
outerHTML
outerText
overflow
overflowX
overflowY
owningElement
padding
paddingBottom
paddingLeft
paddingRight
paddingTop
pageBreakAfter
pageBreakBefore
palette
parent
parentElement
parentNode
parentStyleSheet
parentTextEdit
parentWindow
pathname
pixelBottom
pixelHeight
pixelLeft
pixelRight
pixelTop
pixelWidth
platform
pluginspage
port
posBottom
posHeight
position
posLeft
posRight
posTop
posWidth
previousSibling
propertyName
protocol
qualifier
readOnly
readyState
reason
recordNumber
recordset
referrer
rel
repeat
returnValue
returnValue
rev
right
rightMargin
rowIndex
rows
rowSpan
rubyAlign
rubyOverhang
rubyPosition
rules
scopeName
screenLeft
screenTop
screenX
screenY
scroll
scrollAmount
scrollDelay
scrollHeight
e-Tester User Guide
scrolling
scrollLeft
scrollTop
scrollWidth
search
sectionRowIndex
selected
selectedIndex
selectorText
self
shape
shiftKey
size
sourceIndex
span
specified
src
srcElement
srcFilter
srcUrn
start
status
styleFloat
systemLanguage
tabIndex
tableLayout
tagName
tagUrn
target
text
textAlign
textAutospace
textDecoration
textDecorationLineThrough
textDecorationNone
textDecorationOverline
textDecorationUnderline textIndent
textJustify
textTransform
tFoot
tHead
title
toElement
top
topMargin
trueSpeed
type
unicodeBidi
uniqueID
units
updateInterval
URL
urn
useMap
userAgent
userLanguage
vAlign
vAlign
value
vcard_name
verticalAlign
visibility
vLink
vlinkColor
volume
vspace
whiteSpace
width
wordBreak
wordSpacing
wrap
XMLDocument
zIndex
481
482
add
addBehavior
AddChannel
AddDesktopComponent
AddFavorite
addImport
addReadRequest
addRule
alert
appendChild
applyElement
assign
attachEvent
AutoCompleteSaveForm AutoScan
back
blur
clear
clearAttributes
clearData
clearInterval
clearRequest
clearTimeout
click
cloneNode
close
collapse
compareEndPoints
componentFromPoint
confirm
contains
createCaption
createControlRange
createElement
createRange
createStyleSheet
createTextNode
createTextRange
createTFoot
createTHead
deleteCaption
deleteCell
deleteRow
deleteTFoot
deleteTHead
detachEvent
doReadRequest
doScroll
duplicate
elementFromPoint
empty
execCommand
execScript
expand
findText
firstPage
focus
forward
getAdjacentText
getAttribute
getAttribute
getBookmark
getBoundingClientRect
getClientRects
getData
getElementById
getElementsByName
getElementsByTagName
getExpression
go
hasChildNodes
ImportExportFavorites
inRange
insertAdjacentElement
insertAdjacentHTML
e-Tester User Guide
insertAdjacentText
insertBefore
insertCell
insertRow
isEqual
IsSubscribed
item
javaEnabled
lastPage
mergeAttributes
move
moveBy
moveEnd
moveRow
moveStart
moveTo
moveToBookmark
moveToElementText
moveToPoint
namedRecordset
navigate
NavigateAndFind
nextPage
open
parentElement
pasteHTML
previousPage
prompt
queryCommandEnabled
queryCommandIndeterm queryCommandState
queryCommandSupported
queryCommandValue
recalc
refresh
releaseCapture
reload
remove
removeAttribute
removeBehavior
removeChild
removeExpression
removeNode
removeRule
replace
replaceAdjacentText
replaceChild
replaceNode
reset
resizeBy
resizeTo
scroll
scrollBy
scrollIntoView
scrollTo
select
select
setAttribute
setCapture
setData
setEndPoint
setExpression
setInterval
setTimeout
ShowBrowserUI
showHelp
showModalDialog
showModelessDialog
splitText
start
stop
submit
swapNode
tags
taintEnabled
urns
write
writeln
483
onafterprint
onafterupdate
onbeforecopy
onbeforecut
onbeforeeditfocus
onbeforepaste
onbeforeprint
onbeforeunload
onbeforeupdate
onblur
onbounce
oncellchange
onchange
onclick
oncontextmenu
oncopy
oncut
ondataavailable
ondatasetchanged
ondatasetcomplete
ondblclick
ondrag
ondragend
ondragenter
ondragleave
ondragover
ondragstart
ondrop
onerror
onerrorupdate
onfilterchange
onfinish
onfocus
onhelp
onkeydown
onkeypress
onkeyup
onload
onlosecapture
onmousedown
onmousemove
onmouseout
onmouseover
onmouseup
onpaste
onpropertychange
onreadystatechange
onreset
onresize
onrowenter
onrowexit
onrowsdelete
onrowsinserted
onscroll
onselect
onselectstart
onstart
onstop
onsubmit
onunload
484
Appendix D
Regular Expressions
A regular expression is a text pattern consisting of ordinary characters, such
as the letters A-Z, and special characters, known as metacharacters. These
characters define a pattern that will be compared to a body of text in order to
find a match. The regular expression is a template for matching a character
pattern to the string being searched.
Following are some examples of expressions:
JScript
VBScript
VBScript
Matches
/^\[\t]*$/
"^\[\t]*$"
/\d{2}-\d{5}/
"\d{2}-\d{5}"
Validates an ID
number consisting of 2
digits, a hyphen, and
another 5 digits.
/<(.*)>.*<\/\1>/
"<(.*)>.*<\/\1>"
Matches an HTML
tag.
MetaCharacters
This appendix lists the metacharacters and how they work.
Character
Description
485
MetaCharacters
486
Character
Description
{n}
{n,}
{n,m}
MetaCharacters
Character
Description
(pattern)
(?:pattern)
(?=pattern)
487
MetaCharacters
488
Character
Description
(?!pattern)
x|y
[xyz]
[^xyz]
[a-z]
[^a-z]
\b
\B
MetaCharacters
Character
Description
\cx
\d
\D
\f
\n
\r
\s
\S
\t
\v
\w
\W
Za-z0-9_]'.
\xn
489
MetaCharacters
490
Character
Description
\num
\n
\nm
\nml
\un
Index
Accept
All Tested Pages, 15
Tested Page, 15, 156
ActiveX
.dll File, 134
Properties, 92
Visual Script Node, 77
Add
Authentication, 220, 221
Data Bank Mapping, 185
Data Bank Variable, 184
DHTML Event Handlers, 66
Dialog Information to List, 217
External Callout Test, 135
Form Element Test, 129
Path Generation Rule, 143
Server Response Test, 126
to Test Library, 117, 123
Add Script Comment
Menu Option, 10
Address
e-Spider, 174
Properties, 93
Visual Script Node, 77
Admin
Authentication Manager, 22021
Delete Log, 224
Delete Visual Script, 223
Delete Workspace, 223
Dialog Manager, 21319
Menu Option, 17
New Workspaces, 222
Options, 211
Test Library, 21113
After
afterPagePlay method, 134
Closing Netscape Script, 65
Delete cookie file after each run, 64
Opening Netscape Script, 64
Index
e-Spider, 172
e-Tester, 9
Netscape, 65
Visual Script, 9
Workspace, 9, 30
Code View, 17
Collapse
Page, 10, 7576
Script, 10, 7576
COM Server
RSWIProgsLib.dll, 282, 304
RSWMint.exe, 282, 303
VBADLL.dll, 311
Webanlst.exe, 281, 299
Command Reference
AfterPlay, 318
AmIWAPScript, 319
Back, 320
BeforeAction, 322
BeforePlay, 324
Cancel, 325
ChangeCurrentPage, 327
ChangeNavigation, 331
ChangeNavigation, 329
CurrentPageNumber, 331
DoPage, 333
DoRegExpMatch, 334
DoScript, 335, 339
EndPlay, 340
ErrDescription, 341
ErrNumber, 343
Error Constants, 310
EventClass, 345
EventContext, 346
EventElem, 348
EventType, 350
ExecutingProduct, 352
FindDoc, 353
FindElement, 356
FindElements, 361
FindElementValue, 364
FindInHtml, 368
FireEvent, 370
Gen, 372
GetCookies, 374
GetCurrentVuId, 376
GetDataBank, 377
e-Tester User Guide
Index
GetDataBankSize, 379
GetDataBankValue, 380
GetDocuments, 383
GetElementByPath, 384
GetHtml, 387
GetOriginalHtml, 389
GetParameters, 390
GetParameterValues, 391
GetRecordedPostdata, 394
GetRecordedUrl, 397
GetTopDocument, 399
GetTopDocuments, 401
GoBack, 403
GotoPage, 404
Halt, 406
HasCustomTests, 407
Index, 408
InsertNav, 410
IProg Class, 304
IProgAction Class, 305
IProgNav Class, 306
IProgOM Class, 306
IProgPlay Class, 307
IterateScript, 412
IterationCount, 413
IterationsBegin, 414
IterationsEnd, 415
LastDialogText, 416
LastDialogTitle, 417
Length, 418
MatchHtml, 419
MatchPattern, 420
Nav, 421
Navigate, 423
Om, 425
OpenScript, 427
OpenWorkspace, 428
PageBegin, 429
PageEnd, 431
PageUId, 433
PerformTest, 434
Play, 435
Playback Results Constants, 309
PlaySuspended, 436
Postdata, 437
Product Constants, 317
ProgT Class, 300
Index
Index
URL Parameters, 71
URL Sub Paths, 72
User Defined Content Comparison
Filters, 70
Configure d-Tracker Server, 17
Content
Missing, 169
New, 169
Severe Changes, 169
Continue Spider, 173
Cookies
Delete Persistent Before Playback, 63
Properties, 94
Use Distinct Directory, 62
Visual Script Node, 77
Copy Element Path, 152
Copy Page, 10
Copy Page in Visual Script, 80
Current
Form Element Value, 128
Page for Server Response Test, 125
Record Number, 53, 185, 187
Record Only, 52, 62
Current Page menu option, 11
Current Path, 152
CurrentPageNumber method, 331
Custom Page Programmability
Visual Script Node, 77
Custom Test
Acceptable Parent Tags, 143
Boolean Properties, 144
Capture Page Element, 152
Choose Tag name, 143
Choose What to Test, 140
Current Path, 152
Databank Variables, 145, 146
Date Properties, 145
Insert, 138
Numeric Properties, 147
Path Generation Rules, 142, 143
Pattern Matching, 149
Properties, 96, 140
Property Name, 141
Property Value, 141
Regular Expressions, 149
Selected Path, 152
String Properties, 149
494
Index
Index
Menu Option, 17
Notify on Error, 169
End
at Record, 53
Server Response Test on Page, 111,
125, 127
EndPlay event, 340
ErrDescription property, 341
ErrNumber property, 343
Error
External Callout Server, 136
Fatal Dialog Boxes, 216, 217
Number from Server, 98, 112
String from Server, 98, 112
Type, 169
Error Codes, 287
Error Constants, 310
Error Recovery
Browser Errors, 169
Change Settings, 170
Default Page Test, 168
Error Type, 169
External Callout Test, 168
Form Element Test, 168
Menu Option, 15
Missing Content, 169
Navigation Failure, 169
New Content, 169
Notify e-Monitor, 169
Options, 168
Page Timeout, 168
Resource Validation Test, 168
Server Response Tests, 168
Severe Content Changes, 169
Skip Remaining Iterations, 169
Skip Remaining Pages, 169
Text Matching Test, 168
e-Spider
Address, 174
Append Form Pages, 39
Append Page to Tree, 173, 176
Automatic Script Generation, 4
Basics, 17175
Continue, 173
Delete Page, 173, 177
Edit Menu, 173
Exclude URLs, 173, 178
e-Tester User Guide
Index
Event Handlers, 65
Event Name, 66
Event Recording, 16
EventClass property, 345
EventContext property, 346
EventElem property, 348
Events
Dynamic HTML, 67
Java, 67
Playback Options, 16, 67
Recording Options, 16
EventType property, 350
Exclude URLs, 173, 178
Execute Test, 110
ExecutingProduct property, 352
Existence Tests
Specific Node, 85
Existing Map File, 181
Existing Workspaces, 222
Exit
Dialog Manager, 214
e-Spider, 172
e-Tester, 9
Netscape, 65
Expand
Page, 10, 7576
Script, 10, 7576
Export
e-Spider Site Map, 172, 182
Resource Validation, 87
Results Log File, 166
Results Log Pane, 9, 163
Visual Scripts, 9, 79
Expression
Data Banks, 19197
Form Element test, 130
Extensibility
Client Types, 240
Data Bank Variables, 252
Data Banks, 251
Document Objects, 241, 246
DOM Methods, 243
DOM Properties, 243
Dynamic HTML Events, 245
HTML Elements, 248, 361
Level 1 Visual Scripts, 22728
Level 2 Data Banks, 22930
497
Index
Index
Index
Index
Index
Overview, 8
Page Snapshot, 11
Paste Page, 10
Playback, 12
Playback (options), 15
Playback Currrent Page, 12
Preferences, 16
Properties, 11
Record, 11
Record Currrent Page, 11
Resize Output Log View, 18
Resize Visual Script View, 18
Resource Validation, 12
Resource Validation (options), 16
Results Log, 16
Results Menu, 15
Run Menu, 11
Save Output Log As, 9
Save Script, 9
Save Script As, 9
Script Comments, 9
Search the World Wide Web, 14
Show Applet Resource, 14
Show Java Console, 14
Start Playback, 12
Start Recording, 11
Stop (browser), 14
Stop Playback, 12
Stop Recording, 11
Switch to IE Baseline, 10
Switch to Netscape Baseline, 10
Test Library, 17
Tests Menu, 12
Tools Menu, 16
Up to Current Page, 12
View Results Log, 15
WAP Options, 16
WAP Script Recorder, 16
Window Menu, 18
Microsoft Development Environment,
261
Microsoft Java Applet Support, 68
Microsoft Script Debugger, 259
Microsoft Visual Basic IDE, 24, 265
Minimum Tester, 286
Minimum Time Allowed for Playback,
111, 126
502
Index
Properties, 108
Recorded Value, 108
Tested Value, 108
Use Default value on play back, 108
Visual Script Node, 77
Pass When, 116
Password, 220
Paste Page in Visual Script, 10
Path Generation Rules, 142
Pause e-Spider, 176
PerformTest event, 434
Play property, 435
Play with Recorded Delay Between Pages,
63, 159
Playback, 49
Always Invoke VBA IDE on VBA
Errors, 62
Automatically Dismiss Dialogs, 61
Automatically Run Resource
Validation After, 62
Comparison Exclusions, 6974
Current Page, 12
Delete Persistent Cookies Before, 63
Different URL, 57
Entire Visual Script, 50
Exclude a Range of HTML Source,
74
Exclude Specific URL Parts, 71
Exclude URL Parameter Values, 72
Exclude URL Parameters, 71
Exclude URL Sub Paths, 72
Iterations, 51
Maximum Delay (seconds), 63
Menu Option, 12
Multiple Times, 51
Netscape Script, 58
Number of Retries on Timeout, 61
Recorded Delay, 50
Results pane, 23, 59, 158
Skip Auto Pages in Thin Load, 63
Specific Data Bank Record, 55
Specific Script Page, 50
Start, 12
Start New Browser Session Before, 63
Stop, 12
Text Pattern Masks (Regular
Expression), 70
503
Index
Menu Option, 16
Options, 26
Prepend Workstation Name, 161
Priority, 215, 219
Program Id, 133, 136
Programming
Access Top Document, 247, 399
Access Web Page Objects, 246
Client Types, 240
Data Bank Records, 254
Data Bank Values, 251, 253, 255
Document Objects, 243, 246
Document Objects Properties, 243
Dynamic HTML Events, 245
Find Element in Range, 249
Find HTML Element, 248, 361
Frameset Objects, 247
Match HTML Pattern, 249
Set Properties, 250
Test Scriptlets, 256
Test Scriptlets vs. Web Page, 257
Programming Interface, 4, 225, 299
ProgT Class, 281, 300
ProgX Class, 282, 303
Properties
Action, 101
Actions, 93
ActiveX, 92
Address, 93
After Playback of Page, 98
Attribute Name, 92, 104, 107
Attribute Value, 92, 104, 107
Available Images, 103
Available Link, 105
Base Final Event on Index, 94
Basic Node Properties, 91
Before Playback of Page, 98
Client Requests, 95
Cookies, 94
Current Value, 99
Custom Page Programmability
Properties, 96
Delay Before Playback, 94
Elapsed Time During Playback, 111
Elapsed Time During Recording, 111
Encoding, 101
End Test on This Page, 111
e-Tester User Guide
Index
Index
Index
Index
Index
Toolbar
Browser Navigation Options, 14
Browser Type, 10
Data Bank Wizard, 11
Dialog Manager, 214
Dimmed, 31
Edit Options, 173, 214
Edit Options, 10
e-Spider, 16
File Options, 172, 214
File Options, 9
Help Options, 18
Playback Options, 12
Record Options, 11
Resize Output Log View, 18
Resize Visual Script View, 18
Resource Validation, 12
RSW e-Spider, 17274
Test Case Options, 12
Tools Menu, 16
TransitionEnd event, 468
Unexpected Windows and Dialogs, 60
Up to Current Page menu option, 12
URL Dropdown, 8
URL property, 470
Use All Records, 52, 62
Use Constant Delay, 67
Use Current Record Only, 52, 62
Use Distinct Cookie Directory, 62
Use Recorded Delay, 67
Use Specified Log Name, 161
User Authentication, 47
User Name, 220
Validation Tests
Export Results to File, 87
Maximum Number of Threads, 90
Maximum Timeout in Seconds, 90
Options, 89
Playback Options, 88
Running, 8590
Specific Node, 89
Start Manually, 85
Variable
Add, 190
Authentication, 221
Bind Data Banks, 197
Data Bank Binding, 186
Index
Delete, 185
in Dialog Manager, 217
in Text Matching Test, 122
Internal, 191
Map Data Banks, 189
Name, 185
Retain Across Scripts, 26
Value, 185
VBA
Development Environment, 265, 272
Inherit VBA From, 9
VBA Tests
RSWApp Class, 312
RSWAppOM Class, 314
RSWVBAPage Class, 315
RSWVBAScript Class, 315
RSWVBATest Class, 316, 317
VBADLL.dll, 311
VBAGLobalObject Class, 317
VBScript Differences, 155
View
Playback Results, 59
Resize Output Log, 18
Resize Visual Script, 18
Results Log, 15, 165
Visual Scripts, 75
Visual Scripts
Accept Tested Pages, 156
ActiveX Node, 77
ActiveX Properties, 92
Address Node, 77
Address Properties, 93
Always Invoke VBA IDE on VBA
Errors, 62
Anchors Node, 77
Append Page, 80
Arrow Icon, 78
Auto Pages, 46
Auto Save, 26
Automatic Tests, 8385
Automatically Dismiss Dialogs, 61
Automatically Run Resource
Validation After Playback, 62
Browser Specific, 25
Change Pane Width, 75
Checkmark Icon, 78
Collapse Tree, 7576
509
Index
Comments, 9, 81
Cookies Node, 77
Cookies Properties, 94
Copy Page, 80
Custom Page Programmability Node, 77
Custom Page Programmability
Properties, 96
Default Tests, 8385
Delete, 223
Delete Page, 81
Delete Persistent Cookies Before
Playback, 63
Delete Visual Script, 82
Discard Tested Pages, 156
Duration Node, 77
Edit Tree, 8082
Expand Nodes, 75
Expand Tree, 7576
Export to File, 79
External Callout Properties, 97
Find Next Failure, 154
Find Previous Failure, 154
Flag Icons, 19, 78
Form Element Properties, 99
Form Element Test Properties, 100
Form Node, 77
Form Properties, 101
Frames Node, 77
Generate Netscape Script, 48
HTML Differences, 154
HTML Node, 77
HTML Properties, 102
Ignore Specific Failure, 157
Ignore Test Case, 157
Image Properties, 103
Images Node, 77
Java Applet Node, 77
Java Applet Properties, 104
JavaScript Differences, 155
Link Properties, 105
Links Node, 77
Locate Failures, 154
Maximum Delay (seconds), 63
Minus Icon, 78
Modify Default Tests, 8385
Move Page, 80
Navigation, 239
510
Node Properties, 91
Node Types, 7778
Number of Retries on Timeout, 61
Overview, 3
Page Icon, 78
Page Properties, 106
Pages with META Refresh, 45
Panel Properties, 107
Parameter Properties, 108
Parameters Node, 77
Play with Recorded Delay Between
Pages, 63
Playback, 49, 50
Playback Iterations, 51
Playback Multiple Times, 51
Playback Netscape Script, 58
Playback On Different URL, 57
Playback Specific Page, 50
Playback Specific Record, 55
Playback with Data Bank, 53, 62
Playback with Recorded Delay, 50
Playback without Data Bank, 62
Plus Icon, 78
Popup Menu, 20
Programming, 238
Record, 3441
Record Anchor Transitions, 45
Red Flag, 78
Results Log, 23, 158
Results Timelines, 159
Saving, 48
Script Node Properties, 109
Scripts Node, 77
Select Page from Results Log, 162
Server Response Properties, 110
Skip Auto Pages in Thin Load, 63
Start New Session Before Playback, 63
Stripped Flags, 19, 78
Switch to Netscape Baseline, 58
Test Scriptlet Properties, 112
Tests Node, 77
Text Matching Properties, 113
Timeout on Page After, 61
Type of Information, 77
Use All Records, 62
Use Current Record Only, 62
Use Distinct Cookie Directory, 62
e-Tester User Guide
Index
User Authentication, 47
VBScript Differences, 155
View Node Properties, 9091
View Pane, 19
with Client Types, 240
WML Properties, 114
Working with, 75
Yellow Flag, 78
Visual Test Results Analysis, 5
Wait for Activity, 65
WAP browser emulation, 16
WAP Options, 16
WAP Script Recorder, 16
Web Server Testing, 5
Webanlst.exe, 281, 299
Index
Window Menu, 18
WML nodes
Properties, 114
Workspaces
Add New, 29
Close, 30
Delete, 31, 223
Existing, 222
Name, 222
New, 29, 222
Open, 30
WriteToLog property, 471
X Flag, 174
Yellow Flag, 78, 174
511
Index
512