AtsGtpv2C_TestControl.ttcn 1.27 KB
Newer Older
garciay's avatar
garciay committed
/**
 * @author      ETSI/STF498
 * @version     $Url$
 *              $Id$
 * @dec         Testcontrol module for INT GTPv2-C protocol
 */
module AtsGtpv2C_TestControl { 
    
    // ATS GTPv2-C
    import from AtsGtpv2C_TestCases all;
    
    // LibGtpv2C
    import from LibGtpv2C_Pics all;
    
    // Test Execution
    control {
        
        /* IUT is MME */
        if (PICS_S11_IUT_IS_MME) {
            /* Path management */
            if (PICS_ECHO_REQUEST and PICS_ECHO_REPLY) {
                execute(TC_S11_MME_PM_01());
                execute(TC_S11_MME_PM_02());
            }
            if (PICS_VERSION_NOT_SUPPORTED) {
                execute(TC_S11_MME_PM_03());
            }
            /* Tunnel management */
        }
        
        /* IUT is S-GW */
        if (PICS_S11_IUT_IS_SGW) {
            /* Path management */
            if (PICS_ECHO_REQUEST and PICS_ECHO_REPLY) {
                execute(TC_S11_SGW_PM_01());
                execute(TC_S11_SGW_PM_02());
                execute(TC_S11_SGW_PM_03());
            }
            if (PICS_VERSION_NOT_SUPPORTED) {
                execute(TC_S11_SGW_PM_03());
            }
            /* Tunnel management */
        }
        
    } // End of 'control' statement
    
} // End of module AtsGtpv2C_TestControl