Commit 0b9b15ff authored by Iztok Juvancic's avatar Iztok Juvancic
Browse files

added tc function TP_ISC_SCCAS_GEN_RIN_02

parent 2192a730
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -611,6 +611,12 @@ module AtsSccas_Steps {
                }
            }
        } //end function f_deregistrationAS
        
		function f_EstablishDialogAS(in CSeq p_cSeq_s)
			runs on ImsComponent {
			var CSeq v_cSeq_s := p_cSeq_s;
		} //end function f_EstablishDialogAS
		
    } //end group CommonProcedures

} // End of module AtsSccas_Steps
+53 −0
Original line number Diff line number Diff line
@@ -824,6 +824,59 @@ module AtsSccas_TCFunctions {

      	} // End of group TP_6A_4_3_SIP_INVITE_responses_towards_the_SC_UE  

		group TP_6A_4_5_Target_refresh_request_for_a_dialog_and_associated_responses {
        
					/**
					 * @desc Verify that the SCCAS sends 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_02(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_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: ReINVITE 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_GEN_RIN_02
            
			}   //End of group  TP_6A_4_5_Target_refresh_request_for_a_dialog_and_associated_responses

    } // End of group Group_6A_4
     
    group Group_7_3 {
+33 −1
Original line number Diff line number Diff line
@@ -228,7 +228,7 @@ module AtsSccas_Testcases
            * @desc Verify that the SCCAS send INVITE for anchored user populated with FeatureCaps header
            * @param p_cSeq_s Transaction Id
            */
            testcase TC_ISC_SCCAS_GEN_INV_01(inout CSeq p_cSeq_s) 
            testcase TP_ISC_SCCAS_GEN_INV_01(inout CSeq p_cSeq_s) 
            runs on ServerSyncComp
            system TestAdapter {
                //Variables
@@ -288,6 +288,38 @@ module AtsSccas_Testcases

        } // End of group TP_6A_4_3_SIP_INVITE_responses_towards_the_SC_UE
        
		group TP_6A_4_5_Target_refresh_request_for_a_dialog_and_associated_responses {
			
			/*
				* @desc Verify that the SCCAS sends the SIP INVITE target refresh request towards the served user 
				* @param p_cSeq_s Transaction Id
				*/
				testcase TC_ISC_SCCAS_GEN_RIN_02(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_GEN_RIN_02(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_02
				
		} //End of group TP_6A_4_5_Target_refresh_request_for_a_dialog_and_associated_responses {
    } // End of group Group_6A_4
     
    group Group_7_3 {