Test RealTime Reference Manual
Test RealTime - User Guide
Additional directories are directories that are declared to only contain additional
source files.
Included Files
Included files are normal source files under test. However, instead of being compiled
separately during the test, they are included and compiled with the C++ Test Driver
script.
Header files are automatically considered as included files, even if they are not
specified as such.
Source files under test should be specified as included when:
·
The file contains the class definition of a class you want to test
·
A function or a variable definition depends upon a type which is defined in the
file under test itself
·
You need access in your test script to a static variable or function, defined in the
file under test
In most cases, you do not have to specify files to be included. The Component
Testing wizard automatically generates a warning message in the Output Window,
when it detects files that should be specified as included files. If this occurs, rerun the
Component Testing wizard, and select the files to be included in the Include source
files section of the Advanced Options dialog box.
Declaration Files
A declaration file (.dcl) ensures that the types, class, variables and functions needed
by your test script will be available in your code.
Using a separate .dcl file is optional, since it is merely included within the C++ Test
Driver script. It is possible to declare types, classes, variables and functions directly
within an C++ Test Driver script file.
Typically, .dcl files are created by the Component Testing Wizard and do not need to
be edited by the user. If you do need to define your own declarations for a test, it is
recommended that you do this within the Test Driver script. Declaration files appear
in the Component Testing for C++ test node.
Declaration files must be written in C++ Test Script Language and contain native
code declarations. See the Test RealTime Reference Manual for details about the
language.
C++ Test Reports
Understanding Component Testing for C++ Reports
168