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 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.

If not, simply compile your source code with your usual compiler.

  1. Set up the TDP configuration file, called product.h. See Preparing a Products Header File.

  2. Compile the TDP Library. See Compiling the TDP Library.

  3. Link the compiled files together to create an executable test binary. See Linking the Application.

  4. Ensure that the System Testing agents are running on all remote target hosts. See Installing System Testing Agents.

  5. Run the supervisor script on the supervisor machine (the machine running OneTest Embedded) with the following command:

atsspv <supervisor.spv>

 

where supervisor is the name of the .spv supervisor script.

  1. Run the System Testing Report Generator to produce a test report. See System Testing Report Generator - atsmerge.

  2. Finally, launch the Graphical User Interface to view the test reports. See Opening Reports from the Command Line.

Related Topics

Command Line InterfaceAbout System Testing for CSystem Testing Supervisor - atsspvSystem Testing Report Generator - atsmerge