Commit e2b51ab3 authored by Iztok Juvancic's avatar Iztok Juvancic
Browse files

added tc function TP_ISC_SCCAS_GEN_RIN_01

parent 752cd8b8
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -617,6 +617,11 @@ module AtsSccas_Steps {
			var CSeq v_cSeq_s := p_cSeq_s;
			var CSeq v_cSeq_s := p_cSeq_s;
		} //end function f_EstablishDialogAS
		} //end function f_EstablishDialogAS
		
		
		function f_ReleaseDialogAS(in CSeq p_cSeq_s)
			runs on ImsComponent {
			var CSeq v_cSeq_s := p_cSeq_s;
		} //end function f_ReleaseDialogAS
		
    } //end group CommonProcedures
    } //end group CommonProcedures


} // End of module AtsSccas_Steps
} // End of module AtsSccas_Steps
+111 −2
Original line number Original line Diff line number Diff line
@@ -826,6 +826,115 @@ module AtsSccas_TCFunctions {


		group TP_6A_4_5_Target_refresh_request_for_a_dialog_and_associated_responses {
		group TP_6A_4_5_Target_refresh_request_for_a_dialog_and_associated_responses {
     
     
                    /**
                     * @desc Verify that the SCCAS sends 1xx and/or 2xx response to the SIP INVITE target refresh request towards the served user
                     * @param   p_cSeq_s Random CSeq INVITE number
                     */
                    function f_TC_ISC_SCCAS_GEN_RIN_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_EstablishDialogAS(v_cSeq_s);


                        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_ack.start;
						alt {
							[] SIPP.receive(mw_Response_1xx_Base(vc_callId, vc_cSeq)) {
								repeat
							}
							[] SIPP.receive(mw_INVITE_Request_AS(?, ?, ?, ?, *, *)) {
								tc_ack.stop;
								log("*** " & __SCOPE__ & ": PASS: INVITE message was received ***");
								//f_selfOrClientSyncAndVerdict(c_tbDone, e_success); // sync
								f_sendResponse(
								m_Response_18XonINVITE_AS_Featurecaps(
													c_statusLine183,
													vc_callId, 
													p_cSeq_s, 
													vc_from, 
													vc_to, 
													vc_via_REG,
													-,
													-
													));
								f_sendResponse(
									 m_Response_2xx_Base(
													c_statusLine200,
													vc_callId, 
													p_cSeq_s, 
													vc_from, 
													vc_to, 
													vc_via_REG
													));
							}
							[] tc_ack.timeout {
								f_selfOrClientSyncAndVerdict(c_tbDone, e_error); // sync 
							}
						}
						//var template FcValue fc:= mw_fcValue("g3gppFeatureCapabilityIndicator",-);
						tc_wait.start;
						alt {
							[] SIPP.receive(mw_Response_PCV_FeatureCaps(
											   183,
											   ?,
											   ?,
											   ?,
							//mw_sccas_featureCaps({})
											   mw_sccas_featureCaps({(mw_fcValue("g3gppFeatureCapabilityIndicator")),
																	 (mw_fcValue("g3gppMidcallFeatureCapabilityIndicator")),
																	 (mw_fcValue("g3gppSrvccAlertingFeatureCapabilityIndicator")),
																	 (mw_fcValue("g3gppPs2csSrvccOrigPreAlertingMediaIndicator"))
																   })
											   )) {
								log("*** " & __SCOPE__ & ": PASS: 183 message was received ***");
								//f_selfOrClientSyncAndVerdict(c_tbDone, e_success); // sync
								repeat
							}
							[] SIPP.receive(mw_Response_PCV_FeatureCaps(
												200,
												?,
												?,
												?,
												mw_sccas_featureCaps({(mw_fcValue("g3gppFeatureCapabilityIndicator")),
																	 (mw_fcValue("g3gppMidcallFeatureCapabilityIndicator")),
																	 (mw_fcValue("g3gppSrvccAlertingFeatureCapabilityIndicator")),
																	 (mw_fcValue("g3gppPs2csSrvccOrigPreAlertingMediaIndicator")),
																	 (mw_fcValue("g3gppRemoteLegInfoFeatureCapabilityIndicator"))
																	})
							)) {
								tc_wait.stop;
								log("*** " & __SCOPE__ & ": PASS: response 200 OK was received ***");
								f_selfOrClientSyncAndVerdict(c_tbDone, e_success); // sync
							}
							[] tc_wait.timeout {
								f_selfOrClientSyncAndVerdict(c_tbDone, e_error); // sync 
							}
						}                
                
						f_ReleaseDialogAS(v_cSeq_s);
                        f_deregistrationAS(v_cSeq_s);
                        f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); // sync
            
                    }  //End of function f_TC_ISC_SCCAS_GEN_RIN_01
        
					/**
					/**
					 * @desc Verify that the SCCAS sends the SIP INVITE target refresh request towards the served user
					 * @desc Verify that the SCCAS sends the SIP INVITE target refresh request towards the served user
					 * @param   p_cSeq_s Random CSeq INVITE number
					 * @param   p_cSeq_s Random CSeq INVITE number
@@ -869,7 +978,7 @@ module AtsSccas_TCFunctions {
							}
							}
						}           
						}           
                
                
                
						f_ReleaseDialogAS(v_cSeq_s);
						f_deregistrationAS(v_cSeq_s);
						f_deregistrationAS(v_cSeq_s);
						f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); // sync
						f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); // sync
            
            
@@ -935,7 +1044,7 @@ module AtsSccas_TCFunctions {
			 * @desc Verify that the SCCAS sends 1xx/2xx response to the SIP INVITE request towards the served user
			 * @desc Verify that the SCCAS sends 1xx/2xx response to the SIP INVITE request towards the served user
			 * @param   p_cSeq_s Random CSeq INVITE number
			 * @param   p_cSeq_s Random CSeq INVITE number
			 */
			 */
			function f_TC_ISC_SCCAS_ORI_INV_02_UE(in CSeq p_cSeq_s)
			function f_TC_ISC_SCCAS_ORI_INV_02(in CSeq p_cSeq_s)
			runs on ImsComponent {
			runs on ImsComponent {
				// Local variables
				// Local variables
				var CSeq v_cSeq_s := p_cSeq_s;
				var CSeq v_cSeq_s := p_cSeq_s;
+53 −24
Original line number Original line Diff line number Diff line
@@ -290,7 +290,36 @@ module AtsSccas_Testcases
        
        
		group TP_6A_4_5_Target_refresh_request_for_a_dialog_and_associated_responses {
		group TP_6A_4_5_Target_refresh_request_for_a_dialog_and_associated_responses {


			/*
		  /**
			* @desc Verify that the SCCAS sends 1xx and/or 2xx response to the SIP INVITE target refresh request towards the served user 
			* @param p_cSeq_s Transaction Id
			*/
			testcase TC_ISC_SCCAS_GEN_RIN_01(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_GEN_RIN_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 TC_ISC_SCCAS_GEN_RIN_01
		
		  /**
			* @desc Verify that the SCCAS sends the SIP INVITE target refresh request towards the served user 
			* @desc Verify that the SCCAS sends the SIP INVITE target refresh request towards the served user 
			* @param p_cSeq_s Transaction Id
			* @param p_cSeq_s Transaction Id
			*/
			*/
@@ -379,7 +408,7 @@ module AtsSccas_Testcases
                f_cf_1IscUp(v_imsComponent_ueims);
                f_cf_1IscUp(v_imsComponent_ueims);
				
				
                //Start
                //Start
                f_IncCSeq(p_cSeq_s); v_imsComponent_ueims.start(f_TC_ISC_SCCAS_ORI_INV_02_UE(p_cSeq_s));
                f_IncCSeq(p_cSeq_s); v_imsComponent_ueims.start(f_TC_ISC_SCCAS_ORI_INV_02(p_cSeq_s));
				
				
                // synchronize both PTCs on 3 sychronization points
                // synchronize both PTCs on 3 sychronization points
                f_serverSync1Client({c_prDone, c_tbDone, c_poDone});
                f_serverSync1Client({c_prDone, c_tbDone, c_poDone});