TEST ... END TEST

C Test Script Language

Syntax

TEST <test_name> [ LOOP <nb>]

END TEST

Description

The TEST instruction starts a TEST block. This block describes the test case for a service. It contains one more ELEMENT blocks specifying the test.

In the test report, the <test_name> parameter flags the test within the SERVICE block. Tests are usually given numbers in ascending order.

A number of iterations can be specified for each test with the optional LOOP keyword.

The TEST LOOP statement can generate graph metric results in a .rtx file. To do this, you must set the environment variable ATURTX to True . The produced .rtx graph can be viewed in the Test Embedded Graphic Viewer.

The END TEST instruction marks the end of the TEST block.

Associated Rules

The TEST and END TEST instructions can only appear in a SERVICE block.

<test_name> is obligatory. If it is absent, the Test Script Compiler generates an error message.

<nb> is an integer expression strictly greater than 1.

Example

SERVICE COMPUTE_HISTO

# int x1, x2, y1, y2 ;

# int status ;

# T_HISTO histo;

TEST 1

FAMILY nominal

ELEMENT

Related Topics

ELEMENT | SERVICE