Command Line Interface
Use Component Testing for Java to test individual components of your Java source code.
To perform component testing on Java source code:
First, set up the necessary environment variables. See Setting Environment Variables.
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.
Use the generated .java templates to write a test script. See the Java Test Primitives reference section.
Compile the generated test harness source file. See Compiling the Test Harness.
If you are using any of the runtime analysis tools, instrument and compile the source code. See Instrumenting and Compiling the Source Code.
If not, simply compile your source code with your usual compiler.
Set up the TDP configuration file Products.java. See Preparing a Products Header File.
Compile the TDP Library. See Compiling the TDP Library.
Link the compiled files together to create an executable test binary. See Linking the Application.
Execute the test binary. See Running the Test Harness or Application.
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.
Run the Report Generator to produce a test report. See the corresponding Report Generator command line section in the Reference section.
Finally, launch the Graphical User Interface to view the test reports. See Opening Reports from the Command Line.
Related Topics