ItsSrem_TestCases.ttcn 9.6 KB
Newer Older
garciay's avatar
garciay committed
1
2
3
4
5
6
7
8
/**
 *    @author   ETSI / STF517
 *    @version  $URL$
 *              $Id$
 *    @desc     SREM Testcases (TP version: 0.0.1)
 *
 */

9
module ItsSrem_TestCases {
garciay's avatar
garciay committed
10
11
12
13
14
15
16
    
    // LibItsMapemSpatem
    import from LibItsSremSsem_TestSystem all;
    
    // ItsMapemSpatem
    import from ItsSrem_TpFunctions all;
    
17
    group iTS_SRole {
garciay's avatar
garciay committed
18
        
19
        group sreMessageDissemination { 
garciay's avatar
garciay committed
20
            
21
22
23
24
25
            group sreMessageFormat { 
                
                 /**
                 * @desc Check that protocolVersion is set to 1 and messageID is set to 9 (ITS-S)
                 * <pre>
26
                 * Pics Selection: not PICS_RSU
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
63
64
65
66
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
                 * Initial conditions: 
                 *   with {
                 *        the IUT being in the "initial state"
                 *    }
                 * Expected behaviour:
                 *    ensure that {
                 *        when { 
                 *            the IUT is requested to generate a new SREM
                 *        }
                 *        then {
                 *            the IUT sends a valid SREM
                 *                containing ITS PDU header
                 *                    containing protocolVersion
                 *                        indicating value '1'
                 *                    and containing messageID
                 *                        indicating value '9'
                 *        }
                 *    }
                 * </pre>
                 * 
                 * @version   1.0.4
                 * @see       ETSI TS 103 191-2 v0.0.1 TP_IS_RLT_MSGF_BV_01
                 * @reference ETSI TS 103 301 V1.0.4 Clause 6.3
                 */
                testcase TP_IS_TLC_MSGF_BV_01 () runs on ItsSremSsem system ItsSremSsemSystem {
                    
                    f_IS_TLC_MSGF_BV_01();
                    
                } // End of testcase TP_IS_TLC_MSGF_BV_01
                
            } // End of group sreMessageFormat 
            
            group sreCommunication {
                
                /**
                 * @desc Check that SREM uses BTP_B packet
                 * <pre>
                 * Pics Selection: not PICS_RSU and PICS_SREM_GENERATION
                 * Initial conditions: 
                 *   with {
                 *        the IUT being in the "initial state"
                 *        and the IUT sending SREM 
                 *    }
                 * Expected behaviour:
                 *    ensure that {
                 *        when { 
                 *            a SREM is generated
                 *        }
                 *        then {
                 *            the IUT sends a valid SREM
                 *                encapsulated in a BTP-B packet
                 *        }
                 *    }
                 * </pre>
                 * 
                 * @version   1.0.4
                 * @see       ETSI TS 103 191-2 v0.0.1 TP_IS_TLC_COMM_BV_01_01
                 * @reference ETSI TS 103 301 V1.0.4 Clause 6.4.3.2
                 */
                testcase TC_IS_TLC_COMM_BV_01_01 () runs on ItsSremSsem system ItsSremSsemSystem {
                    
                    f_IS_TLC_COMM_BV_01_01();
                    
                } // End of testcase TC_IS_TLC_COMM_BV_01_01
                
                /**
                 * @desc Check that the destination port for SREM is set to 2007
                 * <pre>
                 * Pics Selection: not PICS_RSU and PICS_SREM_GENERATION
                 * Initial conditions: 
                 *   with {
                 *        the IUT being in the "initial state"
                 *        and the IUT sending SREM 
                 *    }
                 * Expected behaviour:
                 *    ensure that {
                 *        when { 
                 *            a SREM is generated
                 *        }
                 *        then {
                 *            the IUT sends a valid SREM
                 *                encapsulated in a BTP packet
                 *                   containing a destination port value set to 2007
                 *                   and containing a destination port info value set to 0
                 *        }
                 *    }
                 * </pre>
                 * 
                 * @version   1.0.4
                 * @see       ETSI TS 103 191-2 v0.0.1 TP_IS_TLC_COMM_BV_01_02
                 * @reference ETSI TS 103 301 V1.0.4 Clause 6.4.3.2
                 */
                testcase TC_IS_TLC_COMM_BV_01_02 () runs on ItsSremSsem system ItsSremSsemSystem {
                    
                    f_IS_TLC_COMM_BV_01_02();
                    
                } // End of testcase TC_IS_TLC_COMM_BV_01_02
                
            } // End of group sreCommunication 
            
        } // End of group sreMessageDissemination 
        
        group sreMessageProcessing {
            
            /**
             * @desc Check that the IUT can successfully process all mandatory fields of SSEM received (ITS-S)
garciay's avatar
garciay committed
133
             * <pre>
134
             * Pics Selection: not PICS_RSU and PICS_SSEM_RECEPTION
garciay's avatar
garciay committed
135
136
137
             * Initial conditions: 
             *   with {
             *        the IUT being in the "initial state"
138
             *        and the IUT having send a valid SREM
garciay's avatar
garciay committed
139
140
141
142
             *    }
             * Expected behaviour:
             *    ensure that {
             *        when { 
143
             *            the IUT receives a valid SSEM
garciay's avatar
garciay committed
144
145
             *        }
             *        then {
146
147
             *            the IUT forwards the SSEM content to upper layers
             *            and the IUT forwards the SSEM content to other facilities
garciay's avatar
garciay committed
148
149
150
151
152
             *        }
             *    }
             * </pre>
             * 
             * @version   1.0.4
153
154
             * @see       ETSI TS 103 191-2 v0.0.1 TP_IS_TLC_MSGF_BV_03
             * @reference ETSI TS 103 301 V1.0.4 Clause 8.3
garciay's avatar
garciay committed
155
             */
156
            testcase TC_IS_TLC_MSGF_BV_03 () runs on ItsSremSsem system ItsSremSsemSystem {
garciay's avatar
garciay committed
157
                
158
                f_IS_TLC_MSGF_BV_03();
garciay's avatar
garciay committed
159
                
160
            } // End of testcase TC_IS_TLC_MSGF_BV_03
garciay's avatar
garciay committed
161
            
162
163
164
165
166
167
        } // End of group sreMessageProcessing
        
    } // End of group iTS_SRole
    
    group rsuRole {
        
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
        group sreMessageDisseminationRsu { 
            
            group sreMessageFormatRsu { 
                
                 /**
                 * @desc Check that protocolVersion is set to 1 and messageID is set to 10 (TLC-S)
                 * <pre>
                 * Pics Selection: PICS_RSU and PICS_SREM_GENERATION
                 * Initial conditions: 
                 *   with {
                 *        the IUT being in the "initial state"
                 *    }
                 * Expected behaviour:
                 *    ensure that {
                 *        when { 
                 *            the IUT having receive a valid SREM
                 *        }
                 *        then {
                 *            the IUT sends a valid SREM
                 *                containing ITS PDU header
                 *                    containing protocolVersion
                 *                        indicating value '1'
                 *                    and containing messageID
                 *                        indicating value '10'
                 *        }
                 *    }
                 * </pre>
                 * 
                 * @version   1.0.4
                 * @see       ETSI TS 103 191-2 v0.0.1 TP_IS_RLT_MSGF_BV_04
                 * @reference ETSI TS 103 301 V1.0.4 Clause 6.3
                 */
                testcase TP_IS_TLC_MSGF_BV_04 () runs on ItsSremSsem system ItsSremSsemSystem {
                    
                    f_IS_TLC_MSGF_BV_04();
                    
                } // End of testcase TP_IS_TLC_MSGF_BV_04
                
            } // End of group sreMessageFormatRsu 
            
            group sreCommunicationRsu {
                
            } // End of group sreCommunicationRsu
            
        } // End of group sreMessageDisseminationRsu
213
        
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
        group sreMessageProcessing {
            
                 /**
                 * @desc Check that the IUT can successfully process all mandatory fields of SREM received (TLC-S)
                 * <pre>
                 * Pics Selection: PICS_RSU and PICS_SREM_GENERATION
                 * Initial conditions: 
                 *   with {
                 *        the IUT being in the "initial state"
                 *    }
                 * Expected behaviour:
                 *    ensure that {
                 *        when { 
                 *            the IUT having receive a valid SREM
                 *        }
                 *        then {
                 *            the IUT forwards the SSEM content to upper layers
                 *            and the IUT forwards the SSEM content to other facilities
                 *        }
                 *    }
                 * </pre>
                 * 
                 * @version   1.0.4
                 * @see       ETSI TS 103 191-2 v0.0.1 TP_IS_RLT_MSGF_BV_02
                 * @reference ETSI TS 103 301 V1.0.4 Clause 6.3
                 */
                testcase TP_IS_TLC_MSGF_BV_02 () runs on ItsSremSsem system ItsSremSsemSystem {
                    
                    f_IS_TLC_MSGF_BV_02();
                    
                } // End of testcase TP_IS_TLC_MSGF_BV_02
                
        } // End of group sreMessageProcessing
garciay's avatar
garciay committed
247
        
248
    } // End of group rsuRole
garciay's avatar
garciay committed
249
    
250
} // End of module ItsSrem_TestCases