Commit 84e3c6ac authored by Iztok Juvancic's avatar Iztok Juvancic
Browse files

added tc function TP_ISC_SCCAS_TER_INV_01

parent 1588c9f0
Loading
Loading
Loading
Loading
+50 −1
Original line number Diff line number Diff line
@@ -903,7 +903,7 @@ module AtsSccas_TCFunctions {
					                   ?,
					                   ?,
					//mw_sccas_featureCaps({})
					                   mw_sccas_featureCaps({(mw_fcValue("g3gppFeatureCapabilityIndicator",{-})),
					                   mw_sccas_featureCaps({(mw_fcValue("g3gppFeatureCapabilityIndicator")),
										                     (mw_fcValue("g3gppMidcallFeatureCapabilityIndicator",{-})),
										                     (mw_fcValue("g3gppSrvccAlertingFeatureCapabilityIndicator",{-})),
										                     (mw_fcValue("g3gppPs2csSrvccOrigPreAlertingMediaIndicator",{-}))
@@ -947,6 +947,55 @@ module AtsSccas_TCFunctions {
    } // End of group Group_7_3
     
    group Group_8_3 {
    	
		group TP_8_3_1_Distinction_of_requests_sent_to_the_SCCAS{
            
			/**
			 * @desc VVerify that the SCCAS last receives SIP INVITE request from UE/SCSCF
			 * @param   p_cSeq_s Random CSeq INVITE number
			 */
			function f_TC_ISC_SCCAS_TER_INV_01(in CSeq p_cSeq_s)
			runs on ImsComponent {
				// Local variables
				var CSeq v_cSeq_s := p_cSeq_s;
                
				f_registrationAS(v_cSeq_s);
				f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // sync
            
				f_IncCSeq(v_cSeq_s);
				f_setHeaders_INVITE_AS(v_cSeq_s, f_initSipUrl(c_userProfile_PCSCFwithHomeUE), f_initSipUrl(c_userProfile_SCSCFwithHomeUE));
				f_SendINVITE(
							 m_sccas_invite(
											vc_requestUri,
											vc_callId, 
											p_cSeq_s, 
											vc_from, vc_to, vc_via_REG, 
											vc_contact,
											-, -, -,
											m_MBody_SDP(vc_sdp_local)
											));
				tc_wait.start;
				alt {
					[] SIPP.receive(mw_Response_1xx_Base(vc_callId, vc_cSeq)) {
						repeat
					}
					[] SIPP.receive(mw_INVITE_Request_AS(?, ?, ?, ?, *, *)) {
						tc_wait.stop;
						log("*** " & __SCOPE__ & ": PASS: INVITE message was received ***");
						f_selfOrClientSyncAndVerdict(c_tbDone, e_success); // sync
					}
					[] tc_wait.timeout {
						f_selfOrClientSyncAndVerdict(c_tbDone, e_error); // sync 
					}
				}           
                
                
				f_deregistrationAS(v_cSeq_s);
				f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); // sync
            
			}  //End of function f_TC_ISC_SCCAS_TER_INV_01
			
		} // End of group TP_8_3_1_Distinction_of_requests_sent_to_the_SCCAS
    } // End of group Group_8_3
     
    group Group_9_3 {
+35 −1
Original line number Diff line number Diff line
@@ -260,7 +260,7 @@ module AtsSccas_Testcases
    group Group_7_3 {
        group TP_7_3_1_Distinction_of_requests_sent_to_the_SCCAS {

           /*
           /**
            * @desc Verify that the SCCAS first receives SIP INVITE request from UE/SCSCF
            * @param p_cSeq_s Transaction Id
            */
@@ -326,6 +326,40 @@ module AtsSccas_Testcases
    } // End of group Group_7_3
     
    group Group_8_3 {
    	
		group TP_8_3_1_Distinction_of_requests_sent_to_the_SCCAS{
			
			/**
			 * @desc Verify that the SCCAS last receives SIP INVITE request from UE/SCSCF
			 * @param p_cSeq_s Transaction Id
			 */
			 testcase TP_ISC_SCCAS_TER_INV_01(inout CSeq p_cSeq_s) 
			 runs on ServerSyncComp
			 system TestAdapter {
				 //Variables
				 var ImsComponent v_imsComponent_ueims;

				 // Test control
				 if (not PICS_SCCAS_GM) {
					 log("*** " & __SCOPE__ & ": ERROR: 'PICS_SCCAS_GM' 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_TER_INV_01(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 TP_ISC_SCCAS_TER_INV_01
			 
		} // End of group TP_8_3_1_Distinction_of_requests_sent_to_the_SCCAS
			
    } // End of group Group_8_3
     
    group Group_9_3 {