Commit 8a277ff1 authored by wattelet's avatar wattelet
Browse files

RCS-e TC SHARE 8 to 10

parent 412a8909
Loading
Loading
Loading
Loading
+193 −18
Original line number Diff line number Diff line
@@ -3181,8 +3181,9 @@ module AtsImsIot_TestCases_RCS {
        f_mtc_check_invite_mx ( v_mxA );
        f_mtc_check_invite_mx ( v_gmB );
        f_mtc_check_response_mx ( v_gmB, c_statusLine100 );
        f_mtc_userRequestedToAcceptSharing ( v_ueB );
        f_mtc_userRejectsSharing ( v_ueB );
        f_mtc_check_response_mx ( v_gmA, c_statusLine603 );
        f_mtc_userCheckSharingRequestRejected ( v_ueA );
		// check ACK
        f_mtc_check_ack_mx ( v_gmA );
        f_mtc_check_ack_mx ( v_gmB );
@@ -3290,20 +3291,23 @@ module AtsImsIot_TestCases_RCS {
        // test body
        f_mtc_StartAllTrafficCapture();	
        	
        f_mtc_userSetupVoiceCall(v_ueA, v_ueB, v_userInfoB); //Test Sequence Step 1
		
        // check 1 (OPTIONS)
        f_mtc_check_TP_IMS_CONTENT_SHARE_01_gm(v_gmA, false); // Check1
        f_mtc_check_options_mx(v_mxA);
        f_mtc_check_TP_IMS_CONTENT_SHARE_01_ic(v_ic, false); // Check1
        f_mtc_check_options_mx(v_mxB);

        f_mtc_userInformedAboutPartnerCannotShareContent(v_ueA); //Test Sequence Step 2
        f_mtc_userInformedAboutPartnerCanShareContent(v_ueB); //Test Sequence Step 3
        
        f_mtc_EndCall(v_ueA); //Test Sequence Step 4
        f_mtc_userCheckCallEnded(v_ueB); //Test Sequence Step 4
        f_mtc_userCheckCallEnded(v_ueA); //Test Sequence Step 4            
        f_mtc_userSetupVoiceCall ( v_ueA, v_ueB, v_userInfoB );
        f_mtc_userInitiateShare ( v_ueA, v_userInfoB );
        // check INVITE
        f_mtc_check_invite_mx ( v_mxA );
        f_mtc_check_invite_mx ( v_gmB );
        f_mtc_check_response_mx ( v_gmB, c_statusLine100 );
        f_mtc_userRequestedToAcceptSharing ( v_ueB );
        f_mtc_check_response_mx ( v_gmA, c_statusLine180 );
        f_mtc_userRejectsSharing ( v_ueB );
        f_mtc_check_response_mx ( v_gmB, c_statusLine603 );
		f_mtc_check_response_mx ( v_gmA, c_statusLine603 );
        f_mtc_userCheckSharingRequestRejected ( v_ueA );
		// check ACK
        f_mtc_check_ack_mx ( v_gmA );
        f_mtc_check_ack_mx ( v_gmB );
        f_mtc_EndCall ( v_ueA );
        f_mtc_EndCall ( v_ueB );

        // postamble
        f_PO_user_home_deregistration(v_ueA);
@@ -3406,6 +3410,91 @@ module AtsImsIot_TestCases_RCS {
        // test body
        f_mtc_StartAllTrafficCapture();	
        	
        f_mtc_userSetupVoiceCall ( v_ueA, v_ueB, v_userInfoB );
        f_mtc_userInitiateShare ( v_ueA, v_userInfoB );
        // check INVITE
        f_mtc_check_invite_mx ( v_mxA );
        f_mtc_check_invite_mx ( v_gmB );
        f_mtc_check_response_mx ( v_gmB, c_statusLine100 );
        f_mtc_userRequestedToAcceptSharing ( v_ueB );
        f_mtc_check_response_mx ( v_gmA, c_statusLine180 );
        f_mtc_userAcceptsSharing ( v_ueB );
        f_mtc_check_response_mx ( v_gmB, c_statusLine200 );
		f_mtc_check_response_mx ( v_gmA, c_statusLine200 );
        f_mtc_userCheckSharingRequestAnswered ( v_ueA );
		// check ACK
        f_mtc_check_ack_mx ( v_gmA );
        f_mtc_check_ack_mx ( v_gmB );
        f_mtc_EndSharing ( v_ueA );
        // check BYE
        f_mtc_check_bye_mx ( v_gmA ); 
        f_mtc_check_bye_mx ( v_gmB ); 
        f_mtc_check_response_mx ( v_gmB, c_statusLine200 );
		f_mtc_check_response_mx ( v_gmA, c_statusLine200 );
        // check OPTIONS
        f_mtc_check_options_mx ( v_mxB );
        f_mtc_check_options_mx ( v_gmA );
        f_mtc_check_response_mx ( v_gmA, c_statusLine200 );
		f_mtc_check_response_mx ( v_gmB, c_statusLine200 );
        f_mtc_EndCall ( v_ueA );
        f_mtc_EndSharing ( v_ueB );
        // check BYE
        f_mtc_check_bye_mx ( v_gmB ); 
        f_mtc_check_bye_mx ( v_gmA ); 
        f_mtc_userCheckSharingEnded ( v_ueA );
        f_mtc_check_response_mx ( v_gmB, c_statusLine200 );
		f_mtc_check_response_mx ( v_gmA, c_statusLine200 );
        f_mtc_userCheckSharingEnded ( v_ueB );
        // check OPTIONS
        f_mtc_check_options_mx ( v_mxA );
        f_mtc_check_options_mx ( v_gmB );
        f_mtc_check_response_mx ( v_gmB, c_statusLine200 );
		f_mtc_check_response_mx ( v_gmA, c_statusLine200 );
        f_mtc_EndCall ( v_ueB );

        // postamble
        f_PO_user_home_deregistration(v_ueA);
        f_PO_user_home_deregistration(v_ueB);
		
        //unmap/disconnet component ports
        f_cf_user_down(v_ueA);
        f_cf_user_down(v_ueB);
        f_cf_int_as_down(v_config);
        f_cf_adapter_down();
    } //end testcase TC_IMS_SHARE_0009
	
    /**
    * @desc User B rejects to share content with user A
    * @see TS 102 901-2 V0.0.1 clause 4.5.5.5.1
    */
    testcase TC_IMS_SHARE_0009_Rel2() runs on ImsTestCoordinator system IotSystemInterface {
        // create components
        var IotEquipmentUser v_ueA := f_cf_create_IotEquipmentUser(c_userUE_A);
        var IotEquipmentUser v_ueB := f_cf_create_IotEquipmentUser(c_userUE_B);
        var ImsInterfaceMonitor v_gmA := f_cf_create_monitor(c_gm_A);
        var ImsInterfaceMonitor v_gmB := f_cf_create_monitor(c_gm_B);
        var ImsInterfaceMonitor v_ic := f_cf_create_monitor(c_ic);
        var ImsInterfaceMonitor v_iscA := f_cf_create_monitor(c_isc_A);
        var ImsInterfaceMonitor v_iscB := f_cf_create_monitor(c_isc_B);
        var ImsUserInfo v_userInfoA := f_getShareUser(PX_EUT_A);
        var ImsUserInfo v_userInfoB := f_getShareUser(PX_EUT_B); 
        var ImsInterfaceMonitor v_mxA := f_cf_create_monitor(c_mx_A);
        var ImsInterfaceMonitor v_mxB := f_cf_create_monitor(c_mx_B);
        var CF_INT_AS v_config := {v_gmA, v_mxA, v_ic, v_mxB, v_gmB, v_iscA, v_iscB};
				
        // map/connect component ports
        f_cf_adapter_up();
        f_cf_user_up(v_ueA);
        f_cf_user_up(v_ueB);
        f_cf_int_as_up(v_config);
		
        // preamble
        f_mtc_userRegistration(v_ueA, v_userInfoA); 
        f_mtc_userRegistration(v_ueB, v_userInfoB); 
				
        // test body
        f_mtc_StartAllTrafficCapture();	
        	
        f_mtc_userSetupVoiceCall(v_ueA, v_ueB, v_userInfoB); //Test Sequence Step 1
		
        // check 1 (OPTIONS)
@@ -3443,7 +3532,7 @@ module AtsImsIot_TestCases_RCS {
        f_cf_user_down(v_ueB);
        f_cf_int_as_down(v_config);
        f_cf_adapter_down();
    } //end testcase TC_IMS_SHARE_0009
    } //end testcase TC_IMS_SHARE_0009_Rel2
	
    /**
    * @desc Content sharing rejection
@@ -3477,6 +3566,93 @@ module AtsImsIot_TestCases_RCS {
        // test body
        f_mtc_StartAllTrafficCapture();	
        	
        f_mtc_userSetupVoiceCall ( v_ueA, v_ueB, v_userInfoB );
        f_mtc_userInitiateShare ( v_ueA, v_userInfoB );
        // check INVITE
        f_mtc_check_invite_mx ( v_mxA );
        f_mtc_check_invite_mx ( v_gmB );
        f_mtc_check_response_mx ( v_gmB, c_statusLine100 );
        f_mtc_userRequestedToAcceptSharing ( v_ueB );
        f_mtc_check_response_mx ( v_gmA, c_statusLine180 );
        f_mtc_userAcceptsSharing ( v_ueB );
        f_mtc_check_response_mx ( v_gmB, c_statusLine200 );
		f_mtc_check_response_mx ( v_gmA, c_statusLine200 );
        f_mtc_userCheckSharingRequestAnswered ( v_ueA );
		// check ACK
        f_mtc_check_ack_mx ( v_gmA );
        f_mtc_check_ack_mx ( v_gmB );
        f_mtc_EndSharing ( v_ueA );
        // check BYE
        f_mtc_check_bye_mx ( v_gmA ); 
        f_mtc_check_bye_mx ( v_gmB ); 
        f_mtc_userCheckSharingEnded ( v_ueB );
        f_mtc_check_response_mx ( v_gmB, c_statusLine200 );
		f_mtc_check_response_mx ( v_gmA, c_statusLine200 );
        f_mtc_userCheckSharingEnded ( v_ueA );
        // check OPTIONS
        f_mtc_check_options_mx ( v_mxB );
        f_mtc_check_options_mx ( v_gmA );
        f_mtc_check_response_mx ( v_gmA, c_statusLine200 );
		f_mtc_check_response_mx ( v_gmB, c_statusLine200 );
        f_mtc_EndCall ( v_ueA );
        f_mtc_EndSharing ( v_ueB );
        // check BYE
        f_mtc_check_bye_mx ( v_gmB ); 
        f_mtc_check_bye_mx ( v_gmA ); 
        f_mtc_userCheckSharingEnded ( v_ueA );
        f_mtc_check_response_mx ( v_gmB, c_statusLine200 );
		f_mtc_check_response_mx ( v_gmA, c_statusLine200 );
        f_mtc_userCheckSharingEnded ( v_ueB );
        // check OPTIONS
        f_mtc_check_options_mx ( v_mxA );
        f_mtc_check_options_mx ( v_gmB );
        f_mtc_check_response_mx ( v_gmB, c_statusLine200 );
		f_mtc_check_response_mx ( v_gmA, c_statusLine200 );
        f_mtc_EndCall ( v_ueB );

        // postamble
        f_PO_user_home_deregistration(v_ueA);
        f_PO_user_home_deregistration(v_ueB);
		
        //unmap/disconnet component ports
        f_cf_user_down(v_ueA);
        f_cf_user_down(v_ueB);
        f_cf_roam_as_down(v_config);
        f_cf_adapter_down();
    } //end testcase TC_IMS_SHARE_0010
	
    /**
    * @desc Content sharing rejection
    * @see TS 102 901-2 V0.0.1 clause 4.5.5.5.2
    */
    testcase TC_IMS_SHARE_0010_Rel2() runs on ImsTestCoordinator system IotSystemInterface {
        // create components
        var IotEquipmentUser v_ueA := f_cf_create_IotEquipmentUser(c_userUE_A);
        var IotEquipmentUser v_ueB := f_cf_create_IotEquipmentUser(c_userUE_B);
        var ImsInterfaceMonitor v_gmA := f_cf_create_monitor(c_gm_A);
        var ImsInterfaceMonitor v_gmB := f_cf_create_monitor(c_gm_B);
        var ImsInterfaceMonitor v_ic := f_cf_create_monitor(c_ic);
        var ImsInterfaceMonitor v_iscA := f_cf_create_monitor(c_isc_A);
        var ImsInterfaceMonitor v_iscB := f_cf_create_monitor(c_isc_B);
        var ImsUserInfo v_userInfoA := f_getShareUser(PX_EUT_A);
        var ImsUserInfo v_userInfoB := f_getShareUser(PX_EUT_B); 
        var ImsInterfaceMonitor v_mxA := f_cf_create_monitor(c_mx_A);
        var ImsInterfaceMonitor v_mxB := f_cf_create_monitor(c_mx_B);
        var CF_ROAM_AS v_config := {v_gmA, v_mxA, v_ic, v_mxB, v_gmB, v_iscA, v_iscB};
				
        // map/connect component ports
        f_cf_adapter_up();
        f_cf_user_up(v_ueA);
        f_cf_user_up(v_ueB);
        f_cf_roam_as_up(v_config);
		
        // preamble
        f_mtc_userRegistration(v_ueA, v_userInfoA); 
        f_mtc_userRegistration(v_ueB, v_userInfoB); 
				
        // test body
        f_mtc_StartAllTrafficCapture();	
        	
        f_mtc_userSetupVoiceCall(v_ueA, v_ueB, v_userInfoB); //Test Sequence Step 1
		
        // check 1 (OPTIONS)
@@ -3514,7 +3690,6 @@ module AtsImsIot_TestCases_RCS {
        f_cf_user_down(v_ueB);
        f_cf_roam_as_down(v_config);
        f_cf_adapter_down();
    } //end testcase TC_IMS_SHARE_0010

    } //end testcase TC_IMS_SHARE_0010_Rel2
	
}//end module AtsImsIot_TestCases_RCS
 No newline at end of file