background image
<< Adding a test script that sets or depends on an event | Example of a Distributed Functional Test >>
<< Adding a test script that sets or depends on an event | Example of a Distributed Functional Test >>

Distributing Tests Among Different Computers

218
Chapter 7 - Creating Functional Testing Suites
Distributing Tests Among Different Computers
You may want to distribute your test scripts among different computers. For example,
your tests may not be designed for a specific computer. Or you may want to run your
tests on a group of computers so that they can complete as fast as possible. With
TestManager, you can run many computers concurrently and distribute your tests
among these computers. This enables you to speed up the testing process.
To distribute your tests among different computers, follow these steps:
s
When you insert computer groups into a suite, click
Change
and add your
computers to the computer list that appears. For more information about setting
up test scripts to run on different computers, see Inserting a Computer Group into a
Suite
on page 204.
s
After you have inserted your computer groups, insert a Parallel selector. The test
scripts that you insert under the selector are continuously sent out to the next
available computer. Of course, the test scripts must be designed so that they are
self-contained and do not rely on one another. For more information about the
parallel selector, see Inserting a Selector into a Suite on page 213.
Example of a Distributed Functional Test
In the following example, assume that you want to test your Accounting software.
You want to distribute your tests over different computers so that they can run as
quickly as possible.
The following table summarizes how you set up this test.
This table shows one way to perform a distributed functional test. There are many
other ways to use TestManager to build and run effective distributed functional tests.
The most important thing to keep in mind is that all of the test scripts should be
modular.
Test Scripts
Suite
Reports
A script to log virtual
tester in.
A modular script for
each virtual tester task.
A test script to perform
any cleanup work and
then shut down the
application.
One computer group that logs the users
in.
One computer group that contains a
Parallel selector and modular scripts
that run on any computer.
One computer group that shuts down
the application.
Test log report to show
whether all virtual
testers in the suite
successfully ran to
completion.