Ada test script language reference

Component Testing for Ada uses its own simple language for test scripting.

This section describes each keyword of the Ada test script language, including:

Notation conventions

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







Language keyword



Symbolic variables

[   ]


Optional items

{   }


Series of values

[{   }]


Optional series of variables


on | off

OR operator


Ada test script keywords are case insensitive. This means that STUB, stub, and Stub are interpreted the same way. The keyword others is an exception, and must always be expressed in lower case.

For conventional purposes however, this document uses upper-case notation for the Ada test script keywords in order to differentiate from native source code.

Split statements

Ada test script statements may be split over several lines in a .ptu test script. Continued lines must start with the ampersand ('&') symbol to be recognized as a continuation of the previous line. No tabs or spaces should precede the ampersand.

Statements must be shorter than 2048 characters, although this limit may be lower on some platforms.

Language identifiers

An Ada test script identifier is a text string used as a label, such as the name of a TEST or a STUB in a .ptu test script.

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

Spaces are not valid identifier characters.

Note that identifiers starting with a numeric character are allowed. The following statement, for example, is syntactically correct:





Ada test script identifiers are case sensitive. This means that LABEL, label, and Label are three different identifiers.