Titan



module


The principal building blocks of TTCN-3 are modules written as free text files: line breaks or paragraph marks may be used without restrictions. 

Related keywords:


module module_identifier { [ module_definitions ]  [ control {module_control } ] } [ with attributes ]


Example

module Principal {
modulepar float tsp_hlavni;
modulepar integer tsp_vypinac, tsp_nouzove;

type component CT {};
type enumerated Examplg {jeudi, vendredi, samedi};

testcase tcprov() runs on CT {
/* Imagine Test Case body here */
};
control {execute (tc_prov())}

}

The module Principal declared here has one float (tsp_hlavni) and two integer module parameters (tsp_vypinac, tsp_nouzove), an empty component type (CT) as well as an enumerated type (Examplg) defined in the module definitions part. The control part contains the execution of the test case tc_prov.



BNF definition of module