Titan



testcase

A testcase is a special function, which is always executed (runs) on the main test component (MTC).

Related keywords:


testcase testcase_identifier ( [ testcase_parameters ...  ] ) runs on component_type_ref  [ system system_component_type_ref ] {statement_block};


Example 1a: MTC & System present in the configuration

testcase tc_MyTestCase() 
   runs on MyMTCType_CT 
   system MyTestSystemType_SCT 
   { ... };

The test case tc_MyTestCase has no input parameters. MTC is of type MyMTCType_CT and the system interface is of type MyTestSystemType_SCT.  The statement block contains the behavior defined in the curly brackets.


Example 1b: Configuration consists only of an MTC

testcase tc_MyTestCase2() 
   runs on MyMTCType_CT 
   { ... };

The test case tc_MyTestCase2 has no input parameters. MTC is of type MyMTCType_CT.  The statement block contains the behavior defined in the curly brackets.



BNF definition of testcase