Using environments

Component Testing for C

The USE keyword declares the use of an environment (in other words, the beginning of that environment's visibility).

The impact or visibility of an environment is determined by the position at which you declare the environment's use with the USE statement.

The initial values and tests associated with the environment are applied as follows, depending on the position of the declaration:

  • To all the tests in a program

  • To all the tests in a service

  • To all the ELEMENT blocks of a particular test

  • Within one ELEMENT block of a given test.