OneM2M_Testcases.ttcn 760 KB
Newer Older
1
2
3
4
5
6
7
/**
 *  Copyright Notification
 *  No part of this document may be reproduced, in an electronic retrieval system or otherwise, except as authorized by written permission.
 *  The copyright and the foregoing restriction extend to reproduction in all media.
 *  © 2016, oneM2M Partners Type 1 (ARIB, ATIS, CCSA, ETSI, TIA, TSDSI, TTA, TTC).
 *  All rights reserved.
 *  
8
 *  @author     oneM2M
9
 *  @version    $URL: https://oldforge.etsi.org/svn/oneM2M/trunk/ttcn/OneM2M_Testcases.ttcn $
10
 *              $Id: OneM2M_Testcases.ttcn 344 2017-08-07 14:11:47Z reinaortega $
11
12
13
 *  @desc       Module containing test cases for oneM2M
 *
 */
14
 //Test
15
16
17
18
19
20
21
22

module OneM2M_Testcases {

	import from OneM2M_TestSystem all;
	import from OneM2M_Templates all;
	import from OneM2M_Types all;//{type XSD.ID};
	import from OneM2M_TypesAndValues all;
	import from OneM2M_Pixits all;
23
	import from OneM2M_Pics all;
24
25
26
	import from OneM2M_Functions all;
	import from XSD all;
	
27
	
28
29
30
	//Demos used for validation purposes
	group oneM2M_demos {
	
31
		group helpingTestCases {//These are not part of the test suite, just for verification purposes
32
			
33
			testcase TC_DELETE_RESOURCES() runs on CseTester system CseSystem {
34
35
36
				
				timer t_ac := 5.0;
				var integer i; 
37
38
				var XSD.ID v_resourceAddress;
				var RequestPrimitive v_request;
39
40
41
				map(self:mcaPort, system:mcaPort); 
					
				for (i:=0; i<lengthof(PX_RESOURCES_TO_BE_DELETED); i:= i+1) {  
42
43
44
45
46
47
48
					
					v_resourceAddress := f_getResourceAddress() & "/" & PX_RESOURCES_TO_BE_DELETED[i]; 
						
    				v_request := valueof(m_deleteRequest(v_resourceAddress));
    
    				mcaPort.send(m_request(v_request));
					
49
50
					t_ac.start;
					alt {
51
						[] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) {
52
							t_ac.stop;
53
							log(__SCOPE__ & ":Resource deleted");
54
55
							setverdict(pass);
						}
56
						[] mcaPort.receive(mw_response(mw_responsePrimitiveKO)) {
57
							t_ac.stop;
58
							log(__SCOPE__ & ":Error while deleting resource");
59
60
61
62
							setverdict(fail);
						}
						[] mcaPort.receive {
							t_ac.stop;
63
							log(__SCOPE__ & ":Unexpected message received");
64
65
66
							setverdict(inconc);
						}
						[] t_ac.timeout {
67
							log(__SCOPE__ & ":No answer while deleting resource");
68
69
70
71
72
73
74
75
76
							setverdict(inconc);
						}	
					}	
				}
			
				unmap(self:mcaPort, system:mcaPort); 
				stop;
			}	
		
77
		}//end group helpingTestCases
78
79
80
81
82
	
	}//end group oneM2M_demos
	
	group CSE {
		
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
83
84
85
		group Generic {
			
			group Create {
86
				group g_CSE_GEN_CRE_001 {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
87

88
89
90
91
92
					/**
					 * @desc Check that the IUT accepts the creation of a  resource using unstructured resource identifier
					 * 
					 */
					testcase TC_CSE_GEN_CRE_001_CSR() runs on CseTester system CseSystem {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
93
94
						// Local variables
						                        
95
						f_CSE_GEN_CRE_001(e_cseRelative);
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
96
97
					}

98
					testcase TC_CSE_GEN_CRE_001_SPR() runs on CseTester system CseSystem {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
99
100
						// Local variables
						
101
						f_CSE_GEN_CRE_001(e_spRelative);
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
102
103
					}
					
104
					testcase TC_CSE_GEN_CRE_001_ABS() runs on CseTester system CseSystem {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
105
106
						// Local variables
							
107
						f_CSE_GEN_CRE_001(e_absolute);
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
108
109
					}
								
110
					function f_CSE_GEN_CRE_001(in PrimitiveScope p_primitiveScope) runs on CseTester {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
111
112
113
114
115
116
117
118
    				
						// Local variables
						var RequestPrimitive v_request;
						var integer v_aeIndex := -1;
						var integer v_resourceIndex := -1;
											   
						// Test control
						if(not(PICS_UNSTRUCTURED_CSE_RELATIVE_RESOURCE_ID_FORMAT)) {
119
							setverdict(inconc, __SCOPE__ & ": Unstructured-CSE-Relative-Resource-ID format support is required to run this test case");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
							stop;
						}
    				
						// Test component configuration
						f_cf01Up();
    				
						// Test adapter configuration
    				
						// Preamble
						v_aeIndex := f_cse_preamble_registerAe();//c_CRUDNDi);
					
						v_resourceIndex := f_cse_createResource(int3, m_createContainerBase, v_aeIndex); 
					
						// Test Body
						//Force usage of Non-Hierarchical addressing method
						vc_addressingMethod := e_nonHierarchical;
						vc_primitiveScope := p_primitiveScope;
						v_request := f_getCreateRequestPrimitive(int3, m_createContainerBase, v_resourceIndex);
						
						mcaPort.send(m_request(v_request));
						tc_ac.start;
						alt {
							[] mcaPort.receive(mw_response(mw_responsePrimitive(int2001))) {
								tc_ac.stop;
144
								setverdict(pass, __SCOPE__ & ": Container resource created using non-hierarchical addressing method");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
145
146
147
							}
							[] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) {
								tc_ac.stop;
148
								setverdict(fail, __SCOPE__ & ": Wrong response status code in the response");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
149
150
151
							}
							[] mcaPort.receive(mw_response(mw_responsePrimitiveKO)) {
								tc_ac.stop;
152
								setverdict(fail, __SCOPE__ & ": Error while creating container resource using non-hierarchical addressing method");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
153
154
							}
							[] tc_ac.timeout {
155
								setverdict(fail, __SCOPE__ & ": No answer while creating resource");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
156
157
158
159
160
161
162
163
164
165
166
							}
						}	
    								
						// Postamble
						vc_addressingMethod := PX_ADDRESSING_METHOD;
						vc_primitiveScope := PX_PRIMITIVE_SCOPE;
						f_cse_postamble_deleteResources();
					
						// Tear down
						f_cf01Down();
    				
167
					}//end f_CSE_GEN_CRE_001				
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
168
169
				
				
170
				} // end of group g_CSE_GEN_CRE_001
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
171
				
172
				group g_CSE_GEN_CRE_002 {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
173

174
175
176
177
178
					/**
					 * @desc Check that the IUT accepts the creation of a  resource using structured resource identifier
					 * 
					 */
					testcase TC_CSE_GEN_CRE_002_CSR() runs on CseTester system CseSystem {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
179
180
						// Local variables
						                        
181
						f_CSE_GEN_CRE_002(e_cseRelative);
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
182
183
					}

184
					testcase TC_CSE_GEN_CRE_002_SPR() runs on CseTester system CseSystem {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
185
186
						// Local variables
						
187
						f_CSE_GEN_CRE_002(e_spRelative);
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
188
189
					}
					
190
					testcase TC_CSE_GEN_CRE_002_ABS() runs on CseTester system CseSystem {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
191
192
						// Local variables
							
193
						f_CSE_GEN_CRE_002(e_absolute);
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
194
195
					}
								
196
					function f_CSE_GEN_CRE_002(in PrimitiveScope p_primitiveScope) runs on CseTester {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
197
198
199
200
201
202
203
204
    				
						// Local variables
						var RequestPrimitive v_request;
						var integer v_aeIndex := -1;
						var integer v_resourceIndex := -1;
											   
						// Test control
						if(not(PICS_STRUCTURED_CSE_RELATIVE_RESOURCE_ID_FORMAT)) {
205
							setverdict(inconc, __SCOPE__ & ": Structured-CSE-Relative-Resource-ID format support is required to run this test case");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
							stop;
						}
    				
						// Test component configuration
						f_cf01Up();
    				
						// Test adapter configuration
    				
						// Preamble
						v_aeIndex := f_cse_preamble_registerAe();//c_CRUDNDi);
					
						v_resourceIndex := f_cse_createResource(int3, m_createContainerBase, v_aeIndex); 
					
						// Test Body
						//Force usage of Non-Hierarchical addressing method
						vc_addressingMethod := e_hierarchical;
						vc_primitiveScope := p_primitiveScope;
						v_request := f_getCreateRequestPrimitive(int3, m_createContainerBase, v_resourceIndex);
						
						mcaPort.send(m_request(v_request));
						tc_ac.start;
						alt {
							[] mcaPort.receive(mw_response(mw_responsePrimitive(int2001))) {
								tc_ac.stop;
230
								setverdict(pass, __SCOPE__ & ": Container resource created using hierarchical addressing method");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
231
232
233
							}
							[] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) {
								tc_ac.stop;
234
								setverdict(fail, __SCOPE__ & ": Wrong response status code in the response");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
235
236
237
							}
							[] mcaPort.receive(mw_response(mw_responsePrimitiveKO)) {
								tc_ac.stop;
238
								setverdict(fail, __SCOPE__ & ": Error while creating container resource using hierarchical addressing method");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
239
240
							}
							[] tc_ac.timeout {
241
								setverdict(fail, __SCOPE__ & ": No answer while creating resource");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
242
243
244
245
246
247
248
249
250
251
252
							}
						}	
    								
						// Postamble
						vc_addressingMethod := PX_ADDRESSING_METHOD;
						vc_primitiveScope := PX_PRIMITIVE_SCOPE;
						f_cse_postamble_deleteResources();
					
						// Tear down
						f_cf01Down();
    				
253
					}//end f_CSE_GEN_CRE_002				
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
254
255
				
				
256
				} // end of group g_CSE_GEN_CRE_002
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
257
258
259
260
				
			} // end of group Create
			
			group Retrieve {
261
				group g_CSE_GEN_RET_001 {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
262

263
264
265
266
267
					/**
					 * @desc Check that the IUT accepts the retrieval of a <container>  resource using unstructured resource identifier
					 * 
					 */
					testcase TC_CSE_GEN_RET_001_CSR() runs on CseTester system CseSystem {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
268
269
						// Local variables
						                        
270
						f_CSE_GEN_RET_001(e_cseRelative);
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
271
272
					}

273
					testcase TC_CSE_GEN_RET_001_SPR() runs on CseTester system CseSystem {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
274
275
						// Local variables
						
276
						f_CSE_GEN_RET_001(e_spRelative);
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
277
278
					}
					
279
					testcase TC_CSE_GEN_RET_001_ABS() runs on CseTester system CseSystem {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
280
281
						// Local variables
							
282
						f_CSE_GEN_RET_001(e_absolute);
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
283
284
					}
								
285
					function f_CSE_GEN_RET_001(in PrimitiveScope p_primitiveScope) runs on CseTester {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
286
287
288
289
290
291
292
    				
						// Local variables
						var integer v_aeIndex := -1;
						var integer v_resourceIndex := -1;
											   
						// Test control
						if(not(PICS_UNSTRUCTURED_CSE_RELATIVE_RESOURCE_ID_FORMAT)) {
293
							setverdict(inconc, __SCOPE__ & ": Unstructured-CSE-Relative-Resource-ID format support is required to run this test case");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
							stop;
						}
    				
						// Test component configuration
						f_cf01Up();
    				
						// Test adapter configuration
    				
						// Preamble
						v_aeIndex := f_cse_preamble_registerAe();//c_CRUDNDi);
					
						v_resourceIndex := f_cse_createResource(int3, m_createContainerBase, v_aeIndex); 
					
						// Test Body
						//Force usage of Non-Hierarchical addressing method
						vc_addressingMethod := e_nonHierarchical;
						vc_primitiveScope := p_primitiveScope;
						
						mcaPort.send(m_request(m_retrieveResource(f_getResourceAddress(v_resourceIndex), f_getOriginator(v_resourceIndex))));
						tc_ac.start;
						alt {
							[] mcaPort.receive(mw_response(mw_responsePrimitive(int2000))) {
								tc_ac.stop;
317
								setverdict(pass, __SCOPE__ & ": Container resource retrieved using non-hierarchical addressing method");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
318
319
320
							}
							[] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) {
								tc_ac.stop;
321
								setverdict(fail, __SCOPE__ & ": Wrong response status code in the response");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
322
323
324
							}
							[] mcaPort.receive(mw_response(mw_responsePrimitiveKO)) {
								tc_ac.stop;
325
								setverdict(fail, __SCOPE__ & ": Error while retrieving container resource using non-hierarchical addressing method");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
326
327
							}
							[] tc_ac.timeout {
328
								setverdict(fail, __SCOPE__ & ": No answer while retrieving resource");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
329
330
331
332
333
334
335
336
337
338
339
							}
						}	
    								
						// Postamble
						vc_addressingMethod := PX_ADDRESSING_METHOD;
						vc_primitiveScope := PX_PRIMITIVE_SCOPE;
						f_cse_postamble_deleteResources();
					
						// Tear down
						f_cf01Down();
    				
340
					}//end f_CSE_GEN_RET_001				
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
341
342
				
				
343
				} // end of group g_CSE_GEN_RET_001
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
344
				
345
				group g_CSE_GEN_RET_002 {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
346

347
348
349
350
351
					/**
					 * @desc Check that the IUT accepts the retrieval of a <container>  resource using structured resource identifier
					 * 
					 */
					testcase TC_CSE_GEN_RET_002_CSR() runs on CseTester system CseSystem {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
352
353
						// Local variables
						                        
354
						f_CSE_GEN_RET_002(e_cseRelative);
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
355
356
					}

357
					testcase TC_CSE_GEN_RET_002_SPR() runs on CseTester system CseSystem {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
358
359
						// Local variables
						
360
						f_CSE_GEN_RET_002(e_spRelative);
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
361
362
					}
					
363
					testcase TC_CSE_GEN_RET_002_ABS() runs on CseTester system CseSystem {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
364
365
						// Local variables
							
366
						f_CSE_GEN_RET_002(e_absolute);
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
367
368
					}
								
369
					function f_CSE_GEN_RET_002(in PrimitiveScope p_primitiveScope) runs on CseTester {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
370
371
372
373
374
375
376
    				
						// Local variables
						var integer v_aeIndex := -1;
						var integer v_resourceIndex := -1;
											   
						// Test control
						if(not(PICS_STRUCTURED_CSE_RELATIVE_RESOURCE_ID_FORMAT)) {
377
							setverdict(inconc, __SCOPE__ & ": Structured-CSE-Relative-Resource-ID format support is required to run this test case");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
							stop;
						}
    				
						// Test component configuration
						f_cf01Up();
    				
						// Test adapter configuration
    				
						// Preamble
						v_aeIndex := f_cse_preamble_registerAe();//c_CRUDNDi);
					
						v_resourceIndex := f_cse_createResource(int3, m_createContainerBase, v_aeIndex); 
					
						// Test Body
						//Force usage of Non-Hierarchical addressing method
						vc_addressingMethod := e_hierarchical;
						vc_primitiveScope := p_primitiveScope;
						
						mcaPort.send(m_request(m_retrieveResource(f_getResourceAddress(v_resourceIndex), f_getOriginator(v_resourceIndex))));tc_ac.start;
						alt {
							[] mcaPort.receive(mw_response(mw_responsePrimitive(int2000))) {
								tc_ac.stop;
400
								setverdict(pass, __SCOPE__ & ": Container resource retrieved using hierarchical addressing method");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
401
402
403
							}
							[] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) {
								tc_ac.stop;
404
								setverdict(fail, __SCOPE__ & ": Wrong response status code in the response");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
405
406
407
							}
							[] mcaPort.receive(mw_response(mw_responsePrimitiveKO)) {
								tc_ac.stop;
408
								setverdict(fail, __SCOPE__ & ": Error while retrieving container resource using hierarchical addressing method");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
409
410
							}
							[] tc_ac.timeout {
411
								setverdict(fail, __SCOPE__ & ": No answer while retrieving resource");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
412
413
414
415
416
417
418
419
420
421
422
							}
						}	
    								
						// Postamble
						vc_addressingMethod := PX_ADDRESSING_METHOD;
						vc_primitiveScope := PX_PRIMITIVE_SCOPE;
						f_cse_postamble_deleteResources();
					
						// Tear down
						f_cf01Down();
    				
423
					}//end f_CSE_GEN_RET_002				
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
424
				
425
				} // end of group g_CSE_GEN_RET_002
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
426
427
428
429
				
			} // end of group Retrieve
			
			group Update {
430
				group g_CSE_GEN_UPD_001 {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
431

432
433
434
435
436
					/**
					 * @desc Check that the IUT accepts the update of a <container>  resource using unstructured resource identifier
					 * 
					 */
					testcase TC_CSE_GEN_UPD_001_CSR() runs on CseTester system CseSystem {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
437
438
						// Local variables
						                        
439
						f_CSE_GEN_UPD_001(e_cseRelative);
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
440
441
					}

442
					testcase TC_CSE_GEN_UPD_001_SPR() runs on CseTester system CseSystem {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
443
444
						// Local variables
						
445
						f_CSE_GEN_UPD_001(e_spRelative);
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
446
447
					}
					
448
					testcase TC_CSE_GEN_UPD_001_ABS() runs on CseTester system CseSystem {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
449
450
						// Local variables
							
451
						f_CSE_GEN_UPD_001(e_absolute);
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
452
453
					}
								
454
					function f_CSE_GEN_UPD_001(in PrimitiveScope p_primitiveScope) runs on CseTester {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
455
456
    				
						// Local variables
457
						var RequestPrimitive v_updateRequest := valueof(m_updateContainerBase);
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
458
459
460
461
462
						var integer v_aeIndex := -1;
						var integer v_resourceIndex := -1;
											   
						// Test control
						if(not(PICS_UNSTRUCTURED_CSE_RELATIVE_RESOURCE_ID_FORMAT)) {
463
							setverdict(inconc, __SCOPE__ & ": Unstructured-CSE-Relative-Resource-ID format support is required to run this test case");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
							stop;
						}
    				
						// Test component configuration
						f_cf01Up();
    				
						// Test adapter configuration
    				
						// Preamble
						v_aeIndex := f_cse_preamble_registerAe();//c_CRUDNDi);
					
						v_resourceIndex := f_cse_createResource(int3, m_createContainerBase, v_aeIndex); 
					
						// Test Body
						//Force usage of Non-Hierarchical addressing method
						vc_addressingMethod := e_nonHierarchical;
						vc_primitiveScope := p_primitiveScope;
						
						v_updateRequest.primitiveContent.container.labels := {"MyLabel"};
						
						v_updateRequest := f_getUpdateRequestPrimitive(int3, v_resourceIndex, v_updateRequest);
						
						mcaPort.send(m_request(v_updateRequest));
						tc_ac.start;
						alt {
							[] mcaPort.receive(mw_response(mw_responsePrimitive(int2004))) {
								tc_ac.stop;
491
								setverdict(pass, __SCOPE__ & ": Container resource updated using non-hierarchical addressing method");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
492
493
494
							}
							[] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) {
								tc_ac.stop;
495
								setverdict(fail, __SCOPE__ & ": Wrong response status code in the response");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
496
497
498
							}
							[] mcaPort.receive(mw_response(mw_responsePrimitiveKO)) {
								tc_ac.stop;
499
								setverdict(fail, __SCOPE__ & ": Error while updating container resource using non-hierarchical addressing method");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
500
501
							}
							[] tc_ac.timeout {
502
								setverdict(fail, __SCOPE__ & ": No answer while updating resource");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
503
504
505
506
507
508
509
510
511
512
513
							}
						}	
    								
						// Postamble
						vc_addressingMethod := PX_ADDRESSING_METHOD;
						vc_primitiveScope := PX_PRIMITIVE_SCOPE;
						f_cse_postamble_deleteResources();
					
						// Tear down
						f_cf01Down();
    				
514
					}//end f_CSE_GEN_UPD_001				
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
515
				
516
				} // end of group g_CSE_GEN_UPD_001
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
517
				
518
				group g_CSE_GEN_UPD_002 {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
519

520
521
522
523
524
					/**
					 * @desc Check that the IUT accepts the update of a <container>  resource using structured resource identifier
					 * 
					 */
					testcase TC_CSE_GEN_UPD_002_CSR() runs on CseTester system CseSystem {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
525
526
						// Local variables
						                        
527
						f_CSE_GEN_UPD_002(e_cseRelative);
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
528
529
					}

530
					testcase TC_CSE_GEN_UPD_002_SPR() runs on CseTester system CseSystem {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
531
532
						// Local variables
						
533
						f_CSE_GEN_UPD_002(e_spRelative);
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
534
535
					}
					
536
					testcase TC_CSE_GEN_UPD_002_ABS() runs on CseTester system CseSystem {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
537
538
						// Local variables
							
539
						f_CSE_GEN_UPD_002(e_absolute);
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
540
541
					}
								
542
					function f_CSE_GEN_UPD_002(in PrimitiveScope p_primitiveScope) runs on CseTester {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
543
544
    				
						// Local variables
545
						var RequestPrimitive v_updateRequest := valueof(m_updateContainerBase);
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
546
547
548
549
550
						var integer v_aeIndex := -1;
						var integer v_resourceIndex := -1;
											   
						// Test control
						if(not(PICS_STRUCTURED_CSE_RELATIVE_RESOURCE_ID_FORMAT)) {
551
							setverdict(inconc, __SCOPE__ & ": Structured-CSE-Relative-Resource-ID format support is required to run this test case");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
							stop;
						}
    				
						// Test component configuration
						f_cf01Up();
    				
						// Test adapter configuration
    				
						// Preamble
						v_aeIndex := f_cse_preamble_registerAe();//c_CRUDNDi);
					
						v_resourceIndex := f_cse_createResource(int3, m_createContainerBase, v_aeIndex); 
					
						// Test Body
						//Force usage of Non-Hierarchical addressing method
						vc_addressingMethod := e_hierarchical;
						vc_primitiveScope := p_primitiveScope;
						
						v_updateRequest.primitiveContent.container.labels := {"MyLabel"};
						
						v_updateRequest := f_getUpdateRequestPrimitive(int3, v_resourceIndex, v_updateRequest);
						
						mcaPort.send(m_request(v_updateRequest));
						tc_ac.start;
						alt {
							[] mcaPort.receive(mw_response(mw_responsePrimitive(int2004))) {
								tc_ac.stop;
579
								setverdict(pass, __SCOPE__ & ": Container resource updated using hierarchical addressing method");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
580
581
582
							}
							[] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) {
								tc_ac.stop;
583
								setverdict(fail, __SCOPE__ & ": Wrong response status code in the response");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
584
585
586
							}
							[] mcaPort.receive(mw_response(mw_responsePrimitiveKO)) {
								tc_ac.stop;
587
								setverdict(fail, __SCOPE__ & ": Error while updating container resource using hierarchical addressing method");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
588
589
							}
							[] tc_ac.timeout {
590
								setverdict(fail, __SCOPE__ & ": No answer while updating resource");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
591
592
593
594
595
596
597
598
599
600
601
							}
						}	
    								
						// Postamble
						vc_addressingMethod := PX_ADDRESSING_METHOD;
						vc_primitiveScope := PX_PRIMITIVE_SCOPE;
						f_cse_postamble_deleteResources();
					
						// Tear down
						f_cf01Down();
    				
602
					}//end f_CSE_GEN_UPD_002				
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
603
604
				
				
605
				} // end of group g_CSE_GEN_UPD_002
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
606
607
608
609
				
			} // end of group Update
			
			group Delete {
610
				group g_CSE_GEN_DEL_001 {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
611

612
613
614
615
616
					/**
					 * @desc Check that the IUT accepts the deletion of a <container>  resource using unstructured resource identifier
					 *  
					 */
					testcase TC_CSE_GEN_DEL_001_CSR() runs on CseTester system CseSystem {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
617
618
						// Local variables
						                        
619
						f_CSE_GEN_DEL_001(e_cseRelative);
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
620
621
					}

622
					testcase TC_CSE_GEN_DEL_001_SPR() runs on CseTester system CseSystem {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
623
624
						// Local variables
						
625
						f_CSE_GEN_DEL_001(e_spRelative);
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
626
627
					}
					
628
					testcase TC_CSE_GEN_DEL_001_ABS() runs on CseTester system CseSystem {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
629
630
						// Local variables
							
631
						f_CSE_GEN_DEL_001(e_absolute);
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
632
633
					}
								
634
					function f_CSE_GEN_DEL_001(in PrimitiveScope p_primitiveScope) runs on CseTester {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
635
636
637
638
639
640
641
642
    				
						// Local variables
						var RequestPrimitive v_request;
						var integer v_aeIndex := -1;
						var integer v_resourceIndex := -1;
											   
						// Test control
						if(not(PICS_UNSTRUCTURED_CSE_RELATIVE_RESOURCE_ID_FORMAT)) {
643
							setverdict(inconc, __SCOPE__ & ": Unstructured-CSE-Relative-Resource-ID format support is required to run this test case");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
							stop;
						}
    				
						// Test component configuration
						f_cf01Up();
    				
						// Test adapter configuration
    				
						// Preamble
						v_aeIndex := f_cse_preamble_registerAe();//c_CRUDNDi);
					
						v_resourceIndex := f_cse_createResource(int3, m_createContainerBase, v_aeIndex); 
					
						// Test Body
						//Force usage of Non-Hierarchical addressing method
						vc_addressingMethod := e_nonHierarchical;
						vc_primitiveScope := p_primitiveScope;
						
						v_request := valueof(m_deleteRequest(f_getResourceAddress(v_resourceIndex)));
						
						mcaPort.send(m_request(v_request));
						tc_ac.start;
						alt {
							[] mcaPort.receive(mw_response(mw_responsePrimitive(int2002))) {
								tc_ac.stop;
669
								setverdict(pass, __SCOPE__ & ": Container resource deleted using non-hierarchical addressing method");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
670
671
672
							}
							[] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) {
								tc_ac.stop;
673
								setverdict(fail, __SCOPE__ & ": Wrong response status code in the response");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
674
675
676
							}
							[] mcaPort.receive(mw_response(mw_responsePrimitiveKO)) {
								tc_ac.stop;
677
								setverdict(fail, __SCOPE__ & ": Error while deleting container resource using non-hierarchical addressing method");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
678
679
							}
							[] tc_ac.timeout {
680
								setverdict(fail, __SCOPE__ & ": No answer while deleting resource");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
681
682
683
684
685
686
687
688
689
690
691
							}
						}	
    								
						// Postamble
						vc_addressingMethod := PX_ADDRESSING_METHOD;
						vc_primitiveScope := PX_PRIMITIVE_SCOPE;
						f_cse_postamble_deleteResources();
					
						// Tear down
						f_cf01Down();
    				
692
					}//end f_CSE_GEN_DEL_001				
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
693
694
				
				
695
				} // end of group g_CSE_GEN_DEL_001
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
696
				
697
				group g_CSE_GEN_DEL_002 {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
698

699
700
701
702
703
					/**
					 * @desc Check that the IUT accepts the deletion of a <container>  resource using structured resource identifier
					 * 
					 */
					testcase TC_CSE_GEN_DEL_002_CSR() runs on CseTester system CseSystem {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
704
705
						// Local variables
						                        
706
						f_CSE_GEN_DEL_002(e_cseRelative);
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
707
708
					}

709
					testcase TC_CSE_GEN_DEL_002_SPR() runs on CseTester system CseSystem {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
710
711
						// Local variables
						
712
						f_CSE_GEN_DEL_002(e_spRelative);
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
713
714
					}
					
715
					testcase TC_CSE_GEN_DEL_002_ABS() runs on CseTester system CseSystem {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
716
717
						// Local variables
							
718
						f_CSE_GEN_DEL_002(e_absolute);
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
719
720
					}
								
721
					function f_CSE_GEN_DEL_002(in PrimitiveScope p_primitiveScope) runs on CseTester {
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
722
723
724
725
726
727
728
729
    				
						// Local variables
						var RequestPrimitive v_request;
						var integer v_aeIndex := -1;
						var integer v_resourceIndex := -1;
											   
						// Test control
						if(not(PICS_STRUCTURED_CSE_RELATIVE_RESOURCE_ID_FORMAT)) {
730
							setverdict(inconc, __SCOPE__ & ": Structured-CSE-Relative-Resource-ID format support is required to run this test case");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
							stop;
						}
    				
						// Test component configuration
						f_cf01Up();
    				
						// Test adapter configuration
    				
						// Preamble
						v_aeIndex := f_cse_preamble_registerAe();//c_CRUDNDi);
					
						v_resourceIndex := f_cse_createResource(int3, m_createContainerBase, v_aeIndex); 
					
						// Test Body
						//Force usage of Non-Hierarchical addressing method
						vc_addressingMethod := e_hierarchical;
						vc_primitiveScope := p_primitiveScope;
						
						v_request := valueof(m_deleteRequest(f_getResourceAddress(v_resourceIndex)));
						
						mcaPort.send(m_request(v_request));
						tc_ac.start;
						alt {
							[] mcaPort.receive(mw_response(mw_responsePrimitive(int2002))) {
								tc_ac.stop;
756
								setverdict(pass, __SCOPE__ & ": Container resource deleted using hierarchical addressing method");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
757
758
759
							}
							[] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) {
								tc_ac.stop;
760
								setverdict(fail, __SCOPE__ & ": Wrong response status code in the response");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
761
762
763
							}
							[] mcaPort.receive(mw_response(mw_responsePrimitiveKO)) {
								tc_ac.stop;
764
								setverdict(fail, __SCOPE__ & ": Error while deleting container resource using hierarchical addressing method");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
765
766
							}
							[] tc_ac.timeout {
767
								setverdict(fail, __SCOPE__ & ": No answer while deleting resource");
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
768
769
770
771
772
773
774
775
776
777
778
							}
						}	
    								
						// Postamble
						vc_addressingMethod := PX_ADDRESSING_METHOD;
						vc_primitiveScope := PX_PRIMITIVE_SCOPE;
						f_cse_postamble_deleteResources();
					
						// Tear down
						f_cf01Down();
    				
779
					}//end f_CSE_GEN_DEL_002				
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
780
781
				
				
782
				} // end of group g_CSE_GEN_DEL_002
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
783
784
785
786
787
				
			} // end of group Delete
		
		} // end of group Generic
		
788
		group Registration {
789
790
			
			group Create{
791
				
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
				/**
				 * @desc Check that the IUT accepts an AE registration (allowed App-ID, C-AE-ID-STEM not provided by AE)  
				 * 
				 */
				testcase TC_CSE_REG_CRE_001() runs on CseTester system CseSystem {
		  	  	
					var MsgIn v_response;
					var RequestPrimitive v_request;
					var integer v_cseBaseIndex := -1;
					var ResourceType v_resourceType := int2;
	                
	                // Test component configuration
					f_cf01Up();
	                
					//Preamble
					v_cseBaseIndex := f_cse_preamble_createServiceSubscribedAppRule({"C-AE-ID-STEM"});//c_CRUDNDi);
808
					
809
810
					//Test Body
					v_request := valueof(m_createAe(PX_APP_ID, omit, omit));	
811
					
812
813
814
815
816
817
818
819
					v_request := f_getCreateRequestPrimitive(v_resourceType, v_request, v_cseBaseIndex);
					
					mcaPort.send(m_request(v_request));
					
					tc_ac.start;
					alt {
						[] mcaPort.receive(mw_response(mw_responsePrimitive(int2001))) {
							tc_ac.stop;
820
							setverdict(pass, __SCOPE__ & ": AE successfully created.");
821
822
823
						}
						[] mcaPort.receive(mw_response(mw_responsePrimitiveInverse(int2001))) -> value v_response{
							tc_ac.stop;
824
							setverdict(fail, __SCOPE__ & ": Error while creating AE with status code " & int2str(enum2int(v_response.primitive.responsePrimitive.responseStatusCode)));
825
826
						}
						[] tc_ac.timeout {
827
							setverdict(fail, __SCOPE__ & ": No answer while creating AE");
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
						}
					}	
									
					// Postamble
					f_cse_postamble_deleteResources();
					
					// Tear down
					f_cf01Down();
						
				}
		  	  	
				/**
				 * @desc Check that the IUT sends a registration CREATE Request with the value of the attribute ATTRIBUTE_NAME  of the AE resource
				 * 
				 */
				testcase TC_CSE_REG_CRE_002() runs on CseTester system CseSystem {
		  	  	
					var MsgIn v_response;
					var RequestPrimitive v_request;
					var integer v_cseBaseIndex := -1;
					var ResourceType v_resourceType := int2;
	                
	                // Test component configuration
					f_cf01Up();
		  	  	
					//Preambule
					v_cseBaseIndex := f_cse_preamble_createServiceSubscribedAppRule({"C-AE-ID-STEM"});//c_CRUDNDi);
					
					//Test Body
					v_request := valueof(m_createAe(PX_APP_ID, omit, "C-AE-ID-STEM"));				
	    									
					v_request := f_getCreateRequestPrimitive(v_resourceType, v_request, v_cseBaseIndex);
860
	
861
862
863
864
865
					mcaPort.send(m_request(v_request));
					tc_ac.start;
					alt {
						[] mcaPort.receive(mw_response(mw_responsePrimitive(int2001))) {
							tc_ac.stop;
866
							setverdict(pass, __SCOPE__ & ": AE successfully created.");
867
868
869
						}
						[] mcaPort.receive(mw_response(mw_responsePrimitiveInverse(int2001))) -> value v_response{
							tc_ac.stop;
870
							setverdict(fail, __SCOPE__ & ": Error while creating AE with status code " & int2str(enum2int(v_response.primitive.responsePrimitive.responseStatusCode)));
871
872
						}
						[] tc_ac.timeout {
873
							setverdict(fail, __SCOPE__ & ": No answer while creating AE");
874
875
876
877
878
						}
					}	
									
					// Postamble
					f_cse_postamble_deleteResources();
879
					
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
					// Tear down
					f_cf01Down();
						
				}
		  	  	
				/**
				 * @desc Check that the IUT rejects an AE registration (allowed App-ID, not allowed C-AE-ID-STEM provided by AE) 
				 * 
				 */
				testcase TC_CSE_REG_CRE_004() runs on CseTester system CseSystem {
		  	  	
					var MsgIn v_response;
					var RequestPrimitive v_request;
					var integer v_cseBaseIndex := -1;
					var ResourceType v_resourceType := int2;
	                
	                // Test component configuration
					f_cf01Up();
		  	  	
					//Preambule
					v_cseBaseIndex := f_cse_preamble_createServiceSubscribedAppRule(-);//c_CRUDNDi);
		
					//Test Body	
					v_request := valueof(m_createAe(PX_APP_ID, omit, "C-AE-ID-STEM"));				
	    									
					v_request := f_getCreateRequestPrimitive(v_resourceType, v_request, v_cseBaseIndex);
906
			
907
908
909
910
911
					mcaPort.send(m_request(v_request));
					tc_ac.start;
					alt {
						[] mcaPort.receive(mw_response(mw_responsePrimitive(int4005))) {
							tc_ac.stop;
912
							setverdict(pass, __SCOPE__ & ": AE creation rejected.");
913
914
915
						}
						[] mcaPort.receive(mw_response(mw_responsePrimitiveInverse(int4005))) -> value v_response{
							tc_ac.stop;
916
							setverdict(fail, __SCOPE__ & ": Error while creating AE with status code " & int2str(enum2int(v_response.primitive.responsePrimitive.responseStatusCode)));
917
918
						}
						[] tc_ac.timeout {
919
							setverdict(fail, __SCOPE__ & ": No answer while creating AE");
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
						}
					}	
									
					// Postamble
					f_cse_postamble_deleteResources();
						
					// Tear down
					f_cf01Down();
						
				}
		  	  	
				/**
				 * @desc Check that the IUT accepts an AE registration (allowed App-ID, S-AE-ID-STEM not provided by AE) 
				 * 
				 */
				testcase TC_CSE_REG_CRE_005() runs on CseTester system CseSystem {
		  	  	
					var RequestPrimitive v_request;
					var integer v_cseBaseIndex := -1;
					var ResourceType v_resourceType := int2;
	                
	                // Test component configuration
					f_cf02Up();
		  	  	
					//Preambule
					v_cseBaseIndex := f_cse_preamble_createServiceSubscribedAppRule({"S"});//c_CRUDNDi);
		
					//Test Body
					v_request := valueof(m_createAe(PX_APP_ID, omit, "C-AE-ID-STEM"));				
	    									
					v_request := f_getCreateRequestPrimitive(v_resourceType, v_request, v_cseBaseIndex);
		  	  		
					mcaPort.send(m_request(v_request));
					tc_ac.start;
954
	
955
956
957
					alt {
						[] mccPort.receive(mw_request(mw_createAEAnnc(-, -, -))) {
							tc_ac.stop;
958
							setverdict(pass, __SCOPE__ & ": AE creation redirected.");
959
960
961
						}
						[] mccPort.receive {
							tc_ac.stop;
962
							setverdict(fail, __SCOPE__ & ": Error while creating AE");
963
964
						}
						[] tc_ac.timeout {
965
							setverdict(fail, __SCOPE__ & ": No answer while creating AE");
966
967
968
969
970
971
972
973
974
975
						}
					}	
									
					// Postamble
					f_cse_postamble_deleteResources();
					
					// Tear down
					f_cf01Down();
						
				}
976
				
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
				/**
				 * @desc Check that the IUT accepts an AE re-registration (allowed M2M-SP-assigned AE-ID, S-AE-ID-STEM provided by AE), transfer request to the IN-CSE 
				 * 
				 */
				testcase TC_CSE_REG_CRE_008() runs on CseTester system CseSystem {
		  	  	
					var RequestPrimitive v_request;
					var integer v_cseBaseIndex := -1;
					var ResourceType v_resourceType := int2;
	                
	                // Test component configuration
					f_cf02Up();
		  	  	
					//Preambule
					v_cseBaseIndex := f_cse_preamble_createServiceSubscribedAppRule({"S"});//c_CRUDNDi);
		
					//Test Body
					v_request := valueof(m_createAe(PX_APP_ID, omit, "S-AE-ID-STEM"));				
	    									
					v_request := f_getUpdateRequestPrimitive(v_resourceType,v_cseBaseIndex, v_request);
		  	  		
					mcaPort.send(m_request(v_request));
					tc_ac.start;
	
For faster browsing, not all history is shown. View entire blame