Loading ttcn/BTP/LibItsBtp_Functions.ttcn +44 −0 Original line number Diff line number Diff line Loading @@ -42,13 +42,46 @@ } // end configurationFunctions group btpAltsteps { /** * @desc The base default. */ altstep a_default() runs on ItsNt { [] btpPort.receive { f_selfOrClientSyncAndVerdict("error", e_error, "*** a_default: Received an unexpected message ***"); } [] tc_wait.timeout { f_selfOrClientSyncAndVerdict("error", e_timeout, "*** a_default: Timeout while awaiting reaction of the IUT prior to Upper Tester action ***"); } [] tc_ac.timeout { f_selfOrClientSyncAndVerdict("error", e_timeout, "*** a_default: Timeout while awaiting the reception of a message ***"); } [] a_shutdown() { f_poDefault(); f_cfDown(); log("*** a_default: INFO: TEST COMPONENT NOW STOPPING ITSELF! ***"); stop; } } } //end btpAltsteps group preambles { /** * @desc The default preamble. */ function f_prDefault() runs on ItsNt { activate(a_default()); } /** * @desc Brings the IUT into an initial state. */ function f_prInitialState() runs on ItsNt { f_prDefault(); f_utInitializeIut(); } Loading @@ -56,6 +89,17 @@ } // end of group preambles group postambles { /** * @desc The default postamble. */ function f_poDefault() runs on ItsNt { //empty } } // end postambles group upperTester { /** Loading Loading
ttcn/BTP/LibItsBtp_Functions.ttcn +44 −0 Original line number Diff line number Diff line Loading @@ -42,13 +42,46 @@ } // end configurationFunctions group btpAltsteps { /** * @desc The base default. */ altstep a_default() runs on ItsNt { [] btpPort.receive { f_selfOrClientSyncAndVerdict("error", e_error, "*** a_default: Received an unexpected message ***"); } [] tc_wait.timeout { f_selfOrClientSyncAndVerdict("error", e_timeout, "*** a_default: Timeout while awaiting reaction of the IUT prior to Upper Tester action ***"); } [] tc_ac.timeout { f_selfOrClientSyncAndVerdict("error", e_timeout, "*** a_default: Timeout while awaiting the reception of a message ***"); } [] a_shutdown() { f_poDefault(); f_cfDown(); log("*** a_default: INFO: TEST COMPONENT NOW STOPPING ITSELF! ***"); stop; } } } //end btpAltsteps group preambles { /** * @desc The default preamble. */ function f_prDefault() runs on ItsNt { activate(a_default()); } /** * @desc Brings the IUT into an initial state. */ function f_prInitialState() runs on ItsNt { f_prDefault(); f_utInitializeIut(); } Loading @@ -56,6 +89,17 @@ } // end of group preambles group postambles { /** * @desc The default postamble. */ function f_poDefault() runs on ItsNt { //empty } } // end postambles group upperTester { /** Loading