background image
<< Source Code Parser command | To perform message based testing on a system >>
<< Source Code Parser command | To perform message based testing on a system >>

compile your source code

Test RealTime - User Guide
Command Line Component Testing for Java
Use Component Testing for Java to test individual components of your Java source
code.
To perform component testing on Java source code:
1.
First, set up the necessary environment variables. See Setting Environment
Variables.
2.
Generate a set of test script templates based on your source files by using the
Source Code Parser. See corresponding Source Code Parser command line
section in the Reference Manual.
3. Use
the
generated
.ptu, .otc or .otd templates to write a test script. See the
Reference Manual for test script syntax.
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 Products.java. 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.
Execute the test binary. See Running the Test Harness or Application.
10. After execution, to obtain the final test results, as well as any SCI dump
information, you need to separate the output file into separate result files. See
Splitting the SCI Dump File.
11. Run
the
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 System Testing for C
Use System Testing to test message-based systems and subsystems written in C.
320