background image
<< The Benefits of Automated Testing | The 4Test language >>

Understanding SilkTest Basics

<< The Benefits of Automated Testing | The 4Test language >>
Getting Started: A Tutorial
7
1 I
NTRODUCING
S
ILK
T
EST
Understanding SilkTest Basics
Understanding SilkTest Basics
How SilkTest works
Applications are composed of graphical user interface (GUI) objects such as
windows, menus and buttons that a user manipulates using a keyboard and a
mouse to initiate application operations. SilkTest interprets these objects and
recognizes them based on the class, properties and methods that uniquely
identify them. During testing, SilkTest interacts with the objects to submit
operations to the application automatically, simulating the actions of a user,
and then verifies the results of each operation. The simulated user, SilkTest,
is said to be driving the application.
SilkTest consists of two distinct components that execute in separate
processes:
The SilkTest Host software
The SilkTest Agent software
The SilkTest Host
The host software is the SilkTest component you use to develop, edit,
compile, run and debug your test scripts and testplans. The machine that runs
this component is often referred to as the host machine.
The SilkTest Agent
The SilkTest Agent is the component of SilkTest that interacts with the GUI
of your application. The Agent translates the commands in your 4Test scripts
into GUI specific commands, driving and monitoring the application you are
testing. The Agent can run locally on the same machine on which the Host is
running or, in a networked environment, any number of Agents can run on
remote machines. In a networked environment, the machine that runs the
Agent is often referred to as the remote machine.
How SilkTest records
user actions
Before you begin creating and running test scripts, you create a repository of
information about your application to be used by SilkTest. This repository
includes descriptions of the GUI objects that comprise your application.
Based on the properties and methods SilkTest associates with these objects,
SilkTest can recognize the actions performed on them and intelligently record
those actions into your test script using the 4Test language.
SilkTest
Host
SilkTest
Agent
Application
Under Test
4Test
Scripts
GUI
Commands