Include Statements

System Testing for C

To avoid writing large test scripts, you can split test scripts into several files and link them using the INCLUDE statement.

This instruction consists of the keyword INCLUDE followed by the name of the file to include, in quotation marks (" ").

INCLUDE instructions can appear in high- and intermediate-level scenarios, but not in the lowest-level scenarios.

You can specify both absolute or relative filenames. There are no default filename extensions for included files. You must specify them explicitly.

Example

HEADER "Socket validation", "1.0", "beta"

INCLUDE "../initialization"

 

SCENARIO first

END SCENARIO

 

SCENARIO second

  INCLUDE "scenario_3.pts"

  SCENARIO level2

    FAMILY nominal, structural

    ...

  END SCENARIO

END SCENARIO