This topic defines the variables that can be used in C/C++test.

General

For Test Suite Files

  • file = The source/header file where the tested function is defined.
  • source file = The source file that defines a compilation unit where the tested function is defined.

For Test Suite Output Layout Only

The following variables are used only in the Test suite output file and layout (in the Test Configuration’s Generation> Test suite tab).

For Test Suite Output Layout and Import C++test 6.x Test Suites Wizard

The following variables are used in the Import C++test 6.x Test Suites wizard, as well as in the Test suite output file and layout (in the Test Configuration’s Generation> Test suite tab).

For Import C++test 6.x Test Suites Wizard Only

The following variable is used only in the Import C++test 6.x Test Suites wizard.

Advanced

For Temporary Files

${cpptest:testware_loc} - C++test temporary files location. Used in:

For Configuration Files

${cpptest:cfg_dir} - C++test configuration files location. Used in:

For Automatically-Generated Stubs

${cpptest:auto-stubs} - Auto-generated stub files location. This variable points to the value set in the Test Configuration’s  Auto-generated stubs> Output location, as shown in the screen shot below. This is basically a shortcut that synchronizes the directory where the stubs are generated and where they are picked up from.



Used in:

For Context-Specific Stubs

Used in: