Commit ce644ba9 authored by rennoch's avatar rennoch
Browse files

initial registration for UE component for all DX_CSCF

parent 1c7e8792
Loading
Loading
Loading
Loading
+47 −10
Original line number Diff line number Diff line
@@ -301,16 +301,27 @@ module DiameterCxDx_Dx_TCFunctions {
            /**
             *  @desc    The UE behavior function of TC_DX_CSCF_SA_01
             */
            function f_TC_DX_CSCF_SA_01_UE()
            function f_TC_DX_CSCF_SA_01_UE(in CSeq p_cSeq_s)
            runs on ImsComponent {
                var template REGISTER_Request v_register;
                f_selfOrClientSyncAndVerdict( c_initDone, f_getVerdict() ); // sync - init done

                f_selfOrClientSyncAndVerdict( c_prDone, f_getVerdict() ); // sync - preamble done
                //Registration
                v_register :=
                    valueof(m_REGISTER_Request_Base(vc_requestUri, vc_callId,
                                                    p_cSeq_s, vc_from, vc_to,
                                                    vc_via_REG, vc_contact,
                                                    vc_authorization));
                // preamble with send REGISTER, await 401, send REGISTER, await
                // 200 OK and user profile setting
                f_IMS_preamble_withRegistration(p_cSeq_s, v_register);
                
                // TODO: Send Invite  
                f_selfOrClientSyncAndVerdict( c_prDone, f_getVerdict() ); // sync - preamble done
                
                f_selfOrClientSyncAndVerdict( c_tbDone, f_getVerdict()); // sync testbody done

                f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); // sync - postamble done
                f_RemoveRegistration(vc_cSeq); // deregistration in SUT
            } // end function f_TC_DX_CSCF_SA_01_UE        
        } // group TP_CSCFRole_SA
        group TP_CSCFRole_LI {//Dx LI
@@ -361,16 +372,31 @@ module DiameterCxDx_Dx_TCFunctions {
            /**
             *  @desc    The UE behavior function of TC_DX_CSCF_LI_01
             */
            function f_TC_DX_CSCF_LI_01_UE()
            function f_TC_DX_CSCF_LI_01_UE(in CSeq p_cSeq_s)
            runs on ImsComponent {
                var template REGISTER_Request v_register;
                f_selfOrClientSyncAndVerdict( c_initDone, f_getVerdict() ); // sync - init done

                f_selfOrClientSyncAndVerdict( c_prDone, f_getVerdict() ); // sync - preamble done
                //Registration
                v_register :=
                    valueof(m_REGISTER_Request_Base(vc_requestUri, vc_callId,
                                                    p_cSeq_s, vc_from, vc_to,
                                                    vc_via_REG, vc_contact,
                                                    vc_authorization));
                // preamble with send REGISTER, await 401, send REGISTER, await
                // 200 OK and user profile setting
                f_IMS_preamble_withRegistration(p_cSeq_s, v_register);
                
                // TODO: Send Invite  
    
                f_selfOrClientSyncAndVerdict( c_prDone, f_getVerdict() ); // sync - preamble done
                
                f_selfOrClientSyncAndVerdict( c_tbDone, f_getVerdict()); // sync testbody done

                f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); // sync - postamble done
                //TODO terminate call with BYE
                
                f_RemoveRegistration(vc_cSeq); // deregistration in SUT
            } // end function f_TC_DX_CSCF_LI_01_UE        
        } // group TP_CSCFRole_LI
        group TP_CSCFRole_MA {//Dx MA
@@ -421,16 +447,27 @@ module DiameterCxDx_Dx_TCFunctions {
            /**
             *  @desc    The UE behavior function of TC_DX_CSCF_MA_01
             */
            function f_TC_DX_CSCF_MA_01_UE()
            function f_TC_DX_CSCF_MA_01_UE(in CSeq p_cSeq_s)
            runs on ImsComponent {
                var template REGISTER_Request v_register;
                f_selfOrClientSyncAndVerdict( c_initDone, f_getVerdict() ); // sync - init done

                f_selfOrClientSyncAndVerdict( c_prDone, f_getVerdict() ); // sync - preamble done
                //Registration
                v_register :=
                    valueof(m_REGISTER_Request_Base(vc_requestUri, vc_callId,
                                                    p_cSeq_s, vc_from, vc_to,
                                                    vc_via_REG, vc_contact,
                                                    vc_authorization));
                // preamble with send REGISTER, await 401, send REGISTER, await
                // 200 OK and user profile setting
                f_IMS_preamble_withRegistration(p_cSeq_s, v_register);
    
                // TODO: Send Invite  
                f_selfOrClientSyncAndVerdict( c_prDone, f_getVerdict() ); // sync - preamble done
                
                f_selfOrClientSyncAndVerdict( c_tbDone, f_getVerdict()); // sync testbody done

                f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); // sync - postamble done
                f_RemoveRegistration(vc_cSeq); // deregistration in SUT
            } // end function f_TC_DX_CSCF_MA_01_UE        
        } // group TP_CSCFRole_MA
    } // group TP_CSCFRole    
+9 −9
Original line number Diff line number Diff line
@@ -4105,7 +4105,7 @@ module DiameterCxDx_TestCases
                 * @version    0.0.8
                 * @see        ETSI DTS/INT-00103-2 V0.0.8 (2014-11) TP_DX_CSCF_SA_01
                */           
                testcase TC_DX_CSCF_SA_01()
                testcase TC_DX_CSCF_SA_01(inout CSeq p_cSeq_s)
                runs on DiameterCx
                system TestAdapter {
                    //Variables
@@ -4117,10 +4117,10 @@ module DiameterCxDx_TestCases
                    //Start
                    v_diameterComponent_hss.start(f_TC_DX_CSCF_SA_01_HSS());
                    v_diameterComponent_slf.start(f_TC_DX_CSCF_SA_01_SLF());
                    v_imsComponent_ue1.start(f_TC_DX_CSCF_SA_01_UE());
                    v_imsComponent_ue1.start(f_TC_DX_CSCF_SA_01_UE(p_cSeq_s));
    
                    // synchronize PTC on 3 sychronization points
                    f_serverSyncNClients(f_NrofCompsDx(),{c_prDone, c_tbDone, c_poDone});
                    f_serverSyncNClients(f_NrofCompsDx(),{c_initDone, c_prDone, c_tbDone, c_poDone});
    
                    f_cf_1Dx1Cx1GmDown_CSCF(v_diameterComponent_slf, v_diameterComponent_hss, v_imsComponent_ue1);
                } // End of TC_DX_CSCF_SA_01
@@ -4157,7 +4157,7 @@ module DiameterCxDx_TestCases
                 * @version    0.0.8
                 * @see        ETSI DTS/INT-00103-2 V0.0.8 (2014-11) TP_DX_CSCF_LI_01
                */           
                testcase TC_DX_CSCF_LI_01()
                testcase TC_DX_CSCF_LI_01(inout CSeq p_cSeq_s)
                runs on DiameterCx
                system TestAdapter {
                    //Variables
@@ -4169,10 +4169,10 @@ module DiameterCxDx_TestCases
                    //Start
                    v_diameterComponent_hss.start(f_TC_DX_CSCF_LI_01_HSS());
                    v_diameterComponent_slf.start(f_TC_DX_CSCF_LI_01_SLF());
                    v_imsComponent_ue1.start(f_TC_DX_CSCF_LI_01_UE());
                    v_imsComponent_ue1.start(f_TC_DX_CSCF_LI_01_UE(p_cSeq_s));
    
                    // synchronize PTC on 3 sychronization points
                    f_serverSyncNClients(f_NrofCompsDx(),{c_prDone, c_tbDone, c_poDone});
                    f_serverSyncNClients(f_NrofCompsDx(),{c_initDone, c_prDone, c_tbDone, c_poDone});
    
                    f_cf_1Dx1Cx1GmDown_CSCF(v_diameterComponent_slf, v_diameterComponent_hss, v_imsComponent_ue1);
                } // End of TC_DX_CSCF_LI_01
@@ -4209,7 +4209,7 @@ module DiameterCxDx_TestCases
                 * @version    0.0.8
                 * @see        ETSI DTS/INT-00103-2 V0.0.8 (2014-11) TP_DX_CSCF_MA_01
                */           
                testcase TC_DX_CSCF_MA_01()
                testcase TC_DX_CSCF_MA_01(inout CSeq p_cSeq_s)
                runs on DiameterCx
                system TestAdapter {
                    //Variables
@@ -4221,10 +4221,10 @@ module DiameterCxDx_TestCases
                    //Start
                    v_diameterComponent_hss.start(f_TC_DX_CSCF_MA_01_HSS());
                    v_diameterComponent_slf.start(f_TC_DX_CSCF_MA_01_SLF());
                    v_imsComponent_ue1.start(f_TC_DX_CSCF_MA_01_UE());
                    v_imsComponent_ue1.start(f_TC_DX_CSCF_MA_01_UE(p_cSeq_s));
    
                    // synchronize PTC on 3 sychronization points
                    f_serverSyncNClients(f_NrofCompsDx(),{c_prDone, c_tbDone, c_poDone});
                    f_serverSyncNClients(f_NrofCompsDx(),{c_initDone, c_prDone, c_tbDone, c_poDone});
    
                    f_cf_1Dx1Cx1GmDown_CSCF(v_diameterComponent_slf, v_diameterComponent_hss, v_imsComponent_ue1);
                } // End of TC_DX_CSCF_MA_01