ItsGeoNetworking_TestControl.ttcn 13.7 KB
Newer Older
filatov's avatar
filatov committed
1
2
3
4
5
6
7
8
9
10
11
12
/**
 *  @author     ETSI / STF405 / STF449
 *  @version    $URL$
 *              $Id$
 *  @desc       Test Control file for GeoNetworking
 *
 */
module ItsGeoNetworking_TestControl {
    
    // ATS GeoNetworking
    import from ItsGeoNetworking_TestCases {testcase all};
    
13
    // LibItsGeoNetworking
filatov's avatar
filatov committed
14
15
16
17
18
19
    import from LibItsGeoNetworking_Pics all;
    import from LibItsGeoNetworking_TypesAndValues all;
    
    // Test Execution
    control {
        
20
21
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
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
        /* FDV */
        
        if(PICS_GN_BASIC_HEADER) {
            execute(TC_GEONW_FDV_BAH_BV_01());
            execute(TC_GEONW_FDV_BAH_BI_02());
        }

        if(PICS_GN_COMMON_HEADER) {
            execute(TC_GEONW_FDV_COH_BV_01());
            execute(TC_GEONW_FDV_COH_BV_02());
            execute(TC_GEONW_FDV_COH_BV_03());
            execute(TC_GEONW_FDV_COH_BO_04());
        }        
        
        if(PICS_GN_BEACON_SRC) {
            execute(TC_GEONW_FDV_BEA_BV_01());
            execute(TC_GEONW_FDV_BEA_BV_02());
            execute(TC_GEONW_FDV_BEA_BV_03());
            execute(TC_GEONW_FDV_BEA_BV_04());
        }
        
        if(PICS_GN_GUC_SRC) {
	        execute(TC_GEONW_FDV_GUC_BV_01());
        }
        
        if(PICS_GN_GBC_SRC) {
    	    execute(TC_GEONW_FDV_GBC_BV_01());
        }
        
        if(PICS_GN_GAC_SRC) {
        	execute(TC_GEONW_FDV_GAC_BV_01());
        }
        
        if(PICS_GN_SHB_SRC) {
        	execute(TC_GEONW_FDV_SHB_BV_01());
        }
        
        if(PICS_GN_TSB_SRC) {
        	execute(TC_GEONW_FDV_TSB_BV_01());
        }

		/* PON/LOT */

        if(PICS_GN_GUC_SRC and PICS_GN_BEACON_DST) {
        	execute(TC_GEONW_PON_LOT_BV_01());
        }
        
        if(PICS_GN_LS_REQ_SRC and PICS_GN_LS_REP_DST) {
        	execute(TC_GEONW_PON_LOT_BV_02());
        }
        
        if(PICS_GN_BEACON_DST) {
        	execute(TC_GEONW_PON_LOT_BV_03_01());
        }
        
        if(PICS_GN_GUC_DST) {
        	execute(TC_GEONW_PON_LOT_BV_03_02());
        }
        
        if(PICS_GN_GAC_DST) {
        	execute(TC_GEONW_PON_LOT_BV_03_03());
        }
        
        if(PICS_GN_GBC_DST) {
        	execute(TC_GEONW_PON_LOT_BV_03_04());
        }
        
        if(PICS_GN_TSB_DST) {
        	execute(TC_GEONW_PON_LOT_BV_03_05());
        }
        
        if(PICS_GN_SHB_DST) {
        	execute(TC_GEONW_PON_LOT_BV_03_06());
        }
        
        if(PICS_GN_LS_REQ_DST) {
        	execute(TC_GEONW_PON_LOT_BV_03_07());
        }
        
        if(PICS_GN_LS_REP_DST) {
        	execute(TC_GEONW_PON_LOT_BV_03_08());
        }
        
        if(PICS_GN_LS_REQ_SRC) {
        	execute(TC_GEONW_PON_LOT_BV_04());
        }
        
        if(PICS_GN_GUC_DST) {
        	execute(TC_GEONW_PON_LOT_BV_05_01());
        }
        
        if(PICS_GN_GAC_DST) {
        	execute(TC_GEONW_PON_LOT_BV_05_02());
        }
        
        if(PICS_GN_GBC_DST) {
        	execute(TC_GEONW_PON_LOT_BV_05_03());
        }
        
        if(PICS_GN_TSB_DST) {
        	execute(TC_GEONW_PON_LOT_BV_05_04());
        }
        
        if(PICS_GN_SHB_DST) {
        	execute(TC_GEONW_PON_LOT_BV_05_05());
        }
        
        if(PICS_GN_LS_REQ_DST) {
        	execute(TC_GEONW_PON_LOT_BV_05_06());
        }
        
        if(PICS_GN_LS_REP_DST) {
       		execute(TC_GEONW_PON_LOT_BV_05_07());
        }
        
        /* PON/LPV */
        
        if(PICS_GN_BEACON_SRC) {
        	execute(TC_GEONW_PON_LPV_BV_01());
        }
        
        /* PON/SQN */
        
        if(PICS_GN_GBC_SRC) {
            execute(TC_GEONW_PON_SQN_BV_01());
            execute(TC_GEONW_PON_SQN_BV_02());
        }
        
        /* PON/LOS */
        
        if(PICS_GN_LS_REQ_SRC) {
            execute(TC_GEONW_PON_LOS_BV_01());
            execute(TC_GEONW_PON_LOS_BV_02());
	        if(PICS_GN_LS_REP_DST) {
                execute(TC_GEONW_PON_LOS_BV_03());
                execute(TC_GEONW_PON_LOS_BV_04());
	        }
            execute(TC_GEONW_PON_LOS_BV_05());
        }
        
        if(PICS_GN_LS_REQ_RETRANSMISSION) {
            execute(TC_GEONW_PON_LOS_TI_06());
            execute(TC_GEONW_PON_LOS_BV_07());
        }
        
        if(PICS_GN_LS_REQ_DST) {
            execute(TC_GEONW_PON_LOS_BV_08());
            execute(TC_GEONW_PON_LOS_BO_09());
        }
        
        if(PICS_GN_LS_FWD) {
filatov's avatar
filatov committed
171
172
        execute(TC_GEONW_PON_LOS_BV_10());
        execute(TC_GEONW_PON_LOS_BV_11());
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
        }
        
        if(PICS_GN_LS_REQ_SRC) {
            execute(TC_GEONW_PON_LOS_BV_12());
            execute(TC_GEONW_PON_LOS_BV_13());
            execute(TC_GEONW_PON_LOS_BV_14());
            execute(TC_GEONW_PON_LOS_BV_15());
            execute(TC_GEONW_PON_LOS_BV_16());
            execute(TC_GEONW_PON_LOS_BV_17());
        }
        
        /* PON/FPB */
        
        if(PICS_GN_GUC_SRC) {
            execute(TC_GEONW_PON_FPB_BV_01());
            execute(TC_GEONW_PON_FPB_BV_02());
            execute(TC_GEONW_PON_FPB_BV_03());
            execute(TC_GEONW_PON_FPB_BV_04());
        }
        
        if(PICS_GN_TSB_SRC) {
            execute(TC_GEONW_PON_FPB_BV_06());
            execute(TC_GEONW_PON_FPB_BV_07());
            execute(TC_GEONW_PON_FPB_BV_08());
        }
        
        if(PICS_GN_GUC_SRC) {
        	execute(TC_GEONW_PON_FPB_BV_09());
        }
        
        if(PICS_GN_TSB_SRC) {
        	execute(TC_GEONW_PON_FPB_BV_10());
        }
        
        if(PICS_GN_GUC_SRC) {
        	execute(TC_GEONW_PON_FPB_BV_11_01());
        }
        
        if(PICS_GN_GAC_SRC) {
        	execute(TC_GEONW_PON_FPB_BV_11_02());
        }
        
        if(PICS_GN_GBC_SRC) {
        	execute(TC_GEONW_PON_FPB_BV_11_03());
        }
        
        if(PICS_GN_TSB_SRC) {
        	execute(TC_GEONW_PON_FPB_BV_11_04());
        }
        
        if(PICS_GN_SHB_SRC) {
        	execute(TC_GEONW_PON_FPB_BV_11_05());
        }
        
        if(PICS_GN_GUC_SRC) {
filatov's avatar
filatov committed
228
        execute(TC_GEONW_PON_FPB_BV_12_01());
229
230
231
        }
        
        if(PICS_GN_GAC_SRC) {
filatov's avatar
filatov committed
232
        execute(TC_GEONW_PON_FPB_BV_12_02());
233
234
235
        }
        
        if(PICS_GN_GBC_SRC) {
filatov's avatar
filatov committed
236
        execute(TC_GEONW_PON_FPB_BV_12_03());
237
238
239
        }
        
        if(PICS_GN_TSB_SRC) {
filatov's avatar
filatov committed
240
        execute(TC_GEONW_PON_FPB_BV_12_04());
241
242
243
244
245
246
247
248
249
        }
        
        /* PON/GNA */
        
        if(PICS_GN_ADDR_AUTO) {
            if (PICS_GN_LOCAL_ADDR_CONF_METHOD == e_auto) {
                execute(TC_GEONW_PON_GNA_BV_01());
            }
        }
filatov's avatar
filatov committed
250
        
251
252
        if(PICS_GN_DAD) {
	        execute(TC_GEONW_PON_GNA_BV_02());
filatov's avatar
filatov committed
253
254
        }
        
255
        /* PON/BEA */
filatov's avatar
filatov committed
256
        
257
258
259
260
        if(PICS_GN_BEACON_SRC) {
            execute(TC_GEONW_PON_BEA_TI_01());
            execute(TC_GEONW_PON_BEA_TI_02());
            execute(TC_GEONW_PON_BEA_BV_03());
filatov's avatar
filatov committed
261
        }
262
263
264
265
266
267
268
269
270
271
272
        
        /* PON/GUC */
        
        if(PICS_GN_GUC_SRC) {
            if ((PICS_GN_GEOUNICAST_FORWARDING_ALGORITHM == e_greedy) or (PICS_GN_GEOUNICAST_FORWARDING_ALGORITHM == e_unspecified)) {
                execute(TC_GEONW_PON_GUC_BV_01());
            }
            
            if (PICS_GN_GEOUNICAST_FORWARDING_ALGORITHM == e_cbf) {
                execute(TC_GEONW_PON_GUC_BV_11());
            }            
273
        }
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300

        if(PICS_GN_GUC_FWD) {
            if ((PICS_GN_GEOUNICAST_FORWARDING_ALGORITHM == e_greedy) or (PICS_GN_GEOUNICAST_FORWARDING_ALGORITHM == e_unspecified)) {
	            execute(TC_GEONW_PON_GUC_BV_02());
            }
            
            execute(TC_GEONW_PON_GUC_BV_03());
            execute(TC_GEONW_PON_GUC_BO_04());

            if (PICS_GN_GEOUNICAST_FORWARDING_ALGORITHM == e_cbf) {
                execute(TC_GEONW_PON_GUC_BV_06());
                execute(TC_GEONW_PON_GUC_BV_07());
                execute(TC_GEONW_PON_GUC_BV_08());
                execute(TC_GEONW_PON_GUC_BV_10());
            }
            
            if ((PICS_GN_GEOUNICAST_FORWARDING_ALGORITHM == e_greedy) or (PICS_GN_GEOUNICAST_FORWARDING_ALGORITHM == e_unspecified)) {
                execute(TC_GEONW_PON_GUC_BO_12());
            }
        }

        if(PICS_GN_GUC_DST) {
	        execute(TC_GEONW_PON_GUC_BV_05());
       
            if ((PICS_GN_GEOUNICAST_FORWARDING_ALGORITHM == e_greedy) or (PICS_GN_GEOUNICAST_FORWARDING_ALGORITHM == e_unspecified)) {
	            execute(TC_GEONW_PON_GUC_BO_13());
            }
filatov's avatar
filatov committed
301
302
        }
        
303
304
305
306
307
308
309
310
311
312
313
314
315
        /* PON/GBC */        
        
        if(PICS_GN_GBC_SRC) {
            execute(TC_GEONW_PON_GBC_BV_01());
            if ((PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_simple) or (PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_unspecified) or (PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_advanced)) {
            	execute(TC_GEONW_PON_GBC_BV_02());
            }
            if ((PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_simple) or (PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_unspecified)) {
                execute(TC_GEONW_PON_GBC_BV_03());
            }
            if (PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_cbf) {
                execute(TC_GEONW_PON_GBC_BV_12());
            }
316
        }
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331

        if(PICS_GN_GBC_FWD) {        
            if ((PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_simple) or (PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_unspecified)) {
            	execute(TC_GEONW_PON_GBC_BO_04());
            }
            execute(TC_GEONW_PON_GBC_BV_05());
            if ((PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_simple) or (PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_unspecified)) {
                execute(TC_GEONW_PON_GBC_BO_06());
            }
            execute(TC_GEONW_PON_GBC_BV_07());
            execute(TC_GEONW_PON_GBC_BV_08());
            execute(TC_GEONW_PON_GBC_BV_11());
            execute(TC_GEONW_PON_GBC_BO_19());
            execute(TC_GEONW_PON_GBC_BV_20());
            execute(TC_GEONW_PON_GBC_BV_21());
filatov's avatar
filatov committed
332
        }
333
334
335
336
337
338
339
340
341
342
343
344

        if(PICS_GN_GBC_DST) {
            execute(TC_GEONW_PON_GBC_BV_09());
            if ((PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_simple) or (PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_unspecified)) {
            	execute(TC_GEONW_PON_GBC_BO_10());
            }
        }
        
        /* PON/TSB */

        if(PICS_GN_TSB_SRC) {        
        	execute(TC_GEONW_PON_TSB_BV_01());
filatov's avatar
filatov committed
345
        }
346

347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
        if(PICS_GN_TSB_FWD) {        
            execute(TC_GEONW_PON_TSB_BV_02());
            execute(TC_GEONW_PON_TSB_BO_03());
            execute(TC_GEONW_PON_TSB_BV_04());
            execute(TC_GEONW_PON_TSB_BO_05());
        }
        if(PICS_GN_TSB_DST) {        
            execute(TC_GEONW_PON_TSB_BV_06());
            execute(TC_GEONW_PON_TSB_BO_07());
        }
        
        /* PON/SHB */
        
        if(PICS_GN_SHB_SRC) {
            execute(TC_GEONW_PON_SHB_BV_01());
        }
        if(PICS_GN_SHB_DST) {        
            execute(TC_GEONW_PON_SHB_BV_02());
        }
        
        /* PON/GAC */

        if(PICS_GN_GAC_SRC) {        
            execute(TC_GEONW_PON_GAC_BV_01());
            if ((PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_simple) or (PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_unspecified)) {
            	execute(TC_GEONW_PON_GAC_BV_02());
            }
            if (PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_cbf) {
                execute(TC_GEONW_PON_GAC_BV_13());
            }            
        }

        if(PICS_GN_GAC_FWD) {        
            execute(TC_GEONW_PON_GAC_BV_03());
            execute(TC_GEONW_PON_GAC_BV_04());
            execute(TC_GEONW_PON_GAC_BO_05());
            execute(TC_GEONW_PON_GAC_BV_06());
            execute(TC_GEONW_PON_GAC_BO_07());
            execute(TC_GEONW_PON_GAC_BO_11());
        }

        if(PICS_GN_GAC_DST) {        
            execute(TC_GEONW_PON_GAC_BV_08());
            execute(TC_GEONW_PON_GAC_BO_09());
            execute(TC_GEONW_PON_GAC_BV_10());
        }
        
		/* PON/BCA */

        if(PICS_GN_GBC_FWD) {        
            if (PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_cbf) {
                execute(TC_GEONW_PON_BCA_BO_01());
                execute(TC_GEONW_PON_BCA_BV_02());
                execute(TC_GEONW_PON_BCA_BV_03());
                execute(TC_GEONW_PON_BCA_BO_04());
                execute(TC_GEONW_PON_BCA_BV_05());
                execute(TC_GEONW_PON_BCA_BV_06());
				execute(TC_GEONW_PON_BCA_BV_07());
                execute(TC_GEONW_PON_BCA_BV_08());
            }
        }
        
        /* PON/BAA */
        
        if(PICS_GN_GBC_FWD) {
            if (PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_advanced) {
                execute(TC_GEONW_PON_BAA_BV_01());
                execute(TC_GEONW_PON_BAA_BV_02());
                execute(TC_GEONW_PON_BAA_BV_03());
                execute(TC_GEONW_PON_BAA_BV_04());
                execute(TC_GEONW_PON_BAA_BV_05());
                execute(TC_GEONW_PON_BAA_BV_06());
                execute(TC_GEONW_PON_BAA_BV_07());
                execute(TC_GEONW_PON_BAA_BO_08());
                execute(TC_GEONW_PON_BAA_BV_09());
                execute(TC_GEONW_PON_BAA_BV_10());
                execute(TC_GEONW_PON_BAA_BV_11());
            }
        }
                
        /* CAP */       
        
        if(PICS_GN_LS_REQ_SRC) {         
        	execute(TC_GEONW_CAP_LOS_BV_01());
        }
        
        if(PICS_GN_GUC_FWD) {        
        	execute(TC_GEONW_CAP_FPB_BV_01());
        }
      
        if(PICS_GN_GBC_FWD) {
      	  execute(TC_GEONW_CAP_FPB_BV_02());
        }
filatov's avatar
filatov committed
440
441
442
        
    }
    
443
} // end ItsGeoNetworking_TestControl