Silktest and Win Runner Feature
Silktest and Win Runner Feature
FEATURE DESCRIPTIONS
Horwath/Green/Lawler
Version 1.00 (7/6/00)
SilkTest and WinRunner Feature Descriptions Version 1.00 (7/6/00)
ii Horwath/Green/Lawler
SilkTest and WinRunner Feature Descriptions Version 1.00 (7/6/00)
Table of Contents
1. INTRODUCTION 1
1.1 Author Backgrounds ............................................................................................................ 1
2. FEATURE DESCRIPTIONS 2
2.1 Startup Initialization and Configuration .............................................................................. 2
2.2 Test Termination.................................................................................................................. 3
2.3 Addins and Extensions ........................................................................................................ 3
2.4 Visual Recorders.................................................................................................................. 4
2.5 Object Hierarchy.................................................................................................................. 5
2.6 Object Recognition .............................................................................................................. 5
2.7 Object Verification .............................................................................................................. 6
2.8 Custom Objects.................................................................................................................... 6
2.9 Internationalization (Language Localization) ..................................................................... 7
2.10 Database Interfaces.............................................................................................................. 7
2.11 Database Verification .......................................................................................................... 7
2.12 Data Driven Testing............................................................................................................. 8
2.13 Restoring an Application’s Initial State .............................................................................. 8
2.14 Scripting Language.............................................................................................................. 9
2.15 Exception Handling ............................................................................................................. 9
2.16 Test Results Analysis......................................................................................................... 10
2.17 Managing the Testing Process........................................................................................... 10
2.18 External Files..................................................................................................................... 11
2.19 Debugging.......................................................................................................................... 11
iii Horwath/Green/Lawler
SilkTest and WinRunner Feature Descriptions Version 1.00 (7/6/00)
1. INTRODUCTION
This document provides feature descriptions of two GUI automated test tools and their
associated test management software:
• Mercury-Interactive’s WinRunner, version 6.02 (with TestDirector)
• Segue’s SilkTest, version 5.03 (with SilkOrganizer)
The goal of this document is to describe as objectively as possible the capabilities provided by
each tool for each feature, rather than trying to state that one tool’s implementation of a feature is
better than the other. The feature descriptions made in this document are intentionally terse and
condensed—therefore subtle nuances and deep details of a feature are not covered.
This document by itself should only be considered a good starting point for a complete test tool
evaluation by those readers who are considering one of these tools for their automated testing
efforts. Many excellent evaluation criteria ideas can be found in the AUTOMATED TESTING forum
on the www.betasoft.com website. Assigning a qualitative value to each feature is an evaluation
task which depends on the test team’s:
• testing environment,
• programming skills, and the
• application testing requirements.
There is no substitute for using each tool to develop a specific set of prototype testcases, in order
to determine the strength and weaknesses of each tool against a typical application in your
environment.
2. FEATURE DESCRIPTIONS
For the sake of consistency alphabetical ordering was selected to describe SilkTest features first,
followed by WinRunner features in each of the following sections.
SilkTest provides visual recorders and wizards for the following activities:
• Creating a test frame with GUI declarations for a full application and adding/deleting
selective objects and windows in and existing GUI declarations frame file.
• Capturing user actions with the application into a test case, using either context sensitive
[object relative] or analog [X:Y screen coordinate relative] recording techniques.
• Inspecting identifiers, locations and physical tags of windows and objects.
• Checking window and object bitmaps [or parts thereof].
• Creating a verification statement [validating one or more object properties].
WinRunner provides visual recorders and wizards for the following activities:
• Creating an entire GUI Map for a full application and adding/deleting selective objects and
windows in an existing GUI Map. It is also possible to implicitly create GUI Map entries by
capturing user actions [using the recorder described next].
• Capturing user actions with the application into a test case, using either context sensitive
[object relative] or analog [X:Y screen coordinate relative] recording techniques.
• Inspecting logical names, locations and physical descriptions of windows and objects.
• Checking window and object bitmaps [or parts thereof].
• Creating a GUI checkpoint [validating one or more object properties].
• Creating a database checkpoint [validating information in a database].
• Creating a database query [extracting information from a database].
• Locating at runtime a missing object referenced in a testcase [and then adding that object to
the GUI Map].
• Teaching WinRunner to recognize a virtual object [a bitmap graphic with functionality].
• Creating Data Tables [used to drive a test from data stored in an Excel-like spreadsheet].
• Checking text on a non-text object [using a built-in character recognition capability].
• Creating a synchronization point in a testcase.
• Defining an exception handler.
Some of these recorders and wizards do not work completely for either tool against all
applications, under all conditions. For example neither tool’s recorder to create a full GUI Map
[WinRunner] or test frame [SilkTest] works against large applications, or any web application.
Evaluate the recorders and wizards of interest carefully against your applications if these utilities
are important to your automated testing efforts.
To deal with a custom object [i.e. an object that does not map to standard class] both tools
support the use of class mapping [i.e. mapping a custom class to a standard class with like
functionality], along with a variety of X:Y pixel coordinate clicking techniques [some screen
absolute, some object relative] to deal with bitmap objects, as well as the ability to use external
DLL functions to assist in object identification and verification. Beyond these shared capabilities
each tool has the following unique custom object capabilities:
• SilkTest has a feature to overlay a logical grid of X rows by Y columns on a graphic that has
evenly spaced “hot spots”[this grid definition is then used to define logical GUI declarations
for each hot spot]. These X:Y row/column coordinates are resolution independent [i.e. the
logical reference says “give me 4th column thing in the 2nd row”, where that grid expands or
contracts depending on screen resolution].
• WinRunner has a built-in text recognition engine which works with most standard fonts.
This capability can often be used to extract visible text from custom objects, position the
cursor over a custom object, etc. This engine can also be taught non-standard font types
which is does understand out of the box.
Both tools offer support for testing non-graphical controls through the advanced use of custom
DLLs [developed by the user], or the Extension Kit [SilkTest, which may have to be purchased at
an addition cost] and the Mercury API Function Library [WinRunner].
2.19 Debugging
Both tools support a visual debugger with the typical capabilities of breakpoints, single step, run
to, step into, set out of, etc.