background image
<< compile your source code | To prepare for the example >>
<< compile your source code | To prepare for the example >>

To perform message based testing on a system

Command Line Interface
To perform message based testing on a system:
1.
First, set up the necessary environment variables. See Setting Environment
Variables.
2.
Write a System Testing .pts test script. See the Reference Manual for test script
syntax.
3.
Write a System Testing .spv supervisor script. See the Reference Manual for test
script syntax.
Note Manually created supervisor scripts may be overwritten by the Test
RealTime graphical user interface.
4.
Compile the generated test harness source file. See Compiling the Test Harness.
5.
If you are using any of the runtime analysis features, instrument and compile
the source code. See Instrumenting and Compiling the Source Code.
If not, simply compile your source code with your usual compiler.
6.
Set up the TDP configuration file, called product.h. See Preparing a Products
Header File.
7.
Compile the TDP Library. See Compiling the TDP Library.
8.
Link the compiled files together to create an executable test binary. See Linking
the Application.
9.
Ensure that the System Testing agents are running on all remote target hosts.
See Installing System Testing Agents.
10. Run the supervisor script on the supervisor machine (the machine running Test
RealTime) with the following command:
atsspv <supervisor.spv>
where supervisor is the name of the .spv supervisor script.
11. Run
the System Testing Report Generator to produce a test report. See the
corresponding Report Generator command line section in the Reference
Manual.
12. Finally,
launch
the
Graphical User Interface to view the test reports. See the
Graphical User Interface command line section in the Reference Manual.
Command Line Examples
This section describes two basic examples of using Test RealTime Runtime Analysis
features through the Command Line Interface:
321