SCENARIO ... LOOP ... END SCENARIO

System Testing Test Script Language.

Syntax

SCENARIO <scenario> [ LOOP <iteration_factor> ]

END SCENARIO

Description

This instruction allows you to define a scenario block. This is the highest level of instruction.

<scenario> is the name of the scenario.

The optional LOOP keyword lets you state the identifier's scenario <iteration_factor>.

Associated Rules

Scenarios at the same level must have different names.

A scenario that contains other scenarios can only include FAMILY and SCENARIO statements.

<scenario> must begin with an upper or lower case letter and may contain letters, numbers, underscores, and dollar signs.

<iteration_factor> must be a positive integer.

Example

The Jn variable (n is the nesting level of the scenario that starts at 1) gives the current scenario iteration number.

SCENARIO principal LOOP 10

FAMILY nominal, robustness

...

SCENARIO number_one

...

SCENARIO number_one_two LOOP 10

CALL ...

PRINT iteration_number_one_two, J3

END SCENARIO

...

END SCENARIO

SCENARIO number_two LOOP 5

...

CALL ...

PRINT iteration_number_two, J2

PRINT global_iteration, J1

...

END SCENARIO

END SCENARIO