ItsCam_TestControl.ttcn 4.71 KB
Newer Older
filatov's avatar
filatov committed
1
/**
garciay's avatar
garciay committed
2
 *    @author   ETSI / STF405 / STF449 / STF484 / STF517
filatov's avatar
filatov committed
3
4
5
6
7
8
9
10
11
12
13
 *    @version  $URL$
 *              $Id$
 *    @desc     Test Control file for CAM
 *
 */
module ItsCam_TestControl {
    
    // ATS CAM
    import from ItsCam_TestCases {testcase all};
    
    // LibIts
garciay's avatar
garciay committed
14
    import from LibItsCam_Pics all;
filatov's avatar
filatov committed
15
16
17
18
    
    // Test Execution
    control {
        
19
        if(PICS_CAM_GENERATION) {
garciay's avatar
garciay committed
20
            if (not PICS_IS_IUT_SECURED) {
filatov's avatar
filatov committed
21
                execute(TC_CAM_MSD_FMT_BV_01());
garciay's avatar
garciay committed
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
                if (not PICS_RSU) {
                    execute(TC_CAM_MSD_FMT_BV_02());
                    execute(TC_CAM_MSD_FMT_BV_03());
                    execute(TC_CAM_MSD_FMT_BV_04());
                    execute(TC_CAM_MSD_FMT_BV_05());
                    execute(TC_CAM_MSD_INA_BV_01_01());
                    execute(TC_CAM_MSD_INA_BV_01_02());
                    execute(TC_CAM_MSD_INA_BV_01_03());
                    execute(TC_CAM_MSD_INA_BV_01_04());
                    execute(TC_CAM_MSD_INA_BV_01_05());
                    execute(TC_CAM_MSD_INA_BV_01_06());
                    execute(TC_CAM_MSD_INA_BV_01_07());
                    execute(TC_CAM_MSD_INA_BV_01_08());
                    execute(TC_CAM_MSD_INA_BV_01_09());
                    execute(TC_CAM_MSD_INA_BV_01_10());
                    execute(TC_CAM_MSD_INA_BV_01_11());
                    execute(TC_CAM_MSD_INA_BV_01_12());
                    execute(TC_CAM_MSD_INA_BV_01_13());
                    execute(TC_CAM_MSD_INA_BV_01_14());
                    execute(TC_CAM_MSD_INA_BV_01_15());
                    execute(TC_CAM_MSD_INA_BV_01_16());
                    execute(TC_CAM_MSD_INA_BV_01_17());
                    execute(TC_CAM_MSD_INA_BV_01_18());
                    execute(TC_CAM_MSD_INA_BV_01_19());
                    execute(TC_CAM_MSD_INA_BV_01_20());
                    execute(TC_CAM_MSD_INA_BV_01_21());
                    execute(TC_CAM_MSD_INA_BV_01_22());
                    execute(TC_CAM_MSD_INA_BV_01_23());
                    execute(TC_CAM_MSD_INA_BV_01_24());
                    execute(TC_CAM_MSD_INA_BV_01_25());
                    execute(TC_CAM_MSD_INA_BV_01_26());
                    execute(TC_CAM_MSD_INA_BV_01_27());
                    execute(TC_CAM_MSD_INA_BV_01_28());
                    execute(TC_CAM_MSD_INA_BV_01_29());
                    execute(TC_CAM_MSD_INA_BV_01_30());
                    execute(TC_CAM_MSD_INA_BV_01_31());
                    execute(TC_CAM_MSD_INA_BV_01_32());
                    execute(TC_CAM_MSD_INA_BV_01_33());
                    execute(TC_CAM_MSD_INA_BV_01_34());
                    execute(TC_CAM_MSD_INA_BV_01_35());
                }
63
                if (PICS_PUBLICTRANS) {
garciay's avatar
garciay committed
64
                    execute(TC_CAM_MSD_INA_BV_02());
65
66
                }
                if (PICS_SPECIALTRANS) {
garciay's avatar
garciay committed
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
                    execute(TC_CAM_MSD_INA_BV_03());
                }
                if (PICS_DANGEROUSGOODS) {
                    execute(TC_CAM_MSD_INA_BV_04());
                }
                if (PICS_ROADWORKS) {
                    execute(TC_CAM_MSD_INA_BV_05());
                }
                if (PICS_RESCUE) {
                    execute(TC_CAM_MSD_INA_BV_06());
                }
                if (PICS_EMERGENCY) {
                    execute(TC_CAM_MSD_INA_BV_07());
                }
                if (PICS_SAFETY_CAR) {
                    execute(TC_CAM_MSD_INA_BV_08());
                }
                
                execute(TC_CAM_MSD_GFQ_TI_01());
                execute(TC_CAM_MSD_GFQ_TI_02());
                execute(TC_CAM_MSD_GFQ_TI_03());
                execute(TC_CAM_MSD_GFQ_BV_04());
                execute(TC_CAM_MSD_GFQ_BV_05());
                execute(TC_CAM_MSD_GFQ_BV_06());
                execute(TC_CAM_MSD_GFQ_TI_07());
                execute(TC_CAM_MSD_GFQ_TI_08());
                
                execute(TC_CAM_MSD_PAR_BV_01());
                execute(TC_CAM_MSD_PAR_BV_02());
                execute(TC_CAM_MSD_PAR_BV_03());
            } else {
                if (PICS_PUBLICTRANS and PICS_SPECIALVEHICLECONTAINER) {
99
100
                    execute(TC_CAM_MSD_SSP_BO_02());
                }
garciay's avatar
garciay committed
101
102
103
                if (PICS_SPECIALTRANS and PICS_SPECIALVEHICLECONTAINER) {
                    execute(TC_CAM_MSD_SSP_BO_03());
                }
104
            }
garciay's avatar
garciay committed
105
        }
filatov's avatar
filatov committed
106
        
107
        if(PICS_CAM_RECEPTION) {
garciay's avatar
garciay committed
108
109
110
            if (not PICS_IS_IUT_SECURED) {
                execute(TC_CAM_MSP_BV_01());
            } else {
111
112
113
                execute(TC_CAM_MSP_SSP_BV_02());
                execute(TC_CAM_MSP_SSP_BV_03());
            }
114
        }
filatov's avatar
filatov committed
115
116
117
118
        
    }
    
} // end ItsCam_TestControl