Commit af55342f authored by YannGarcia's avatar YannGarcia
Browse files

Finalyze TC_ISC_SCCAS_PCT_INV_04

parent 586c9040
Loading
Loading
Loading
Loading
+64 −0
Original line number Diff line number Diff line
@@ -3265,6 +3265,70 @@ module AtsSccas_TCFunctions {

            } // End of function f_TC_ISC_SCCAS_PCT_INV_03

            /**
             *  @desc    Verify that SCC AS correctly recognizes and initiated procedures for PS to CS dual radio access transfer of an additional session in an early dialog phase.
             *  @param   p_cSeq_s Random CSeq REGISTER number
             */
            function f_TC_ISC_SCCAS_PCT_INV_04(in CSeq p_cSeq_s)
            runs on ImsComponent {
                // Local variables
                var CSeq v_cSeq_s := p_cSeq_s;

                // Preambule
                f_init_userprofile(c_userProfile_UE1atSUThome);
                f_initSipUrl(c_serviceProfile_EMERGENCY);
                f_init_interfaceprofile(c_interfaceProfile_IMS_SUT_PCSCF1);
                // Registration
                f_sendRegistrationAndAwait200Ok(
                                                v_cSeq_s,
                                                m_sccas_register(
                                                                vc_requestUri, 
                                                                vc_callId, 
                                                                vc_cSeq, 
                                                                vc_from, 
                                                                vc_to, 
                                                                vc_via_REG, 
                                                                vc_contact, 
                                                                m_add_Authorization_digest(
                                                                                            vc_authorization, 
                                                                                            {c_Integrity_protected_no}
                                                                                            ), 
                                                                PX_IMS_SUT_SCSCF_IPADDR, // TODO To be refined during validation
                                                                PX_IMS_SUT_SCSCF_PORT, // TODO To be refined during validation
                                                                "600000",
                                                                -,
                                                                m_contentType(c_sdpApplication), // TODO To be refined during validation
                                                                m_MBody_SDP(vc_sdp_local) // TODO To be refined during validation
                                                ), 
                                                mw_sccas_Response_2xxonREGISTER(vc_callId, vc_cSeq, vc_from, vc_to, vc_via_REG, vc_contact)
                                                );
                f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // sync

			// STEP: send 488 notAcceptableHere
			f_sendResponse(m_Response_Base(c_statusLine488, vc_callId, vc_cSeq, vc_caller_From, vc_caller_To, vc_via));
			
			// Expectation: REFER message
			tc_ack.start;
				alt {
					[] SIPP.receive(mw_REFER_Request_stl(
							vc_callId, 
							?, 
							?, 
							mw_sdpmessageBody)) {
						tc_ack.stop;
						log("*** " & __SCOPE__ & ": PASS: REFER message was received ***");
						f_selfOrClientSyncAndVerdict(c_tbDone, e_success); // sync
					}
					[] tc_ack.timeout {
						f_selfOrClientSyncAndVerdict(c_tbDone, e_error); // sync 
					}
				}
				
				f_deregistrationAS(p_cSeq_s);
                f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); // sync

            } // End of function f_TC_ISC_SCCAS_PCT_INV_04

            /**
             *  @desc    Verify that the SCC AS handles correctly the procedures for handling of SIP OPTIONS request.
             *  @param   p_cSeq_s Random CSeq REGISTER number
+29 −0
Original line number Diff line number Diff line
@@ -1749,6 +1749,35 @@ module AtsSccas_Testcases

			} // End of TC_ISC_SCCAS_PCT_INV_03 

		   /*
			* @desc Verify that SCC AS correctly recognizes and initiated procedures for PS to CS dual radio access transfer of an additional session in an early dialog phase.
			* @param p_cSeq_s Transaction Id
			*/
			testcase TC_ISC_SCCAS_PCT_INV_04(inout CSeq p_cSeq_s) 
			runs on ServerSyncComp
			system TestAdapter {
				//Variables
				var ImsComponent v_imsComponent_ueims;

				// Test control
				if (not PICS_SCCAS_IUT) {
					log("*** " & __SCOPE__ & ": ERROR: 'PICS_SCCAS_IUT' shall be set to true for executing the TC. ***"); 
					stop;
				}

				// Test component configuration
				f_cf_1IscUp(v_imsComponent_ueims);

				//Start
				f_IncCSeq(p_cSeq_s); v_imsComponent_ueims.start(f_TC_ISC_SCCAS_PCT_INV_04(p_cSeq_s));

				// synchronize both PTCs on 3 sychronization points
				f_serverSync1Client({c_prDone, c_tbDone, c_poDone});

				f_cf_1IscDown(v_imsComponent_ueims);

			} // End of TC_ISC_SCCAS_PCT_INV_04 

		   /*
			* @desc Verify that the SCC AS handles correctly the procedures for handling of SIP OPTIONS request.
			* @param p_cSeq_s Transaction Id