Using Command line System Testing for C
Command Line Interface
Use System Testing to test message-based systems and subsystems written in C.
To perform message based testing on a system:
- First, set up the necessary environment variables. See Setting Environment Variables.
- Write a System Testing .pts test script. See System Testing language reference.
- Write a System Testing .spv supervisor script. See System Testing language reference.
Note Manually created supervisor scripts may be overwritten by the HCL OneTest™ Embedded graphical user interface.
- 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.Note: If not, simply compile your source code with your usual compiler.
- Set up the TDP configuration file, called product.h. 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.
- Ensure that the System Testing agents are running on all remote target hosts. See Installing System Testing Agents.
- Run the supervisor script on the supervisor machine (the machine running
HCL OneTest™ Embedded) with the following
command:
where supervisor is the name of the .spv supervisor script.atsspv <supervisor.spv>
- Run theSystem Testing Report Generatorto produce a test report. See System Testing Report Generator - atsmerge.
- Finally, launch theGraphical User Interfaceto view the test reports. See Opening Reports from the Command Line.
Related Topics
Command Line Interface | About System Testing for C | System Testing Supervisor - atsspv | System Testing Report Generator - atsmerge