Loading DiameterS6a/ttcn/DiameterS6a_TestSystem.ttcn +40 −5 Original line number Diff line number Diff line Loading @@ -9,6 +9,16 @@ module DiameterS6a_TestSystem { import from LibCommon_Sync { type SelfSyncComp }; import from LibCommon_Time { modulepar PX_TAC }; // LibDiameter import from LibDiameter_TypesAndValues { type Session_Id_AVP, Origin_Host_AVP, Origin_Realm_AVP, Destination_Host_AVP }; // DiameterS6a import from DiameterS6a_TypesAndValues all; Loading @@ -25,7 +35,7 @@ module DiameterS6a_TestSystem { } /** * @desc Diameter S6a port message for MME IUT role * @desc Diameter S6a port message for HSS IUT role */ type port Diameter_MME_S6aPort message { in DIAMETER_S6a_HSS_Initiated_Message; Loading @@ -33,10 +43,10 @@ module DiameterS6a_TestSystem { } // End of type Diameter_MME_S6aPort /** * @desc Diameter S6a port message for HSS IUT role * @desc Diameter S6a port message for MME IUT role */ type port Diameter_HSS_S6aPort message { in DIAMETER_S6a_MME_Initiated_Message; in DIAMETER_S6a_HSS_Initiated_Message; out DIAMETER_S6a_HSS_Initiated_Message; } // End of type Diameter_HSS_S6aPort Loading @@ -48,12 +58,37 @@ module DiameterS6a_TestSystem { * @desc The test system interface */ group TestSystemInterfaces { /** * @desc TestAdapter interface description * @member MME_S6a TTCN-3 port for MME IUT role * @member HSS_S6a TTCN-3 port for HSS IUT role */ type component TestAdapter extends SelfSyncComp { port Diameter_MME_S6aPort MME_S6a; // MME IUT role port Diameter_HSS_S6aPort HSS_S6a; // HSS IUT role /** TTCN-3 port for HSS IUT role */ port Diameter_MME_S6aPort MME_S6a; /** TTCN-3 port for MME IUT role */ port Diameter_HSS_S6aPort HSS_S6a; // Global variables /** Session identfier used by the test adapter */ var template (value) Session_Id_AVP vc_sessionId; /** Origin Host of the test system */ var template (value) Origin_Host_AVP vc_originHost; /** Origin realm of the test system */ var template (value) Origin_Realm_AVP vc_originRealm; /** Origin Host of the IUT */ // var template (value) Origin_Host_AVP vc_originHost_IUT; /** Origin realm of the IUT */ // var template (value) Origin_Realm_AVP vc_originRealm_IUT; /** TODO */ var template (value) Destination_Host_AVP vc_destinationHost; /** TODO */ var template (value) Destination_Host_AVP vc_destinationRealm; // Timers - Do not forget to update default altstep when adding new tiner /** Timer used to detect expiration of an expected message */ timer tc_ac := PX_TAC; } } // End of group TestSystemInterfaces Loading Loading
DiameterS6a/ttcn/DiameterS6a_TestSystem.ttcn +40 −5 Original line number Diff line number Diff line Loading @@ -9,6 +9,16 @@ module DiameterS6a_TestSystem { import from LibCommon_Sync { type SelfSyncComp }; import from LibCommon_Time { modulepar PX_TAC }; // LibDiameter import from LibDiameter_TypesAndValues { type Session_Id_AVP, Origin_Host_AVP, Origin_Realm_AVP, Destination_Host_AVP }; // DiameterS6a import from DiameterS6a_TypesAndValues all; Loading @@ -25,7 +35,7 @@ module DiameterS6a_TestSystem { } /** * @desc Diameter S6a port message for MME IUT role * @desc Diameter S6a port message for HSS IUT role */ type port Diameter_MME_S6aPort message { in DIAMETER_S6a_HSS_Initiated_Message; Loading @@ -33,10 +43,10 @@ module DiameterS6a_TestSystem { } // End of type Diameter_MME_S6aPort /** * @desc Diameter S6a port message for HSS IUT role * @desc Diameter S6a port message for MME IUT role */ type port Diameter_HSS_S6aPort message { in DIAMETER_S6a_MME_Initiated_Message; in DIAMETER_S6a_HSS_Initiated_Message; out DIAMETER_S6a_HSS_Initiated_Message; } // End of type Diameter_HSS_S6aPort Loading @@ -48,12 +58,37 @@ module DiameterS6a_TestSystem { * @desc The test system interface */ group TestSystemInterfaces { /** * @desc TestAdapter interface description * @member MME_S6a TTCN-3 port for MME IUT role * @member HSS_S6a TTCN-3 port for HSS IUT role */ type component TestAdapter extends SelfSyncComp { port Diameter_MME_S6aPort MME_S6a; // MME IUT role port Diameter_HSS_S6aPort HSS_S6a; // HSS IUT role /** TTCN-3 port for HSS IUT role */ port Diameter_MME_S6aPort MME_S6a; /** TTCN-3 port for MME IUT role */ port Diameter_HSS_S6aPort HSS_S6a; // Global variables /** Session identfier used by the test adapter */ var template (value) Session_Id_AVP vc_sessionId; /** Origin Host of the test system */ var template (value) Origin_Host_AVP vc_originHost; /** Origin realm of the test system */ var template (value) Origin_Realm_AVP vc_originRealm; /** Origin Host of the IUT */ // var template (value) Origin_Host_AVP vc_originHost_IUT; /** Origin realm of the IUT */ // var template (value) Origin_Realm_AVP vc_originRealm_IUT; /** TODO */ var template (value) Destination_Host_AVP vc_destinationHost; /** TODO */ var template (value) Destination_Host_AVP vc_destinationRealm; // Timers - Do not forget to update default altstep when adding new tiner /** Timer used to detect expiration of an expected message */ timer tc_ac := PX_TAC; } } // End of group TestSystemInterfaces Loading