Commit 2735e361 authored by Iztok Juvancic's avatar Iztok Juvancic
Browse files

added tc function TP_ISC_SCCAS_GEN_INV_02

parent 22ac69fa
Loading
Loading
Loading
Loading
+55 −13
Original line number Original line Diff line number Diff line
@@ -735,6 +735,10 @@ module AtsSccas_TCFunctions {


            } // End of function f_TC_ISC_SCCAS_GEN_INV_01
            } // End of function f_TC_ISC_SCCAS_GEN_INV_01
            
            
		}  // End of group TP_6A_4_2_SIP_INVITE_request
		
		group TP_6A_4_3_SIP_INVITE_responses_towards_the_SC_UE {
			
            /**
            /**
             *  @desc    Verify that the SCCAS sends 1xx and/or 2xx response to the SIP INVITE request towards the served user.
             *  @desc    Verify that the SCCAS sends 1xx and/or 2xx response to the SIP INVITE request towards the served user.
             *  @param   p_cSeq_s Random CSeq REGISTER number
             *  @param   p_cSeq_s Random CSeq REGISTER number
@@ -761,17 +765,55 @@ module AtsSccas_TCFunctions {
                                            -, -, -,
                                            -, -, -,
                                            m_MBody_SDP(vc_sdp_local)
                                            m_MBody_SDP(vc_sdp_local)
                                            ));
                                            ));
              
				tc_ack.start;
				tc_ack.start;
				alt {
				alt {
                    [] SIPP.receive(mw_sccas_Response_2xxonINVITE(vc_callId, vc_cSeq, vc_from, vc_to, vc_via_REG, vc_contact)) {
					[] SIPP.receive(mw_Response_1xx_Base(vc_callId, vc_cSeq)) {
						repeat
					}
					[] SIPP.receive(mw_INVITE_Request_AS(?, ?, ?, ?, *, *)) {
						tc_ack.stop;
						tc_ack.stop;
                        log("*** " & __SCOPE__ & ": PASS: 200 OK message was received ***");
						log("*** " & __SCOPE__ & ": PASS: INVITE message was received ***");
                        f_selfOrClientSyncAndVerdict(c_tbDone, e_success); // sync
						//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,
											-,
											-
											));
					}
					}
					[] tc_ack.timeout {
					[] tc_ack.timeout {
						f_selfOrClientSyncAndVerdict(c_tbDone, e_error); // sync 
						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_fcValue("g3gppFeatureCapabilityIndicator")),
															 (mw_fcValue("g3gppMidcallFeatureCapabilityIndicator")),
															 (mw_fcValue("g3gppSrvccAlertingFeatureCapabilityIndicator")),
															 (mw_fcValue("g3gppPs2csSrvccOrigPreAlertingMediaIndicator")),
															 (mw_fcValue("g3gppRemoteLegInfoFeatureCapabilityIndicator"))
															})
					               )) {
						tc_wait.stop;
						log("*** " & __SCOPE__ & ": PASS: response 183 was received ***");
						f_selfOrClientSyncAndVerdict(c_tbDone, e_success); // sync
					}
					[] tc_wait.timeout {
						f_selfOrClientSyncAndVerdict(c_tbDone, e_error); // sync 
					}
				}


                // Postamble
                // Postamble
                f_deregistrationAS(v_cSeq_s);
                f_deregistrationAS(v_cSeq_s);
@@ -780,7 +822,7 @@ module AtsSccas_TCFunctions {


            } // End of function f_TC_ISC_SCCAS_GEN_INV_02
            } // End of function f_TC_ISC_SCCAS_GEN_INV_02


        }  // End of group TP_6A_4_2_SIP_INVITE_request
      	} // End of group TP_6A_4_3_SIP_INVITE_responses_towards_the_SC_UE  


    } // End of group Group_6A_4
    } // End of group Group_6A_4
     
     
+13 −2
Original line number Original line Diff line number Diff line
@@ -101,6 +101,15 @@ module AtsSccas_Templates
        }
        }
        
        
        group HeaderTemplatesIztok {
        group HeaderTemplatesIztok {
			template Accept mw_accept( template AcceptBody_List p_acceptParams := *) := {
				fieldName  := ACCEPT_E,
				acceptArgs := p_acceptParams
			}
			
			template RecvInfo mw_recvinfo( template InfoPackage_List p_infoPackage_list ) :={
				fieldName := RECV_INFO_E,
				infoPackageList :=p_infoPackage_list
			}
}
}
        
        
        group HeaderTemplatesYann {
        group HeaderTemplatesYann {
@@ -777,7 +786,9 @@ module AtsSccas_Templates
										) modifies mw_Response_StatusCode_Base := {
										) modifies mw_Response_StatusCode_Base := {
											msgHeader := {
											msgHeader := {
												pChargingVector := p_chargingVector,
												pChargingVector := p_chargingVector,
												featureCaps   := p_featureCaps
												featureCaps   := p_featureCaps,
												accept := mw_accept({{"application/vnd.3gpp.state-and-event-info.xml"}}),
												recvInfo := mw_recvinfo({{"g3gppStateAndEventPackageName"}})
											}
											}
										}
										}
				    }
				    }
+34 −1
Original line number Original line Diff line number Diff line
@@ -255,6 +255,39 @@ module AtsSccas_Testcases
            
            
		} // End of group TP_6A_4_2_SIP_INVITE_request
		} // End of group TP_6A_4_2_SIP_INVITE_request
		
		
		group TP_6A_4_3_SIP_INVITE_responses_towards_the_SC_UE {
			
			/*
			 * @desc Verify that the SCCAS sends 1xx and/or 2xx response to the SIP INVITE request towards the served user 
			 * @param p_cSeq_s Transaction Id
			 */
			 testcase TC_ISC_SCCAS_GEN_INV_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_INV_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_INV_02

        } // End of group TP_6A_4_3_SIP_INVITE_responses_towards_the_SC_UE

    } // End of group Group_6A_4
    } // End of group Group_6A_4
     
     
    group Group_7_3 {
    group Group_7_3 {