C++ test driver script reference

The Test RealTime Component Testing feature for C++ uses its own simple language for test scripting.

This language is designed to bring object-oriented programming techniques to software testing and is applicable to both object-oriented and procedural source code.

Notation conventions

Throughout this guide, command notation and argument parameters use the following standard convention:

 

Notation

Example

Meaning

BOLD

INCLUDE

Language keyword

<italic>

<filename>

Symbolic variables

[   ]

[<option>]

Optional items

{   }

{<filenames>}

Series of values

[   *]

[{<filenames>}]

Optional series of variables

|

on | off

OR operator

 

C++ Test Script Language keywords are not case sensitive. This means that STUB, stub, and Stub are equivalent. For conventional purposes however, this document uses upper-case notation for C++ Test Script Language keywords in order to differentiate from native source code.

 

Identifiers

A C++ Test Script Language identifier is a text string used as a label, such as the name of a test case in this kind of script.

Identifiers are made of an unlimited sequence of the following characters:

Spaces are not valid identifier characters.

Note that, as opposed to the C++ language, identifiers starting with a numeric character are allowed. For example, PROC 1 is syntactically correct.

Unlike keywords, these identifiers are case sensitive. This means that LABEL, label, and Label are three different identifiers.