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:

In the test script, the testers can add an optional REQUIREMENT statement in order to linked the tests to one or several requirements of the application under test.

The REQUIREMENT instruction appears within TEST blocks, where it defines the requirements for this test or within SERVICE blocks where it defines the requirements for the tests including in this service or before the first SERVICE block where it defines the requirements for the all the tests in the file.

Related Topics

Ada Test Script BasicsTest Iterations