Ada test script structure

The Ada test script language allows you to structure tests to:

Test script filenames must contain only plain alphanumerical characters.

Basic structure

A typical Ada Component Testing .ptu test script looks like this:

HEADER add, 1, 1

<variable declarations for the test script>

BEGIN

SERVICE add

  <local variable declarations for the service>

  TEST 1

  FAMILY nominal

  ELEMENT

    VAR variable1, INIT=0, EV=0

    VAR variable2, INIT=0, EV=0

    #<call to the procedure under test>

  END ELEMENT

  END TEST

END SERVICE

 

All instructions in a test script have the following characteristics:

Structure statements

The following statements allow you to describe the structure of a test.

The three-level structure of the test scripts has been deliberately kept simple. This structure allows:

Related Topics

Ada test script language referenceAda test script keywords  | Writing a test script