Loading ttcn/BTP/LibItsBtp_Functions.ttcn +4 −6 Original line number Original line Diff line number Diff line Loading @@ -33,7 +33,7 @@ * @desc Requests to bring the IUT in an initial state * @desc Requests to bring the IUT in an initial state * @param p_init The initialisation to trigger. * @param p_init The initialisation to trigger. */ */ function f_utInitializeIut(template (value) UtInitialize p_init) runs on ItsBtp { function f_utInitializeIut(template (value) UtBtpInitialize p_init) runs on ItsBtp { //deactivate btpPort default alts //deactivate btpPort default alts vc_btpDefaultActive := false; vc_btpDefaultActive := false; Loading @@ -41,9 +41,7 @@ utPort.send(p_init); utPort.send(p_init); tc_wait.start; tc_wait.start; alt { alt { //FIXME RGY As discussed, port in type is changed to a top-level union type [] utPort.receive(UtBtpResults: { utBtpInitializeResult := true}) { // [] utPort.receive(UtInitializeResult:true) { [] utPort.receive(UtCommonResults:{utInitializeResult:=true}) { tc_wait.stop; tc_wait.stop; log("*** f_utInitializeIut: INFO: IUT initialized ***"); log("*** f_utInitializeIut: INFO: IUT initialized ***"); } } Loading Loading @@ -74,7 +72,7 @@ utPort.send(p_event); utPort.send(p_event); alt { alt { [] utPort.receive(UtBtpTriggerResult:true) { [] utPort.receive(UtBtpResults: { utBtpTriggerResult := true }) { tc_wait.stop; tc_wait.stop; } } [] utPort.receive { [] utPort.receive { Loading ttcn/BTP/LibItsBtp_Templates.ttcn +2 −2 Original line number Original line Diff line number Diff line Loading @@ -44,7 +44,7 @@ module LibItsBtp_Templates { /** /** * @desc Initializes the BTP IUT. * @desc Initializes the BTP IUT. */ */ template (value) UtInitialize m_btpInitialize := { template (value) UtBtpInitialize m_btpInitialize := { hashedId8 := '0000000000000000'O hashedId8 := '0000000000000000'O } } Loading ttcn/BTP/LibItsBtp_TestSystem.ttcn +2 −4 Original line number Original line Diff line number Diff line Loading @@ -27,11 +27,9 @@ module LibItsBtp_TestSystem { */ */ type port UpperTesterPort message { type port UpperTesterPort message { out out UtInitialize, UtBtpTrigger; UtBtpInitialize, UtBtpTrigger; in in //FIXME RGY!!! As discussed, list of booleans is changed by a top-level union type UtBtpResults, UtBtpEventInd; // UtInitializeResult, UtBtpTriggerResult, UtBtpEventInd; UtCommonResults, UtBtpTriggerResult, UtBtpEventInd; } // end UpperTesterPort } // end UpperTesterPort } // end portDefinitions } // end portDefinitions Loading ttcn/BTP/LibItsBtp_TypesAndValues.ttcn +139 −117 Original line number Original line Diff line number Diff line Loading @@ -13,6 +13,7 @@ module LibItsBtp_TypesAndValues { // LibCommon // LibCommon import from LibCommon_BasicTypesAndValues all; import from LibCommon_BasicTypesAndValues all; import from LibCommon_DataStrings all; type octetstring BtpRawPayload; type octetstring BtpRawPayload; Loading Loading @@ -97,6 +98,28 @@ module LibItsBtp_TypesAndValues { group utCommonPrimitives { group utCommonPrimitives { /** * @desc Upper Tester message to initialize IUT * @member hashedId8 In case of secured mode set, hashedId8 indicate which certificate the IUT shall use */ type record UtBtpInitialize { Oct8 hashedId8 } with { variant "FIELDORDER(msb)" } /** * @desc Upper Tester results message of the Btp IUT * @member utBtpInitialize - * @member utBtpTriggerResult - */ type union UtBtpResults { boolean utBtpInitializeResult, boolean utBtpTriggerResult } with { variant "" } /** /** * @desc UT primitives for BTP * @desc UT primitives for BTP * @member btpA - * @member btpA - Loading @@ -105,20 +128,17 @@ module LibItsBtp_TypesAndValues { type union UtBtpTrigger { type union UtBtpTrigger { GenerateBtpA btpA, GenerateBtpA btpA, GenerateBtpB btpB GenerateBtpB btpB } with { variant "" } } //FIXME RGY As discussed, boolean results are replaced by a union of the results // type boolean UtBtpTriggerResult; type union UtBtpResults { boolean utBtpTriggerResult } type UtBtpResults.utBtpTriggerResult UtBtpTriggerResult; /** /** * @desc Upper Tester message to request triggering of an BTPA message at IUT * @desc Upper Tester message to request triggering of an BTPA message at IUT */ */ type record GenerateBtpA { type record GenerateBtpA { BtpAHeader btpAHeader BtpAHeader btpAHeader } with { variant "FIELDORDER(msb)" } } /** /** Loading @@ -126,6 +146,8 @@ module LibItsBtp_TypesAndValues { */ */ type record GenerateBtpB { type record GenerateBtpB { BtpBHeader btpBHeader BtpBHeader btpBHeader } with { variant "FIELDORDER(msb)" } } /** /** Loading @@ -133,6 +155,8 @@ module LibItsBtp_TypesAndValues { */ */ type record UtBtpEventInd { type record UtBtpEventInd { BtpRawPayload rawPayload BtpRawPayload rawPayload } with { variant "FIELDORDER(msb)" } } /** /** Loading @@ -140,13 +164,11 @@ module LibItsBtp_TypesAndValues { */ */ type record of UtBtpEventInd UtBtpEventIndList; type record of UtBtpEventInd UtBtpEventIndList; } } // with { // encode "LibItsCommon" // } } // end utPrimitives } // end utPrimitives with { with { variant "" encode "UpperTester" encode "UpperTester" } } Loading ttcn/CAM/LibItsCam_Functions.ttcn +13 −15 Original line number Original line Diff line number Diff line Loading @@ -41,7 +41,7 @@ module LibItsCam_Functions { * @desc Requests to bring the IUT in an initial state * @desc Requests to bring the IUT in an initial state * @param p_init The initialisation to trigger. * @param p_init The initialisation to trigger. */ */ function f_utInitializeIut(template (value) UtInitialize p_init) runs on ItsCam { function f_utInitializeIut(template (value) UtCamInitialize p_init) runs on ItsCam { //deactivate camPort default alts //deactivate camPort default alts vc_camDefaultActive := false; vc_camDefaultActive := false; Loading @@ -49,9 +49,7 @@ module LibItsCam_Functions { utPort.send(p_init); utPort.send(p_init); tc_wait.start; tc_wait.start; alt { alt { //FIXME RGY As discussed, port in type is changed to a top-level union type [] utPort.receive(UtCamResults: { utCamInitializeResult := true }) { // [] utPort.receive(UtInitializeResult:true) { [] utPort.receive(UtCommonResults:{utInitializeResult:=true}) { tc_wait.stop; tc_wait.stop; log("*** f_utInitializeIut: INFO: IUT initialized ***"); log("*** f_utInitializeIut: INFO: IUT initialized ***"); } } Loading Loading @@ -83,9 +81,7 @@ module LibItsCam_Functions { utPort.send(p_event); utPort.send(p_event); tc_wait.start; tc_wait.start; alt { alt { //FIXME RGY As discussed, port in type is changed to a top-level union type [] utPort.receive(UtCamResults: { utCamTriggerResult := true }) { // [] utPort.receive(UtCamTriggerResult:true) { [] utPort.receive(UpperTesterCamResults:{utCamTriggerResult:=true}) { tc_wait.stop; tc_wait.stop; } } [] utPort.receive { [] utPort.receive { Loading @@ -104,20 +100,22 @@ module LibItsCam_Functions { * @desc Changes the position of the IUT * @desc Changes the position of the IUT * @param p_position * @param p_position */ */ function f_utChangePosition(template (value) UtChangePosition p_position) runs on ItsCam { function f_utChangePosition(template (value) UtCamChangePosition p_position) runs on ItsCam { //deactivate camPort default alts //deactivate camPort default alts vc_camDefaultActive := false; vc_camDefaultActive := false; utPort.send(p_position); utPort.send(p_position); alt { alt { //FIXME RGY As discussed, port in type is changed to a top-level union type [] utPort.receive(UtCamResults: { utCamChangePositionResult := true}) { // [] utPort.receive(UtChangePositionResult:?) { [] utPort.receive(UtCommonResults:{utChangePositionResult:=?}) { tc_wait.stop; tc_wait.stop; } } [] utPort.receive { [] utPort.receive(UtCamResults: { utCamChangePositionResult := false }) { tc_wait.stop; tc_wait.stop; log("*** f_utChangePosition: INFO: IUT position change was not successful ***"); f_selfOrClientSyncAndVerdict("error", e_error); } [] a_utDefault() { } } [] tc_wait.timeout { [] tc_wait.timeout { log("*** " & testcasename() & ": INFO: Could not receive expected UT message from IUT in time ***"); log("*** " & testcasename() & ": INFO: Could not receive expected UT message from IUT in time ***"); Loading Loading @@ -391,7 +389,7 @@ module LibItsCam_Functions { function f_prInitialState( function f_prInitialState( in Scenario p_scenario := e_staticPosition, in Scenario p_scenario := e_staticPosition, in boolean p_awaitInitialCAM := true, in boolean p_awaitInitialCAM := true, in template (value) UtInitialize p_camInitialize := m_camInitialize in template (value) UtCamInitialize p_camInitialize := m_camInitialize ) runs on ItsCam { ) runs on ItsCam { f_utInitializeIut(p_camInitialize); f_utInitializeIut(p_camInitialize); Loading Loading
ttcn/BTP/LibItsBtp_Functions.ttcn +4 −6 Original line number Original line Diff line number Diff line Loading @@ -33,7 +33,7 @@ * @desc Requests to bring the IUT in an initial state * @desc Requests to bring the IUT in an initial state * @param p_init The initialisation to trigger. * @param p_init The initialisation to trigger. */ */ function f_utInitializeIut(template (value) UtInitialize p_init) runs on ItsBtp { function f_utInitializeIut(template (value) UtBtpInitialize p_init) runs on ItsBtp { //deactivate btpPort default alts //deactivate btpPort default alts vc_btpDefaultActive := false; vc_btpDefaultActive := false; Loading @@ -41,9 +41,7 @@ utPort.send(p_init); utPort.send(p_init); tc_wait.start; tc_wait.start; alt { alt { //FIXME RGY As discussed, port in type is changed to a top-level union type [] utPort.receive(UtBtpResults: { utBtpInitializeResult := true}) { // [] utPort.receive(UtInitializeResult:true) { [] utPort.receive(UtCommonResults:{utInitializeResult:=true}) { tc_wait.stop; tc_wait.stop; log("*** f_utInitializeIut: INFO: IUT initialized ***"); log("*** f_utInitializeIut: INFO: IUT initialized ***"); } } Loading Loading @@ -74,7 +72,7 @@ utPort.send(p_event); utPort.send(p_event); alt { alt { [] utPort.receive(UtBtpTriggerResult:true) { [] utPort.receive(UtBtpResults: { utBtpTriggerResult := true }) { tc_wait.stop; tc_wait.stop; } } [] utPort.receive { [] utPort.receive { Loading
ttcn/BTP/LibItsBtp_Templates.ttcn +2 −2 Original line number Original line Diff line number Diff line Loading @@ -44,7 +44,7 @@ module LibItsBtp_Templates { /** /** * @desc Initializes the BTP IUT. * @desc Initializes the BTP IUT. */ */ template (value) UtInitialize m_btpInitialize := { template (value) UtBtpInitialize m_btpInitialize := { hashedId8 := '0000000000000000'O hashedId8 := '0000000000000000'O } } Loading
ttcn/BTP/LibItsBtp_TestSystem.ttcn +2 −4 Original line number Original line Diff line number Diff line Loading @@ -27,11 +27,9 @@ module LibItsBtp_TestSystem { */ */ type port UpperTesterPort message { type port UpperTesterPort message { out out UtInitialize, UtBtpTrigger; UtBtpInitialize, UtBtpTrigger; in in //FIXME RGY!!! As discussed, list of booleans is changed by a top-level union type UtBtpResults, UtBtpEventInd; // UtInitializeResult, UtBtpTriggerResult, UtBtpEventInd; UtCommonResults, UtBtpTriggerResult, UtBtpEventInd; } // end UpperTesterPort } // end UpperTesterPort } // end portDefinitions } // end portDefinitions Loading
ttcn/BTP/LibItsBtp_TypesAndValues.ttcn +139 −117 Original line number Original line Diff line number Diff line Loading @@ -13,6 +13,7 @@ module LibItsBtp_TypesAndValues { // LibCommon // LibCommon import from LibCommon_BasicTypesAndValues all; import from LibCommon_BasicTypesAndValues all; import from LibCommon_DataStrings all; type octetstring BtpRawPayload; type octetstring BtpRawPayload; Loading Loading @@ -97,6 +98,28 @@ module LibItsBtp_TypesAndValues { group utCommonPrimitives { group utCommonPrimitives { /** * @desc Upper Tester message to initialize IUT * @member hashedId8 In case of secured mode set, hashedId8 indicate which certificate the IUT shall use */ type record UtBtpInitialize { Oct8 hashedId8 } with { variant "FIELDORDER(msb)" } /** * @desc Upper Tester results message of the Btp IUT * @member utBtpInitialize - * @member utBtpTriggerResult - */ type union UtBtpResults { boolean utBtpInitializeResult, boolean utBtpTriggerResult } with { variant "" } /** /** * @desc UT primitives for BTP * @desc UT primitives for BTP * @member btpA - * @member btpA - Loading @@ -105,20 +128,17 @@ module LibItsBtp_TypesAndValues { type union UtBtpTrigger { type union UtBtpTrigger { GenerateBtpA btpA, GenerateBtpA btpA, GenerateBtpB btpB GenerateBtpB btpB } with { variant "" } } //FIXME RGY As discussed, boolean results are replaced by a union of the results // type boolean UtBtpTriggerResult; type union UtBtpResults { boolean utBtpTriggerResult } type UtBtpResults.utBtpTriggerResult UtBtpTriggerResult; /** /** * @desc Upper Tester message to request triggering of an BTPA message at IUT * @desc Upper Tester message to request triggering of an BTPA message at IUT */ */ type record GenerateBtpA { type record GenerateBtpA { BtpAHeader btpAHeader BtpAHeader btpAHeader } with { variant "FIELDORDER(msb)" } } /** /** Loading @@ -126,6 +146,8 @@ module LibItsBtp_TypesAndValues { */ */ type record GenerateBtpB { type record GenerateBtpB { BtpBHeader btpBHeader BtpBHeader btpBHeader } with { variant "FIELDORDER(msb)" } } /** /** Loading @@ -133,6 +155,8 @@ module LibItsBtp_TypesAndValues { */ */ type record UtBtpEventInd { type record UtBtpEventInd { BtpRawPayload rawPayload BtpRawPayload rawPayload } with { variant "FIELDORDER(msb)" } } /** /** Loading @@ -140,13 +164,11 @@ module LibItsBtp_TypesAndValues { */ */ type record of UtBtpEventInd UtBtpEventIndList; type record of UtBtpEventInd UtBtpEventIndList; } } // with { // encode "LibItsCommon" // } } // end utPrimitives } // end utPrimitives with { with { variant "" encode "UpperTester" encode "UpperTester" } } Loading
ttcn/CAM/LibItsCam_Functions.ttcn +13 −15 Original line number Original line Diff line number Diff line Loading @@ -41,7 +41,7 @@ module LibItsCam_Functions { * @desc Requests to bring the IUT in an initial state * @desc Requests to bring the IUT in an initial state * @param p_init The initialisation to trigger. * @param p_init The initialisation to trigger. */ */ function f_utInitializeIut(template (value) UtInitialize p_init) runs on ItsCam { function f_utInitializeIut(template (value) UtCamInitialize p_init) runs on ItsCam { //deactivate camPort default alts //deactivate camPort default alts vc_camDefaultActive := false; vc_camDefaultActive := false; Loading @@ -49,9 +49,7 @@ module LibItsCam_Functions { utPort.send(p_init); utPort.send(p_init); tc_wait.start; tc_wait.start; alt { alt { //FIXME RGY As discussed, port in type is changed to a top-level union type [] utPort.receive(UtCamResults: { utCamInitializeResult := true }) { // [] utPort.receive(UtInitializeResult:true) { [] utPort.receive(UtCommonResults:{utInitializeResult:=true}) { tc_wait.stop; tc_wait.stop; log("*** f_utInitializeIut: INFO: IUT initialized ***"); log("*** f_utInitializeIut: INFO: IUT initialized ***"); } } Loading Loading @@ -83,9 +81,7 @@ module LibItsCam_Functions { utPort.send(p_event); utPort.send(p_event); tc_wait.start; tc_wait.start; alt { alt { //FIXME RGY As discussed, port in type is changed to a top-level union type [] utPort.receive(UtCamResults: { utCamTriggerResult := true }) { // [] utPort.receive(UtCamTriggerResult:true) { [] utPort.receive(UpperTesterCamResults:{utCamTriggerResult:=true}) { tc_wait.stop; tc_wait.stop; } } [] utPort.receive { [] utPort.receive { Loading @@ -104,20 +100,22 @@ module LibItsCam_Functions { * @desc Changes the position of the IUT * @desc Changes the position of the IUT * @param p_position * @param p_position */ */ function f_utChangePosition(template (value) UtChangePosition p_position) runs on ItsCam { function f_utChangePosition(template (value) UtCamChangePosition p_position) runs on ItsCam { //deactivate camPort default alts //deactivate camPort default alts vc_camDefaultActive := false; vc_camDefaultActive := false; utPort.send(p_position); utPort.send(p_position); alt { alt { //FIXME RGY As discussed, port in type is changed to a top-level union type [] utPort.receive(UtCamResults: { utCamChangePositionResult := true}) { // [] utPort.receive(UtChangePositionResult:?) { [] utPort.receive(UtCommonResults:{utChangePositionResult:=?}) { tc_wait.stop; tc_wait.stop; } } [] utPort.receive { [] utPort.receive(UtCamResults: { utCamChangePositionResult := false }) { tc_wait.stop; tc_wait.stop; log("*** f_utChangePosition: INFO: IUT position change was not successful ***"); f_selfOrClientSyncAndVerdict("error", e_error); } [] a_utDefault() { } } [] tc_wait.timeout { [] tc_wait.timeout { log("*** " & testcasename() & ": INFO: Could not receive expected UT message from IUT in time ***"); log("*** " & testcasename() & ": INFO: Could not receive expected UT message from IUT in time ***"); Loading Loading @@ -391,7 +389,7 @@ module LibItsCam_Functions { function f_prInitialState( function f_prInitialState( in Scenario p_scenario := e_staticPosition, in Scenario p_scenario := e_staticPosition, in boolean p_awaitInitialCAM := true, in boolean p_awaitInitialCAM := true, in template (value) UtInitialize p_camInitialize := m_camInitialize in template (value) UtCamInitialize p_camInitialize := m_camInitialize ) runs on ItsCam { ) runs on ItsCam { f_utInitializeIut(p_camInitialize); f_utInitializeIut(p_camInitialize); Loading