Working with Test Scripts |
Test Script Services calls can deposit information in any of these locations:
The following sections describe these locations.
TestManager uses the test log (or log) to list the test cases that have been run and record whether they pass or fail. TestManager generates reports based on the logged information.
You can also write pass/fail results to the log as well as log messages and report errors.
The following are the Test Script Services logging methods:
For additional information about logging errors, see Trapping Errors.
TestManager determines the location of the log file as follows:
TSSSession.Context
to control the location of the log file.
As a development and debugging aid, you can write information to an error file and an output file.
Use the utility methods StdErrPrint
and StdOutPrint
to write to the error and output files.
TestManager determines the location of the error and output files as follows:
Set the error file name with e<usernumber> and the output file name with o<usernumber>. The variable <usernumber> defaults to 0 and is set by the -u command-line option.
Shared memory is used to provide data for the TestManager runtime console. Shared memory is also used to pass information between test scripts.
To write data to shared memory, use the methods described in the following sections:
TSSMonitor
methods to provide data that is used during the TestManager monitoring operations.
TSSSync
methods to allow concurrently running scripts to share data.
These methods work only in test scripts that are run from TestManager.
Rational Test Script Services for Visual Basic | Rational Software Corporation |
Copyright (c) 2003, Rational Software Corporation | http://www.rational.com support@rational.com info@rational.com |