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:

  1. First, set up the necessary environment variables. See Setting Environment Variables.
  2. Write a System Testing .pts test script. See System Testing language reference.
  3. 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.

  1. Compile the generated test harness source file. See Compiling the Test Harness.
  2. 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.
  3. Set up the TDP configuration file, called product.h. See Preparing a Products Header File.
  4. Compile the TDP Library. See Compiling the TDP Library.
  5. Link the compiled files together to create an executable test binary. See Linking the Application.
  6. Ensure that the System Testing agents are running on all remote target hosts. See Installing System Testing Agents.
  7. Run the supervisor script on the supervisor machine (the machine running HCL OneTest Embedded) with the following command:
    atsspv <supervisor.spv>
    where supervisor is the name of the .spv supervisor script.
  8. Run theSystem Testing Report Generatorto produce a test report. See System Testing Report Generator - atsmerge.
  9. 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