User's Manual

Table Of Contents
Working with Test Cases
Working with Test and Script Execution 14-3
Starting a Test Case
You can use the Session perspective to view a list of all of the test cases that are associated with a reserved
Template. You can then select one of those test cases to execute on the remote host. You can also execute
multiple tests on the Template from the session editor. While other Session perspective sessions can connect
to the same session, only the session that starts the test case can monitor it or execute commands on it.
To start a test case, perform the following steps:
1. Ensure that you are connected to the relevant session.
The test case Console view is refreshed automatically when you open a session editor (in Running
State). For information about session states, see Table 12-2 on page 12-8.
Use the expand buttons in the associated Test Cases view to display the project folder, work
environment, and suite containing the desired test case.
2. Select and open a running session in your session editor.
3. Open the Test Cases view. The view content should be refreshed automatically based on the opened,
running session.
Note To execute any test script, you must have a running session open.
4. Navigate the project hierarchy to select your test cases.
5. In the associated Test Cases view, select one or more test cases to execute, right-click the desired test
case, and select Start.
A new execution entry will be listed in the Execution Queue view.
Viewing Test Case Properties
To view test case properties, in the session editor or Test Cases view, select a test case and open the
Properties view.
Stopping a Test Case
After test execution has begun, you can stop it at any time. This feature is designed for when you are
executing many tests, or the execution time is lengthy, or when you want to change the settings and restart
the test.
Note It is impossible to resume execution of a stopped test case where it left off, but you can start it again
from the beginning.
To stop a test case, perform one of the following options:
On the Console view toolbar, click the Stop Test Case icon. This icon function ends the collection of
data from a test, but it does not necessarily cause the test to abort (that is, to exit from the operating
system). If you have a simple test that opens some temporary files, does processing, and then removes
the temporary files, you might prefer that a “stopped” test still ran to completion—and deleted those
files—rather than exiting abruptly.
On the Execution Queue view, right-click the test case and select Stop.