Loading AtsNIT_SipSip/ttcn/AtsNIT_SipSip_BC_TCFunctions.ttcn 0 → 100644 +65 −0 Original line number Diff line number Diff line /* * @author STF 369 * @version $Id$ * @desc This module provides the TC functions used by the test component * for SIP side of the SUT. */ module AtsNIT_SipSip_BC_TCFunctions { //LibCommon import from LibCommon_Sync all; import from LibCommon_VerdictControl all; import from LibCommon_AbstractData all; import from LibCommon_DataStrings all; //LibSip import from LibSip_SIPTypesAndValues all; import from LibSip_SDPTypes all; import from LibSip_Templates all; import from LibSip_Steps all; import from LibSip_Interface all; import from LibSip_PIXITS all; import from LibSip_XMLTypes all; //LibIms import from LibIms_Templates all; import from LibIms_Steps all; import from LibIms_SIPTypesAndValues all; import from LibIms_Interface all; import from LibIms_PIXITS all; //Type to adress the IUT to send it message //type Address address; type record address { //HostPort charstring host optional, // hostname, IPv4 or IPv6 integer portField optional // represented as an integer }with { encode "SIPCodec" } /* * @desc The group structure is according to the TSS: * */ group BasicCall { group TP1_BC_Successful { group TP101_Normal_Call_Esthablishment { /* * @desc This is the test case function (originating side) for AtsNIT_TC_SS___XX__01 * @param p_CSeq_s Transaction Id */ function f_AtsNIT_TC_SS___XX__01o(in CSeq p_cSeq_s) runs on ImsComponent { //c_userProfile_ICSCFwithHomeUE or c_userProfile_IBCFwithHomeUE f_IMS_preamble_MGCF(c_userProfile_ICSCFwithHomeUE, p_cSeq_s); // assignment of PIXIT values to component variable // f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // Testbody // f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); f_SIP_postamble_IMS1_withoutRegistration(); } // end function f_IMS_TC_101_001 } // end group TP101_Normal_Call_Esthablishment } // end group TP1_BC_Successful } // end module BasicCall } // end AtsNIT_SipSip_BC_TCFunctions No newline at end of file AtsNIT_SipSip/ttcn/AtsNIT_SipSip_PICS.ttcn 0 → 100644 +987 −0 File added.Preview size limit exceeded, changes collapsed. Show changes AtsNIT_SipSip/ttcn/AtsNIT_SipSip_PIXITS.ttcn 0 → 100644 +148 −0 Original line number Diff line number Diff line /* * @author STF 366 * @version $Id$ * @desc This module contains the PIXIT parameters */ module AtsNIT_SipSip_PIXITS { import from LibCommon_BasicTypesAndValues all; import from LibCommon_DataStrings all; import from LibSip_SIPTypesAndValues all; /* ** @remark Reference: XXX ** @desc What is the local receive policy for SIP? * Value of PX_LOCAL_POLICY * 1: receive no cause due to local policy, 2: receive cause #31 due to local policy */ modulepar { /** @desc integer for testcase variant according to table entry in table to test purpose description, if present */ integer PX_TC_VA:=1; /** @desc Bitstring[5] for Bearer Capability Information Transfer Capability used for mapping between * ISUP: Bearer Capability information element within USI parameter and * SIP: SDP offer or PSTN XML BearerCapability * Used in TC_301_014, TC_301_015 and TC_301_023 */ Bit5 PX_BearerCapabilityInformationTransferCapability:='00000'B; /** @desc Bitstring[5] for Bearer Capability Information Transfer Capability used for mapping between * ISUP: Bearer Capability information element within ATP parameter and * SIP: PSTN XML BearerCapability * Used in TC_ */ Bit5 PX_BearerCapabilityInformationTransferCapability2:='00000'B; /** @desc Bitstring[7] for High layer characteristics identification used for mapping between * ISUP: High layer compatibility information element within ATP or UTSI parameter and * SIP: PSTN XML HighLayerCompatibility * Used in TC_105_012, TC_105_013, TC_106_006, TC_106_007, TC_107_008, TC_107_009, * TC_301_031, TC_301_032 and TC_301_033, TC_304_011, TC_304_012, TC_305_004, * TC_305_007, TC_306_005 and TC_306_008 */ Bit7 PX_HighLayerCharacteristicsIdentification:='0000001'B; /** @desc Bitstring[7] for 2nd High layer characteristics identification used for mapping between * ISUP: High layer compatibility information element within ATP parameter and * SIP: PSTN XML HighLayerCompatibility * Used in TC104_015, TC_104_016, TC_301_033, TC_305_004, TC_305_007, TC_306_005 * and TC_306_008 */ Bit7 PX_HighLayerCharacteristicsIdentification2:='0000001'B; /** @desc Bitstring[5] for Low layer Information Transfer Capability used for mapping between * ISUP: Low layer compatibility information element within ATP parameter and * SIP: PSTN XML LowLayerCompatibility * Used in TC_104_018, TC_104_019, TC_106_008, TC_107_010, TC_301_030, TC_305_003 and * TC_306_004 */ Bit5 PX_LowLayerInformationTransferCapability:='00000'B; /** @desc Bitstring[7] for Progress description used for mapping between * ISUP: Progress indicator information element within ATP parameter and * SIP: PSTN XML ProgressIndicator * Used in TC_104_008, TC_104_020, TC_105_006, TC_107_004, TC_301_029, TC_305_002 and * TC_306_003 */ Bit7 PX_ProgressIndicator:='0000001'B; /** @desc hexstring of length 1 for NetworkIndicator description used for mapping between * ISUP: Networkindicator information element within CUG parameter and * SIP: CUG XML NetworkIndicator * Used in TC_516_XXX * length of it must be 1 */ hexstring PX_CUG_NetworkIndicator:='0'H; /** @desc hexstring of length 2 for InterlockBinaryCode description used for mapping between * ISUP: InterlockBinaryCode information element within CUG parameter and * SIP: CUG XML InterlockBinaryCode * Used in TC_516_XXX * length of it must be 2 */ hexstring PX_CUG_InterlockBinaryCode:='00'H; /** @desc Integer for Cause value used for mapping between * ISUP: Cause value within CAUI parameter and * SIP: Q.850 cause value in Reason header * Used in TC_110_001, TC_110_002, TC_307_003, TC_308_002, TC_308_004 and TC_308_005 */ integer PX_CauseValue:=16; /** @desc integer for SIP message variant according to table entry in table to test purpose description, if present */ integer PX_SIP_MESSAGE_VA:=1; /** @desc float default value for Ti/w1 (4 - 6s, default 4s) */ float PX_SIP_Tiw1 := 4.0; /** @desc float default value for Ti/w2 (4 - 6s, default 4s) */ float PX_SIP_Tiw2 := 4.0; /** @desc float default value for Ti/w3 (4 - 6s, default 4s) */ float PX_SIP_Tiw3 := 4.0; /** @desc NameAddr default value for From field * used in groupe 501 */ NameAddr PX_SIP_NameAddr_From := {displayName := omit, // optional charstring addrSpec := { scheme := c_sipScheme, // contains "sip" userInfo := {userOrTelephoneSubscriber:= "+491234567", password:=omit}, hostPort := {host := "ims.net", portField :=omit}, urlParameters := omit, headers := omit} } /** @desc NameAddr default value for PAsserted(with sip scheme) field * used in groupe 501 */ NameAddr PX_SIP_NameAddr_PAsserted := {displayName := omit, // optional charstring addrSpec := { scheme := c_sipScheme, // contains "sip" userInfo := {userOrTelephoneSubscriber:= "+491234567", password:=omit}, hostPort := {host := "ims.net", portField :=omit}, urlParameters := omit, headers := omit} } /** @desc NameAddr default value for PAsserted2(with tel scheme) field * used in groupe 501 */ NameAddr PX_SIP_NameAddr_PAsserted2 := {displayName := omit, // optional charstring addrSpec := { scheme := c_telScheme, // contains "tel" userInfo := {userOrTelephoneSubscriber:= "+491234567", password:=omit}, hostPort := omit, urlParameters := omit, headers := omit} } } }// end module SipIsup_PIXITS No newline at end of file AtsNIT_SipSip/ttcn/AtsNIT_SipSip_TestConfiguration.ttcn 0 → 100644 +103 −0 Original line number Diff line number Diff line /* * @author STF 366 * @version $Id$ * @desc This module contains functions which implement the * configuration of the SUT adapter and mapping of test * components for establishing and tearing down different * test configurations. * */ module AtsNIT_SipSip_TestConfiguration { //LibCommon import from LibCommon_Sync all ; import from LibCommon_VerdictControl all; //AtsSipIsup import from AtsNIT_SipSip_TestSystem all; //LibSip import from LibSip_SIPTypesAndValues all; import from LibSip_Interface all; //LibIms import from LibIms_SIPTypesAndValues all; import from LibIms_Interface all; group auxSipFunction { /* ** @desc f_IncCSeq returns an input parameter incremented by 1000 ** reason is to run the next testcase with a higher CSeq value */ function f_IncCSeq(inout CSeq p_cSeq) runs on ServerSyncComp { p_cSeq.seqNumber := p_cSeq.seqNumber + 1000; return }; // end f_IncCSeq }//end group auxSipFunction group syncCommands { const charstring c_syncSip_Isup := "syncSipIsup"; }//end group syncCommands group cfUp { /** * * @desc Creates test configuration of Ims and Isup component * @param p_imsComponen ims component * @param p_isupBiccComponent isup component */ function f_cf_2imsUp( out ImsComponent p_imsComponent1, out ImsComponent p_imsComponent2) runs on ServerSyncComp { //Variables var FncRetCode v_ret := e_success; //Create p_imsComponent1 := ImsComponent.create ; p_imsComponent2 := ImsComponent.create ; //Connect&map connect(p_imsComponent1:syncPort, self:syncPort) ; map(p_imsComponent1:SIPP, system:IMSCN1); // Init test Configuration connect(p_imsComponent2:syncPort, self:syncPort) ; map(p_imsComponent2:SIPP, system:IMSCN2); // Init test Configuration f_setVerdict(v_ret); }//end f_cf_2imsUp }//end group cfUp group cfDown { /** * * @desc Deletes test configuration of Ims and Isup component * @param p_imsComponen ims component * @param p_isupBiccComponent isup component */ function f_cf_2imsDown( in ImsComponent p_imsComponent1, in ImsComponent p_imsComponent2) runs on ServerSyncComp { var FncRetCode v_ret; f_serverWaitForAllClientsToStop(); //Variables v_ret := e_success; //Disconnect disconnect(p_imsComponent1:syncPort, self:syncPort) ; disconnect(p_imsComponent2:syncPort, self:syncPort) ; //Unmap unmap(p_imsComponent1:SIPP, system:IMSCN1); unmap(p_imsComponent2:SIPP, system:IMSCN2); }//end f_cf_2imsDown } //end group cfDown } // end module AtsNIT_SipSip_TestConfiguration No newline at end of file AtsNIT_SipSip/ttcn/AtsNIT_SipSip_TestExecution.ttcn 0 → 100644 +28 −0 Original line number Diff line number Diff line module AtsNIT_SipSip_TestExecution { //LobCommon import from LibCommon_BasicTypesAndValues all; //AtsCommon import from AtsNIT_SipSip_PIXITS all; import from AtsNIT_SipSip_Testcases all; //SipAts import from LibSip_SIPTypesAndValues all; import from AtsNIT_SipSip_PICS all; control { //Variables var UInt8 i, j := 0; //var UInt8 j := 0; var CSeq v_CSeq_s := { fieldName := CSEQ_E, seqNumber := 0, method := "INVITE" }; }//end control } // end module SipIsup_TestExecution No newline at end of file Loading
AtsNIT_SipSip/ttcn/AtsNIT_SipSip_BC_TCFunctions.ttcn 0 → 100644 +65 −0 Original line number Diff line number Diff line /* * @author STF 369 * @version $Id$ * @desc This module provides the TC functions used by the test component * for SIP side of the SUT. */ module AtsNIT_SipSip_BC_TCFunctions { //LibCommon import from LibCommon_Sync all; import from LibCommon_VerdictControl all; import from LibCommon_AbstractData all; import from LibCommon_DataStrings all; //LibSip import from LibSip_SIPTypesAndValues all; import from LibSip_SDPTypes all; import from LibSip_Templates all; import from LibSip_Steps all; import from LibSip_Interface all; import from LibSip_PIXITS all; import from LibSip_XMLTypes all; //LibIms import from LibIms_Templates all; import from LibIms_Steps all; import from LibIms_SIPTypesAndValues all; import from LibIms_Interface all; import from LibIms_PIXITS all; //Type to adress the IUT to send it message //type Address address; type record address { //HostPort charstring host optional, // hostname, IPv4 or IPv6 integer portField optional // represented as an integer }with { encode "SIPCodec" } /* * @desc The group structure is according to the TSS: * */ group BasicCall { group TP1_BC_Successful { group TP101_Normal_Call_Esthablishment { /* * @desc This is the test case function (originating side) for AtsNIT_TC_SS___XX__01 * @param p_CSeq_s Transaction Id */ function f_AtsNIT_TC_SS___XX__01o(in CSeq p_cSeq_s) runs on ImsComponent { //c_userProfile_ICSCFwithHomeUE or c_userProfile_IBCFwithHomeUE f_IMS_preamble_MGCF(c_userProfile_ICSCFwithHomeUE, p_cSeq_s); // assignment of PIXIT values to component variable // f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // Testbody // f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); f_SIP_postamble_IMS1_withoutRegistration(); } // end function f_IMS_TC_101_001 } // end group TP101_Normal_Call_Esthablishment } // end group TP1_BC_Successful } // end module BasicCall } // end AtsNIT_SipSip_BC_TCFunctions No newline at end of file
AtsNIT_SipSip/ttcn/AtsNIT_SipSip_PICS.ttcn 0 → 100644 +987 −0 File added.Preview size limit exceeded, changes collapsed. Show changes
AtsNIT_SipSip/ttcn/AtsNIT_SipSip_PIXITS.ttcn 0 → 100644 +148 −0 Original line number Diff line number Diff line /* * @author STF 366 * @version $Id$ * @desc This module contains the PIXIT parameters */ module AtsNIT_SipSip_PIXITS { import from LibCommon_BasicTypesAndValues all; import from LibCommon_DataStrings all; import from LibSip_SIPTypesAndValues all; /* ** @remark Reference: XXX ** @desc What is the local receive policy for SIP? * Value of PX_LOCAL_POLICY * 1: receive no cause due to local policy, 2: receive cause #31 due to local policy */ modulepar { /** @desc integer for testcase variant according to table entry in table to test purpose description, if present */ integer PX_TC_VA:=1; /** @desc Bitstring[5] for Bearer Capability Information Transfer Capability used for mapping between * ISUP: Bearer Capability information element within USI parameter and * SIP: SDP offer or PSTN XML BearerCapability * Used in TC_301_014, TC_301_015 and TC_301_023 */ Bit5 PX_BearerCapabilityInformationTransferCapability:='00000'B; /** @desc Bitstring[5] for Bearer Capability Information Transfer Capability used for mapping between * ISUP: Bearer Capability information element within ATP parameter and * SIP: PSTN XML BearerCapability * Used in TC_ */ Bit5 PX_BearerCapabilityInformationTransferCapability2:='00000'B; /** @desc Bitstring[7] for High layer characteristics identification used for mapping between * ISUP: High layer compatibility information element within ATP or UTSI parameter and * SIP: PSTN XML HighLayerCompatibility * Used in TC_105_012, TC_105_013, TC_106_006, TC_106_007, TC_107_008, TC_107_009, * TC_301_031, TC_301_032 and TC_301_033, TC_304_011, TC_304_012, TC_305_004, * TC_305_007, TC_306_005 and TC_306_008 */ Bit7 PX_HighLayerCharacteristicsIdentification:='0000001'B; /** @desc Bitstring[7] for 2nd High layer characteristics identification used for mapping between * ISUP: High layer compatibility information element within ATP parameter and * SIP: PSTN XML HighLayerCompatibility * Used in TC104_015, TC_104_016, TC_301_033, TC_305_004, TC_305_007, TC_306_005 * and TC_306_008 */ Bit7 PX_HighLayerCharacteristicsIdentification2:='0000001'B; /** @desc Bitstring[5] for Low layer Information Transfer Capability used for mapping between * ISUP: Low layer compatibility information element within ATP parameter and * SIP: PSTN XML LowLayerCompatibility * Used in TC_104_018, TC_104_019, TC_106_008, TC_107_010, TC_301_030, TC_305_003 and * TC_306_004 */ Bit5 PX_LowLayerInformationTransferCapability:='00000'B; /** @desc Bitstring[7] for Progress description used for mapping between * ISUP: Progress indicator information element within ATP parameter and * SIP: PSTN XML ProgressIndicator * Used in TC_104_008, TC_104_020, TC_105_006, TC_107_004, TC_301_029, TC_305_002 and * TC_306_003 */ Bit7 PX_ProgressIndicator:='0000001'B; /** @desc hexstring of length 1 for NetworkIndicator description used for mapping between * ISUP: Networkindicator information element within CUG parameter and * SIP: CUG XML NetworkIndicator * Used in TC_516_XXX * length of it must be 1 */ hexstring PX_CUG_NetworkIndicator:='0'H; /** @desc hexstring of length 2 for InterlockBinaryCode description used for mapping between * ISUP: InterlockBinaryCode information element within CUG parameter and * SIP: CUG XML InterlockBinaryCode * Used in TC_516_XXX * length of it must be 2 */ hexstring PX_CUG_InterlockBinaryCode:='00'H; /** @desc Integer for Cause value used for mapping between * ISUP: Cause value within CAUI parameter and * SIP: Q.850 cause value in Reason header * Used in TC_110_001, TC_110_002, TC_307_003, TC_308_002, TC_308_004 and TC_308_005 */ integer PX_CauseValue:=16; /** @desc integer for SIP message variant according to table entry in table to test purpose description, if present */ integer PX_SIP_MESSAGE_VA:=1; /** @desc float default value for Ti/w1 (4 - 6s, default 4s) */ float PX_SIP_Tiw1 := 4.0; /** @desc float default value for Ti/w2 (4 - 6s, default 4s) */ float PX_SIP_Tiw2 := 4.0; /** @desc float default value for Ti/w3 (4 - 6s, default 4s) */ float PX_SIP_Tiw3 := 4.0; /** @desc NameAddr default value for From field * used in groupe 501 */ NameAddr PX_SIP_NameAddr_From := {displayName := omit, // optional charstring addrSpec := { scheme := c_sipScheme, // contains "sip" userInfo := {userOrTelephoneSubscriber:= "+491234567", password:=omit}, hostPort := {host := "ims.net", portField :=omit}, urlParameters := omit, headers := omit} } /** @desc NameAddr default value for PAsserted(with sip scheme) field * used in groupe 501 */ NameAddr PX_SIP_NameAddr_PAsserted := {displayName := omit, // optional charstring addrSpec := { scheme := c_sipScheme, // contains "sip" userInfo := {userOrTelephoneSubscriber:= "+491234567", password:=omit}, hostPort := {host := "ims.net", portField :=omit}, urlParameters := omit, headers := omit} } /** @desc NameAddr default value for PAsserted2(with tel scheme) field * used in groupe 501 */ NameAddr PX_SIP_NameAddr_PAsserted2 := {displayName := omit, // optional charstring addrSpec := { scheme := c_telScheme, // contains "tel" userInfo := {userOrTelephoneSubscriber:= "+491234567", password:=omit}, hostPort := omit, urlParameters := omit, headers := omit} } } }// end module SipIsup_PIXITS No newline at end of file
AtsNIT_SipSip/ttcn/AtsNIT_SipSip_TestConfiguration.ttcn 0 → 100644 +103 −0 Original line number Diff line number Diff line /* * @author STF 366 * @version $Id$ * @desc This module contains functions which implement the * configuration of the SUT adapter and mapping of test * components for establishing and tearing down different * test configurations. * */ module AtsNIT_SipSip_TestConfiguration { //LibCommon import from LibCommon_Sync all ; import from LibCommon_VerdictControl all; //AtsSipIsup import from AtsNIT_SipSip_TestSystem all; //LibSip import from LibSip_SIPTypesAndValues all; import from LibSip_Interface all; //LibIms import from LibIms_SIPTypesAndValues all; import from LibIms_Interface all; group auxSipFunction { /* ** @desc f_IncCSeq returns an input parameter incremented by 1000 ** reason is to run the next testcase with a higher CSeq value */ function f_IncCSeq(inout CSeq p_cSeq) runs on ServerSyncComp { p_cSeq.seqNumber := p_cSeq.seqNumber + 1000; return }; // end f_IncCSeq }//end group auxSipFunction group syncCommands { const charstring c_syncSip_Isup := "syncSipIsup"; }//end group syncCommands group cfUp { /** * * @desc Creates test configuration of Ims and Isup component * @param p_imsComponen ims component * @param p_isupBiccComponent isup component */ function f_cf_2imsUp( out ImsComponent p_imsComponent1, out ImsComponent p_imsComponent2) runs on ServerSyncComp { //Variables var FncRetCode v_ret := e_success; //Create p_imsComponent1 := ImsComponent.create ; p_imsComponent2 := ImsComponent.create ; //Connect&map connect(p_imsComponent1:syncPort, self:syncPort) ; map(p_imsComponent1:SIPP, system:IMSCN1); // Init test Configuration connect(p_imsComponent2:syncPort, self:syncPort) ; map(p_imsComponent2:SIPP, system:IMSCN2); // Init test Configuration f_setVerdict(v_ret); }//end f_cf_2imsUp }//end group cfUp group cfDown { /** * * @desc Deletes test configuration of Ims and Isup component * @param p_imsComponen ims component * @param p_isupBiccComponent isup component */ function f_cf_2imsDown( in ImsComponent p_imsComponent1, in ImsComponent p_imsComponent2) runs on ServerSyncComp { var FncRetCode v_ret; f_serverWaitForAllClientsToStop(); //Variables v_ret := e_success; //Disconnect disconnect(p_imsComponent1:syncPort, self:syncPort) ; disconnect(p_imsComponent2:syncPort, self:syncPort) ; //Unmap unmap(p_imsComponent1:SIPP, system:IMSCN1); unmap(p_imsComponent2:SIPP, system:IMSCN2); }//end f_cf_2imsDown } //end group cfDown } // end module AtsNIT_SipSip_TestConfiguration No newline at end of file
AtsNIT_SipSip/ttcn/AtsNIT_SipSip_TestExecution.ttcn 0 → 100644 +28 −0 Original line number Diff line number Diff line module AtsNIT_SipSip_TestExecution { //LobCommon import from LibCommon_BasicTypesAndValues all; //AtsCommon import from AtsNIT_SipSip_PIXITS all; import from AtsNIT_SipSip_Testcases all; //SipAts import from LibSip_SIPTypesAndValues all; import from AtsNIT_SipSip_PICS all; control { //Variables var UInt8 i, j := 0; //var UInt8 j := 0; var CSeq v_CSeq_s := { fieldName := CSEQ_E, seqNumber := 0, method := "INVITE" }; }//end control } // end module SipIsup_TestExecution No newline at end of file