S1AP_TestCases.ttcn 186 KB
Newer Older
garciay's avatar
garciay committed
             *             containing an MME_UE_S1AP_ID
             *             containing an eNB_UE_S1AP_ID
             *             containing a Cause
             *                 indicating appropriate Protocol Cause
             *             containing a Criticality_Diagnostics
             *                 containing an Information Element Criticality_Diagnostics
             *                     containing an IE_Criticality
             *                     containing an IE_ID
             *                     containing an IE_Type_of_Error.
             * </pre>
             * 
             * @see       ETSI TS 103 497-2 TP_S1AP_MME_ERR_04
             * @reference ETSI TS 136 413 V13.4.0 Clause 10.3.5¶3(1st dashed line) and 13
             */
            testcase TC_S1AP_MME_ERR_04() runs on S1AP system TestAdapter { 
                // Local variables
                var S1AP v_s1ap_mme; 
                
                // Test control
                if (not (PICS_S1AP_MME_IUT and PICS_S1AP_MME_INITIATION_ERROR_IND_ABSTRACT_SYNTAX_PROCEDURE)) {
                    log("*** " & __SCOPE__ & ": ERROR: 'PICS_S1AP_MME_IUT and PICS_S1AP_MME_INITIATION_ERROR_IND_ABSTRACT_SYNTAX_PROCEDURE' shall be set to true for executing the TC. ***"); 
                    stop;
                }
                
                // Test component configuration
                f_cf_S1AP_MME_Up(v_s1ap_mme);
                
                // Start
                v_s1ap_mme.start(f_TC_S1AP_MME_ERR_04()); 
                
                // synchronize PTC on 1 sychronization points
                f_serverSyncNClientsAndStop(1, {c_prDone, c_tbDone, c_poDone});
                
                f_cf_Down();
                
            } // End of testcase TC_S1AP_MME_ERR_04
            
garciay's avatar
garciay committed
            /**
             * @desc Verify that the IUT rejects the procedure using Error Indication Procedure if message not contains mandatory 
             *       IEs/IE groups and include Procedure Code IE, Triggering Message IE and Procedure Criticality IE 
             *       and Information Element Criticality Diagnostics IE in the Criticality Diagnostics IE for each 
             *       reported IEs/IE groups within ERROR_INDICATION.
             * <pre>
             * Pics Selection: A.4/2.8 and A.4/6.2.2 and A.4/17.2
             * Configuration: CF_S1-MME
             *     Ensure that the IUT
             *         on receipt of a E-RAB_MODIFICATION_INDICATION,
             *             containing an MME UE_S1AP_ID
             *             not containing an eNB_UE_S1AP_ID
             *             containing an E-RAB_to_be_Modified_List
             *                 containing an E-RAB_to_be_Setup Item 1
             *                     containing an E-RAB_ID
             *                     containing a Transport_Layer_Address
             *                     containing a DL_GTP-TEID
             *         sends an ERROR_INDICATION
             *             containing a Criticality_Diagnostics
             *                 containing a Procedure_Code
             *                 containing a Triggering_Message
             *                 containing a Procedure_Criticality
             *                 containing an Information Element Criticality_Diagnostics
             *                     containing an IE_Criticality
             *                     containing an IE_ID
             *                     containing an IE_Type_of_Error.
             * </pre>
             * 
             * @see       ETSI TS 103 497-2 TP_S1AP_MME_ERR_05
             * @reference ETSI TS 136 413 V13.4.0 Clause 10.3.5¶4(2nd dashed line) and 14
             */
            testcase TC_S1AP_MME_ERR_05() runs on S1AP system TestAdapter { 
                // Local variables
                var S1AP v_s1ap_mme; 
                
                // Test control
                if (not (PICS_S1AP_MME_IUT and PICS_S1AP_MME_INITIATION_ERROR_IND_ABSTRACT_SYNTAX_PROCEDURE)) {
                    log("*** " & __SCOPE__ & ": ERROR: 'PICS_S1AP_MME_IUT and PICS_S1AP_MME_INITIATION_ERROR_IND_ABSTRACT_SYNTAX_PROCEDURE' shall be set to true for executing the TC. ***"); 
                    stop;
                }
                
                // Test component configuration
                f_cf_S1AP_MME_Up(v_s1ap_mme);
                
                // Start
                v_s1ap_mme.start(f_TC_S1AP_MME_ERR_05()); 
                
                // synchronize PTC on 1 sychronization points
                f_serverSyncNClientsAndStop(1, {c_prDone, c_tbDone, c_poDone});
                
                f_cf_Down();
                
            } // End of testcase TC_S1AP_MME_ERR_05
            
            /**
             * @desc Verify that the IUT rejects the procedure if message contains too many occurrances of the same IEs/IE groups 
             *       with response message for this procedure and report the cause value 
             *       ‘Abstract Syntax Error(Falsely Constructed Message)’.
             * <pre>
             * Pics Selection: A.4/2.8 and A.4/6.2.2 and A.4/17.2
             * Configuration: CF_S1-MME
             *     Ensure that the IUT
             *         on receipt of a UE_CONTEXT_RESUME_REQUEST,
             *         with Criticality set to value from the Table 5
             *             containing an MME UE_S1AP_ID
             *             containing an eNB_UE_S1AP_ID
             *             containing an eNB_UE_S1AP_ID(same IE as already present)
             *             containing an E-RAB_Failed_to_Resume_List
             *                 containing an E-RAB_Failed_to_Resume_Item 1
             *                     containing an E-RAB_ID
             *                     containing a Cause
             *                         indicating an appropriate value
             *         sends an UE_CONTEXT_RESUME_FAILURE
             *             containing an MME_UE_S1AP_ID
             *             containing an eNB_UE_S1AP_ID
             *             containing a Cause
             *                 indicating indicating ‘Abstract Syntax Error(Falsely Constructed Message)’.
             * </pre>
             * 
             * @see       ETSI TS 103 497-2 TP_S1AP_MME_ERR_06
             * @reference ETSI TS 136 413 V13.4.0 Clause 10.3.6¶2(1st dashed line)
             */
            testcase TC_S1AP_MME_ERR_06() runs on S1AP system TestAdapter { 
                // Local variables
                var S1AP v_s1ap_mme; 
                
                // Test control
                if (not (PICS_S1AP_MME_IUT and PICS_S1AP_MME_INITIATION_ERROR_IND_ABSTRACT_SYNTAX_PROCEDURE)) {
                    log("*** " & __SCOPE__ & ": ERROR: 'PICS_S1AP_MME_IUT and PICS_S1AP_MME_INITIATION_ERROR_IND_ABSTRACT_SYNTAX_PROCEDURE' shall be set to true for executing the TC. ***"); 
                    stop;
                }
                
                // Test component configuration
                f_cf_S1AP_MME_Up(v_s1ap_mme);
                
                // Start
                v_s1ap_mme.start(f_TC_S1AP_MME_ERR_06()); 
                
                // synchronize PTC on 1 sychronization points
                f_serverSyncNClientsAndStop(1, {c_prDone, c_tbDone, c_poDone});
                
                f_cf_Down();
                
            } // End of testcase TC_S1AP_MME_ERR_06
            
            /**
             * @desc Verify that the IUT terminate the procedure that does not have message to report unsuccessful outcome and 
             *       message contains too many occurrances of the same IEs/IE groups and initiate Error Indication Procedure with 
             *       cause value ‘Abstract Syntax Error(Falsely Constructed Message)’.
             * <pre>
             * Pics Selection: A.4/2.8 and A.4/6.2.2 and A.4/17.2
             * Configuration: CF_S1-MME
             *     Ensure that the IUT
             *         on receipt of a E-RAB_MODIFICATION_INDICATION,
             *             containing an MME UE_S1AP_ID
             *             containing an eNB_UE_S1AP_ID
             *             containing an eNB_UE_S1AP_ID(same IE as already present)
             *             containing an E-RAB_to_be_Modified_List
             *                 containing an E-RAB_to_be_Setup Item 1
             *                     containing an E-RAB_ID
             *                     containing a Transport_Layer_Address
             *                     containing a DL_GTP-TEID
             *         sends an ERROR_INDICATION
             *             containing a Cause
             *                 indicating indicating ‘Abstract Syntax Error(Falsely Constructed Message)’.
             * </pre>
             * 
             * @see       ETSI TS 103 497-2 TP_S1AP_MME_ERR_07
             * @reference ETSI TS 136 413 V13.4.0 Clause 10.3.6¶3(2nd dashed line)
             */
            testcase TC_S1AP_MME_ERR_07() runs on S1AP system TestAdapter { 
                // Local variables
                var S1AP v_s1ap_mme; 
                
                // Test control
                if (not (PICS_S1AP_MME_IUT and PICS_S1AP_MME_INITIATION_ERROR_IND_ABSTRACT_SYNTAX_PROCEDURE)) {
                    log("*** " & __SCOPE__ & ": ERROR: 'PICS_S1AP_MME_IUT and PICS_S1AP_MME_INITIATION_ERROR_IND_ABSTRACT_SYNTAX_PROCEDURE' shall be set to true for executing the TC. ***"); 
                    stop;
                }
                
                // Test component configuration
                f_cf_S1AP_MME_Up(v_s1ap_mme);
                
                // Start
                v_s1ap_mme.start(f_TC_S1AP_MME_ERR_07()); 
                
                // synchronize PTC on 1 sychronization points
                f_serverSyncNClientsAndStop(1, {c_prDone, c_tbDone, c_poDone});
                
                f_cf_Down();
                
            } // End of testcase TC_S1AP_MME_ERR_07
            
        } // End of group Unknown_unforseen_errorneous_group
        
garciay's avatar
garciay committed
    } // End of group MME_Role
garciay's avatar
garciay committed
} // End of module S1AP_TestCases