Test Iterations

Component Testing for Ada

You can execute the test case several times by adding the number of iterations at the end of instruction TEST, for example:

TEST <name> LOOP <number>

You can add other test cases to the current test case by using the instruction NEXT_TEST:

TEST <name>

...

NEXT_TEST

...

END TEST

This instruction allows a new test case to be added that will be linked to the preceding test case. Each loop introduced by the instruction LOOP relates to the test case to which it is attached.

Test cases introduced by the instruction NEXT_TEST can be dissociated after the tests are run. With the ELEMENT structure, the different phases of the same test case can be dissociated.

Test phases introduced by the instruction ELEMENT can be included in the loops created by the LOOP instruction.