9. External Configuration Data

9 External Configuration Data

9.1 General

To avoid hard-coding data values related to the test and/or System Under Test (SUT) in the test suites, the data can instead be specified through configuration files or strings that Common Test reads before the start of a test run. External configuration data makes it possible to change test properties without modifying the test suites using the data. Examples of configuration data follows:

  • Addresses to the test plant or other instruments
  • User login information
  • Names of files needed by the test
  • Names of programs to be executed during the test
  • Any other variable needed by the test

9.2 Syntax

A configuration file can contain any number of elements of the type:

{CfgVarName,Value}.

where

CfgVarName = atom()
Value = term(