Declaration files

Component Testing for C++

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 Reference section for details about the language.

Related Topics

C++ Test Driver Script | Simulated, Additional and Included Files