Test Script Structure

Component Testing for Ada

The Ada Test Script Language allows you to structure tests to:

All instructions in a test script have the following characteristics:

The basic structure of a Component Testing .ptu test script for Ada 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

 

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 BasicsTest Iterations