Loading AtsCommon/SS_Ims_TestConfiguration.ttcn +104 −1 Original line number Diff line number Diff line Loading @@ -58,6 +58,33 @@ f_setVerdict(v_ret); }//end f_cf_1GmUp /** * * @desc Creates test configuration of CF_2Ue * @param p_imsComponent_ue1 - ue1 component * @param p_imsComponent_ue2 - ue2 component */ function f_cf_2UeUp(out ImsComponent p_imsComponent_ue1, out ImsComponent p_imsComponent_ue2) runs on ServerSyncComp { //Variables var FncRetCode v_ret := e_success; //Create p_imsComponent_ue1 := ImsComponent.create ; p_imsComponent_ue2 := ImsComponent.create ; //Connect connect(p_imsComponent_ue1:syncPort, self:syncPort) ; connect(p_imsComponent_ue2:syncPort, self:syncPort) ; //Map map(p_imsComponent_ue1:SIPP, system:UE1);// Init test Configuration map(p_imsComponent_ue2:SIPP, system:UE2);// Init test Configuration f_setVerdict(v_ret); }//end f_cf_2UeUp /** * * @desc Creates test configuration of CF_2Ue_CF Loading Loading @@ -85,6 +112,38 @@ f_setVerdict(v_ret); }//end f_cf_2Ue_CFUp /** * * @desc Creates test configuration of CF_3Ue * @param p_imsComponent_ue1 - ue1 component * @param p_imsComponent_ue2 - ue2 component * @param p_imsComponent_ue3 - ue3 component */ function f_cf_3UeUp(out ImsComponent p_imsComponent_ue1, out ImsComponent p_imsComponent_ue2, out ImsComponent p_imsComponent_ue3) runs on ServerSyncComp { //Variables var FncRetCode v_ret := e_success; //Create p_imsComponent_ue1 := ImsComponent.create ; p_imsComponent_ue2 := ImsComponent.create ; p_imsComponent_ue3 := ImsComponent.create ; //Connect connect(p_imsComponent_ue1:syncPort, self:syncPort) ; connect(p_imsComponent_ue2:syncPort, self:syncPort) ; connect(p_imsComponent_ue3:syncPort, self:syncPort) ; //Map map(p_imsComponent_ue1:SIPP, system:UE1);// Init test Configuration map(p_imsComponent_ue2:SIPP, system:UE2);// Init test Configuration map(p_imsComponent_ue3:SIPP, system:UE2);// Init test Configuration f_setVerdict(v_ret); }//end f_cf_3UeUp /** * * @desc Creates test configuration of CF_1Isc Loading Loading @@ -257,6 +316,26 @@ unmap(p_imsComponent_ue1:SIPP, system:UE1); }//end f_cf_1GmDown /** * * @desc Deletes configuration of CF_2Ue * @param p_imsComponent_ue1 - ue1 component * @param p_imsComponent_ue2 - ue2 component */ function f_cf_2UeDown( in ImsComponent p_imsComponent_ue1, in ImsComponent p_imsComponent_ue2) runs on ServerSyncComp { f_serverWaitForAllClientsToStop(); //Disconnect disconnect(p_imsComponent_ue1:syncPort, self:syncPort); disconnect(p_imsComponent_ue2:syncPort, self:syncPort); //Unmap unmap(p_imsComponent_ue1:SIPP, system:UE1); unmap(p_imsComponent_ue2:SIPP, system:UE2); }//end f_cf_2UeDown /** * * @desc Deletes configuration of CF_2Ue_CF Loading @@ -277,6 +356,30 @@ unmap(p_imsComponent_ue3:SIPP, system:UE3); }//end f_cf_2Ue_CFDown /** * * @desc Deletes configuration of CF_2Ue * @param p_imsComponent_ue1 - ue1 component * @param p_imsComponent_ue2 - ue2 component * @param p_imsComponent_ue3 - ue3 component */ function f_cf_3UeDown( in ImsComponent p_imsComponent_ue1, in ImsComponent p_imsComponent_ue2, in ImsComponent p_imsComponent_ue3) runs on ServerSyncComp { f_serverWaitForAllClientsToStop(); //Disconnect disconnect(p_imsComponent_ue1:syncPort, self:syncPort); disconnect(p_imsComponent_ue2:syncPort, self:syncPort); disconnect(p_imsComponent_ue3:syncPort, self:syncPort); //Unmap unmap(p_imsComponent_ue1:SIPP, system:UE1); unmap(p_imsComponent_ue2:SIPP, system:UE2); unmap(p_imsComponent_ue3:SIPP, system:UE3); }//end f_cf_2UeDown /** * * @desc Deletes configuration of CF_1Isc Loading CDIV/CDIV_TestCases.ttcn +30 −7 Original line number Diff line number Diff line Loading @@ -11,25 +11,48 @@ * @author STF 406 */ module CDIV_TestCases { //TODO before conclusion of project check if some bellow commented library is not used and delete its import //import from LibSip_SIPTypesAndValues language "TTCN-3:2005" all; import from LibSip_SIPTypesAndValues language "TTCN-3:2005" all; import from CDIV_TC_Functions all; //import from SS_Ims_TestSystem all; import from SS_Ims_TestSystem all; //import from SS_Ims_PICS all; import from SS_Ims_PICS all; //import from LibIms_Interface all; import from LibIms_Interface all; //import from LibCommon_Sync all; import from LibCommon_Sync all; //import from SS_Ims_TestConfiguration all; import from SS_Ims_TestConfiguration all; group SuplementaryService_CDIV{ group Netw { group ASdivertingUser_DivProcedures { /** * @desc TC_CDIV_N01_001 * @param p_cSeq_s Transaction Id */ testcase TC_CDIV_N01_001(inout CSeq p_cSeq_s) runs on ServerSyncComp system TestAdapter { //Variables var ImsComponent v_imsComponent_ue1, v_imsComponent_ue2; f_cf_2UeUp(v_imsComponent_ue1, v_imsComponent_ue2); //Start f_IncCSeq(p_cSeq_s); //v_imsComponent_ue1.start(f_TC_CDIV_N01_001_UE1(p_cSeq_s)); f_IncCSeq(p_cSeq_s); //v_imsComponent_ue2.start(f_TC_CDIV_N01_001_UE2(p_cSeq_s)); // synchronize both PTCs on 3 sychronization points f_serverSync2Clients({c_prDone, c_sync1, c_tbDone}); f_cf_2UeDown(v_imsComponent_ue1, v_imsComponent_ue2); } // end TC_CDIV_N01_001 } //end group ASdivertingUser_DivProcedures group ASdivertingUser_NotOrigUser { } //end group ASdivertingUser_NotOrigUser Loading Loading
AtsCommon/SS_Ims_TestConfiguration.ttcn +104 −1 Original line number Diff line number Diff line Loading @@ -58,6 +58,33 @@ f_setVerdict(v_ret); }//end f_cf_1GmUp /** * * @desc Creates test configuration of CF_2Ue * @param p_imsComponent_ue1 - ue1 component * @param p_imsComponent_ue2 - ue2 component */ function f_cf_2UeUp(out ImsComponent p_imsComponent_ue1, out ImsComponent p_imsComponent_ue2) runs on ServerSyncComp { //Variables var FncRetCode v_ret := e_success; //Create p_imsComponent_ue1 := ImsComponent.create ; p_imsComponent_ue2 := ImsComponent.create ; //Connect connect(p_imsComponent_ue1:syncPort, self:syncPort) ; connect(p_imsComponent_ue2:syncPort, self:syncPort) ; //Map map(p_imsComponent_ue1:SIPP, system:UE1);// Init test Configuration map(p_imsComponent_ue2:SIPP, system:UE2);// Init test Configuration f_setVerdict(v_ret); }//end f_cf_2UeUp /** * * @desc Creates test configuration of CF_2Ue_CF Loading Loading @@ -85,6 +112,38 @@ f_setVerdict(v_ret); }//end f_cf_2Ue_CFUp /** * * @desc Creates test configuration of CF_3Ue * @param p_imsComponent_ue1 - ue1 component * @param p_imsComponent_ue2 - ue2 component * @param p_imsComponent_ue3 - ue3 component */ function f_cf_3UeUp(out ImsComponent p_imsComponent_ue1, out ImsComponent p_imsComponent_ue2, out ImsComponent p_imsComponent_ue3) runs on ServerSyncComp { //Variables var FncRetCode v_ret := e_success; //Create p_imsComponent_ue1 := ImsComponent.create ; p_imsComponent_ue2 := ImsComponent.create ; p_imsComponent_ue3 := ImsComponent.create ; //Connect connect(p_imsComponent_ue1:syncPort, self:syncPort) ; connect(p_imsComponent_ue2:syncPort, self:syncPort) ; connect(p_imsComponent_ue3:syncPort, self:syncPort) ; //Map map(p_imsComponent_ue1:SIPP, system:UE1);// Init test Configuration map(p_imsComponent_ue2:SIPP, system:UE2);// Init test Configuration map(p_imsComponent_ue3:SIPP, system:UE2);// Init test Configuration f_setVerdict(v_ret); }//end f_cf_3UeUp /** * * @desc Creates test configuration of CF_1Isc Loading Loading @@ -257,6 +316,26 @@ unmap(p_imsComponent_ue1:SIPP, system:UE1); }//end f_cf_1GmDown /** * * @desc Deletes configuration of CF_2Ue * @param p_imsComponent_ue1 - ue1 component * @param p_imsComponent_ue2 - ue2 component */ function f_cf_2UeDown( in ImsComponent p_imsComponent_ue1, in ImsComponent p_imsComponent_ue2) runs on ServerSyncComp { f_serverWaitForAllClientsToStop(); //Disconnect disconnect(p_imsComponent_ue1:syncPort, self:syncPort); disconnect(p_imsComponent_ue2:syncPort, self:syncPort); //Unmap unmap(p_imsComponent_ue1:SIPP, system:UE1); unmap(p_imsComponent_ue2:SIPP, system:UE2); }//end f_cf_2UeDown /** * * @desc Deletes configuration of CF_2Ue_CF Loading @@ -277,6 +356,30 @@ unmap(p_imsComponent_ue3:SIPP, system:UE3); }//end f_cf_2Ue_CFDown /** * * @desc Deletes configuration of CF_2Ue * @param p_imsComponent_ue1 - ue1 component * @param p_imsComponent_ue2 - ue2 component * @param p_imsComponent_ue3 - ue3 component */ function f_cf_3UeDown( in ImsComponent p_imsComponent_ue1, in ImsComponent p_imsComponent_ue2, in ImsComponent p_imsComponent_ue3) runs on ServerSyncComp { f_serverWaitForAllClientsToStop(); //Disconnect disconnect(p_imsComponent_ue1:syncPort, self:syncPort); disconnect(p_imsComponent_ue2:syncPort, self:syncPort); disconnect(p_imsComponent_ue3:syncPort, self:syncPort); //Unmap unmap(p_imsComponent_ue1:SIPP, system:UE1); unmap(p_imsComponent_ue2:SIPP, system:UE2); unmap(p_imsComponent_ue3:SIPP, system:UE3); }//end f_cf_2UeDown /** * * @desc Deletes configuration of CF_1Isc Loading
CDIV/CDIV_TestCases.ttcn +30 −7 Original line number Diff line number Diff line Loading @@ -11,25 +11,48 @@ * @author STF 406 */ module CDIV_TestCases { //TODO before conclusion of project check if some bellow commented library is not used and delete its import //import from LibSip_SIPTypesAndValues language "TTCN-3:2005" all; import from LibSip_SIPTypesAndValues language "TTCN-3:2005" all; import from CDIV_TC_Functions all; //import from SS_Ims_TestSystem all; import from SS_Ims_TestSystem all; //import from SS_Ims_PICS all; import from SS_Ims_PICS all; //import from LibIms_Interface all; import from LibIms_Interface all; //import from LibCommon_Sync all; import from LibCommon_Sync all; //import from SS_Ims_TestConfiguration all; import from SS_Ims_TestConfiguration all; group SuplementaryService_CDIV{ group Netw { group ASdivertingUser_DivProcedures { /** * @desc TC_CDIV_N01_001 * @param p_cSeq_s Transaction Id */ testcase TC_CDIV_N01_001(inout CSeq p_cSeq_s) runs on ServerSyncComp system TestAdapter { //Variables var ImsComponent v_imsComponent_ue1, v_imsComponent_ue2; f_cf_2UeUp(v_imsComponent_ue1, v_imsComponent_ue2); //Start f_IncCSeq(p_cSeq_s); //v_imsComponent_ue1.start(f_TC_CDIV_N01_001_UE1(p_cSeq_s)); f_IncCSeq(p_cSeq_s); //v_imsComponent_ue2.start(f_TC_CDIV_N01_001_UE2(p_cSeq_s)); // synchronize both PTCs on 3 sychronization points f_serverSync2Clients({c_prDone, c_sync1, c_tbDone}); f_cf_2UeDown(v_imsComponent_ue1, v_imsComponent_ue2); } // end TC_CDIV_N01_001 } //end group ASdivertingUser_DivProcedures group ASdivertingUser_NotOrigUser { } //end group ASdivertingUser_NotOrigUser Loading