OneM2M_Testcases_CSE_Release_2.ttcn 194 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 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
/**
 *  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.
 *  
 *  @author     ETSI
 *  @version    $URL: https://oldforge.etsi.org/svn/oneM2M/branches/Release1/ttcn/OneM2M_Testcases.ttcn $
 *              $Id: OneM2M_Testcases.ttcn 347 2017-08-11 08:48:20Z reinaortega $
 *  @desc       Module containing test cases for oneM2M
 *
 */
module OneM2M_Testcases_CSE_Release_2 {

	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;
	import from LibCommon_Time all;
	import from OneM2M_Pics all;
	import from OneM2M_Functions all;
	import from OneM2M_PermutationFunctions all;
	import from XSD all;
	
	//Demos used for validation purposes
	group oneM2M_demos {
	
		group helpingTestCases {//These are not part of the test suite, just for verification purposes
			
			testcase TC_DELETE_RESOURCES() runs on AeSimu system CseSystem {
				
				timer t_ac := 5.0;
				var integer i; 
				var XSD.ID v_resourceAddress;
				var RequestPrimitive v_request;
				map(self:mcaPort, system:mcaPort); 
					
				for (i:=0; i<lengthof(PX_RESOURCES_TO_BE_DELETED); i:= i+1) {  
					
					v_resourceAddress := f_getResourceAddress() & "/" & PX_RESOURCES_TO_BE_DELETED[i]; 
						
					v_request := valueof(m_delete(v_resourceAddress, PX_SUPER_AE_ID));
					    
46
					mcaPort.send(f_getMsgOutPrimitive(m_request(v_request)));
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
					
					t_ac.start;
					alt {
						[] mcaPort.receive(mw_response(mw_responsePrimitiveOK)) {
							t_ac.stop;
							log(__SCOPE__ & ":Resource deleted");
							setverdict(pass);
						}
						[] mcaPort.receive(mw_response(mw_responsePrimitiveKO)) {
							t_ac.stop;
							log(__SCOPE__ & ":Error while deleting resource");
							setverdict(fail);
						}
						[] mcaPort.receive {
							t_ac.stop;
							log(__SCOPE__ & ":Unexpected message received");
							setverdict(inconc);
						}
						[] t_ac.timeout {
							log(__SCOPE__ & ":No answer while deleting resource");
							setverdict(inconc);
						}	
					}	
				}
			
				unmap(self:mcaPort, system:mcaPort); 
				stop;
			}	
		
		}//end group helpingTestCases
	
	}//end group oneM2M_demos
	
	group CSE {
		
		group Generic {
			
			group Create {
85

86
				group g_CSE_GEN_CRE_004 {
87 88 89 90 91

					/**
					 * @desc Check that the IUT accepts the creation of a <container> resource using structured resource identifier with hybrid addressing.
					 * 
					 */
92
					testcase TC_CSE_GEN_CRE_004_CSR() runs on Tester system CseSystem {
93 94 95 96 97 98
						// Local variables
						                        
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
                        
99
						v_ae1.start(f_CSE_GEN_CRE_004(e_cseRelative));
100 101 102
						v_ae1.done;
					}

103
					testcase TC_CSE_GEN_CRE_004_SPR() runs on Tester system CseSystem {
104 105 106 107 108 109
						// Local variables
						
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
                        
110
						v_ae1.start(f_CSE_GEN_CRE_004(e_spRelative));
111 112 113
						v_ae1.done;
					}
					
114
					testcase TC_CSE_GEN_CRE_004_ABS() runs on Tester system CseSystem {
115 116 117 118 119 120
						// Local variables
							
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
                        
121
						v_ae1.start(f_CSE_GEN_CRE_004(e_absolute));
122 123 124
						v_ae1.done;
					}
				
125
				} // end of group g_CSE_GEN_CRE_004				
126 127 128 129
				
			} // end of group Create
			
			group Retrieve {
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 171

				group g_CSE_GEN_RET_004 {

					/**
					 * @desc Check that the IUT accepts the retrieval of a <container>  resource using structured resource identifier with hybrid addressing.
					 * 
					 */
					testcase TC_CSE_GEN_RET_004_CSR() runs on Tester system CseSystem {
						// Local variables
						                        
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
                        
						v_ae1.start(f_CSE_GEN_RET_004(e_cseRelative));
						v_ae1.done;
					}

					testcase TC_CSE_GEN_RET_004_SPR() runs on Tester system CseSystem {
						// Local variables
						
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
                        
						v_ae1.start(f_CSE_GEN_RET_004(e_spRelative));
						v_ae1.done;
					}
					
					testcase TC_CSE_GEN_RET_004_ABS() runs on Tester system CseSystem {
						// Local variables
							
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
                        
						v_ae1.start(f_CSE_GEN_RET_004(e_absolute));
						v_ae1.done;
					}
				
				} // end of group g_CSE_GEN_RET_004				

172 173 174
			} // end of group Retrieve
			
			group Update {
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

				group g_CSE_GEN_UPD_004 {

					/**
					 * @desc Check that the IUT accepts the update of a <container>  resource using structured resource identifier with hybrid addressing..
					 * 
					 */
					testcase TC_CSE_GEN_UPD_004_CSR() runs on Tester system CseSystem {
						// Local variables
						                        
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
                        
						v_ae1.start(f_CSE_GEN_UPD_004(e_cseRelative));
						v_ae1.done;
					}

					testcase TC_CSE_GEN_UPD_004_SPR() runs on Tester system CseSystem {
						// Local variables
						
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
                        
						v_ae1.start(f_CSE_GEN_UPD_004(e_spRelative));
						v_ae1.done;
					}
					
					testcase TC_CSE_GEN_UPD_004_ABS() runs on Tester system CseSystem {
						// Local variables
							
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
                        
						v_ae1.start(f_CSE_GEN_UPD_004(e_absolute));
						v_ae1.done;
					}
				
				} // end of group g_CSE_GEN_UPD_004				

217 218 219
			} // end of group Update
			
			group Delete {
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 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261

				group g_CSE_GEN_DEL_004 {

					/**
					 * @desc Check that the IUT accepts the deletion of a <container>  resource using structured resource identifier with hybrid addressing.
					 * 
					 */
					testcase TC_CSE_GEN_DEL_004_CSR() runs on Tester system CseSystem {
						// Local variables
						                        
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
                        
						v_ae1.start(f_CSE_GEN_DEL_004(e_cseRelative));
						v_ae1.done;
					}

					testcase TC_CSE_GEN_DEL_004_SPR() runs on Tester system CseSystem {
						// Local variables
						
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
                        
						v_ae1.start(f_CSE_GEN_DEL_004(e_spRelative));
						v_ae1.done;
					}
					
					testcase TC_CSE_GEN_DEL_004_ABS() runs on Tester system CseSystem {
						// Local variables
							
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
                        
						v_ae1.start(f_CSE_GEN_DEL_004(e_absolute));
						v_ae1.done;
					}
				
				} // end of group g_CSE_GEN_DEL_004				

262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278
			} // end of group Delete
		
		} // end of group Generic
		
		group Registration {
			
			group Create{
				
				/**
				 * @desc Check that IUT accepts  a CSE registration request with OPTIONAL_ATTRIBUTE attribute
				 * 
				 */
				group g_CSE_REG_CRE_028 {
				
					testcase TC_CSE_REG_CRE_028_RN() runs on Tester system CseSystem {
						 //Local variables
						 var CseSimu v_cse1 := CseSimu.create("CSE1") alive;
279
						
280 281
						 var RequestPrimitive v_request;
						 var template PrimitiveContent v_contentResponse;
282 283
						 v_cse1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_CSE1));
						v_cse1.done;
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299
						 v_request := valueof(m_createRemoteCSEBase);
						 v_request.primitiveContent.remoteCSE.cseType := int2;	//MN_CSE
						 v_request.primitiveContent.remoteCSE.resourceName := c_defaultRemoteCSEResourceName;
	
						 v_contentResponse.remoteCSE := mw_contentRemoteCSEBase;
						 v_contentResponse.remoteCSE.cseType := int2;	//MN_CSE
					     v_contentResponse.remoteCSE.resourceName := c_defaultRemoteCSEResourceName;
	
						 v_cse1.start(f_CSE_REG_CRE_028(v_request, v_contentResponse));
						 v_cse1.done;
						
					}
					
					testcase TC_CSE_REG_CRE_028_ET() runs on Tester system CseSystem {
						 //Local variables
						 var CseSimu v_cse1 := CseSimu.create("CSE1") alive;
300
						
301 302
						 var RequestPrimitive v_request;
						 var template PrimitiveContent v_contentResponse;
303 304
						 v_cse1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_CSE1));
						v_cse1.done;
305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339
						 v_request := valueof(m_createRemoteCSEBase);
						 v_request.primitiveContent.remoteCSE.cseType := int2;	//MN_CSE
						 v_request.primitiveContent.remoteCSE.expirationTime := "20301231T012345";
	
						 v_contentResponse.remoteCSE := mw_contentRemoteCSEBase;
						 v_contentResponse.remoteCSE.cseType := int2;	//MN_CSE
						 v_contentResponse.remoteCSE.expirationTime := "20301231T012345";
	
						 v_cse1.start(f_CSE_REG_CRE_028(v_request, v_contentResponse));
						 v_cse1.done;
		
					}
					
				}//end g_CSE_REG_CRE_028
			
			}	//end group Create
			
			group Retrieve{
				
				
			}//end group Retrieve
			
			group Update{
			
				/**
				 * @desc Check that the IUT accepts an update request of <remoteCSE> resource with OPTIONAL_ATTRIBUTE.
				 * 
				 */
				 
				group g_CSE_REG_UPD_002 {
					
					testcase TC_CSE_REG_UPD_002_ET() runs on Tester system CseSystem {
						// Local variables
						var template RequestPrimitive v_updateRequest := m_updateRemoteCSEBase;	
						var CseSimu v_cse1 := CseSimu.create("CSE1") alive;
340 341
						v_cse1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_CSE1));
						v_cse1.done;
342 343 344 345 346 347 348 349 350 351 352 353
    						
						v_updateRequest.primitiveContent.remoteCSE.expirationTime := "20301231T012345";
	
						v_cse1.start(f_CSE_REG_UPD_002(v_updateRequest));
						v_cse1.done;
						
					}
					
					testcase TC_CSE_REG_UPD_002_RR() runs on Tester system CseSystem {
						// Local variables
						var template RequestPrimitive v_updateRequest := m_updateRemoteCSEBase;	
						var CseSimu v_cse1 := CseSimu.create("CSE1") alive;
354 355
						v_cse1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_CSE1));
						v_cse1.done;
356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375

						v_updateRequest.primitiveContent.remoteCSE.requestReachability := true;

						v_cse1.start(f_CSE_REG_UPD_002(v_updateRequest));
						v_cse1.done;

					}
							
				} //end g_CSE_REG_UPD_002
			    
			}// end group Update
			
			group Delete{
			
			}// end group Delete
	  	  	
		}//end Registration
		
		group Data_Management_and_Repository {
						
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 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 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 491 492 493 494
			group g_CSE_DMR_001 {
		
				/**
				 * @desc Check that the IUT rejects a Non-Blocking Synchronous Request if the IUT does not support the <request> resource
				 * 
				 */
				testcase TC_CSE_DMR_001_CRE() runs on Tester system CseSystem {
					// Local variables
					var template RequestPrimitive v_createRequest := m_createContainerBase;
					var CseSimu v_cse1 := CseSimu.create("CSE1") alive;
			
					v_cse1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_CSE1));
					v_cse1.done;
					v_cse1.start(f_CSE_DMR_001(v_createRequest)); //Create Container
					v_cse1.done;
			
				}
				
				testcase TC_CSE_DMR_001_UPD() runs on Tester system CseSystem {
					// Local variables
					var template RequestPrimitive v_createRequest := m_createContainerBase;
					var template RequestPrimitive v_updateRequest := m_updateContainerBase;
					var CseSimu v_cse1 := CseSimu.create("CSE1") alive;
					var Labels v_labels_1 := {"VALUE_1"};
			
					v_cse1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_CSE1));
					v_cse1.done;
					v_updateRequest.primitiveContent.container.labels := v_labels_1;
			
					v_cse1.start(f_CSE_DMR_001(v_updateRequest)); //Update Container
					v_cse1.done;
	  
				}

				testcase TC_CSE_DMR_001_RET() runs on Tester system CseSystem {
					// Local variables
					var template RequestPrimitive v_createRequest := m_createContainerBase;
					var CseSimu v_cse1 := CseSimu.create("CSE1") alive;
			
					v_cse1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_CSE1));
					v_cse1.done;
					v_cse1.start(f_CSE_DMR_001(m_retrieve("NotInitialized", "NotInitialized"))); //Retrieve Container
					v_cse1.done;
	
				}
		
				testcase TC_CSE_DMR_001_DEL() runs on Tester system CseSystem {
					// Local variables
					var template RequestPrimitive v_createRequest := m_createContainerBase;
					var CseSimu v_cse1 := CseSimu.create("CSE1") alive;
			
					v_cse1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_CSE1));
					v_cse1.done;
					v_cse1.start(f_CSE_DMR_001(m_delete("NotInitialized", "NotInitialized"))); //Delete Container
					v_cse1.done;

				}

			}// end group g_CSE_DMR_001
			
			group g_CSE_DMR_002 {
				
				/**
				 * @desc Check that the IUT rejects a Non-Blocking Synchronous Request if the IUT does not support the <request> resource
				 * 
				 */
				testcase TC_CSE_DMR_002_CRE() runs on Tester system CseSystem {
					// Local variables
					var template RequestPrimitive v_createRequest := m_createContainerBase;
					var AeSimu v_ae1 := AeSimu.create("AE1") alive;
				
					v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
					v_ae1.done;
					v_ae1.start(f_CSE_DMR_002(v_createRequest)); //Create Container
					v_ae1.done;
				
				}
					
				testcase TC_CSE_DMR_002_UPD() runs on Tester system CseSystem {
					// Local variables
					var template RequestPrimitive v_createRequest := m_createContainerBase;
					var template RequestPrimitive v_updateRequest := m_updateContainerBase;
					var AeSimu v_ae1 := AeSimu.create("AE1") alive;
					var Labels v_labels_1 := {"VALUE_1"};
				
					v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
					v_ae1.done;
					v_updateRequest.primitiveContent.container.labels := v_labels_1;
				
					v_ae1.start(f_CSE_DMR_002(v_updateRequest)); //Update Container
					v_ae1.done;
		  
				}
	
				testcase TC_CSE_DMR_002_RET() runs on Tester system CseSystem {
					// Local variables
					var template RequestPrimitive v_createRequest := m_createContainerBase;
					var AeSimu v_ae1 := AeSimu.create("AE1") alive;
				
					v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
					v_ae1.done;
					v_ae1.start(f_CSE_DMR_002(m_retrieve("NotInitialized", "NotInitialized"))); //Retrieve Container
					v_ae1.done;
		
				}
			
				testcase TC_CSE_DMR_002_DEL() runs on Tester system CseSystem {
					// Local variables
					var template RequestPrimitive v_createRequest := m_createContainerBase;
					var AeSimu v_ae1 := AeSimu.create("AE1") alive;
				
					v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
					v_ae1.done;
					v_ae1.start(f_CSE_DMR_002(m_delete("NotInitialized", "NotInitialized"))); //Delete Container
					v_ae1.done;
	
				}
			}// end group g_CSE_DMR_002
			
495 496 497 498 499 500 501 502
			group Create {
				
				group g_CSE_DMR_CRE_001 {
					
					/**
					 * @desc Check that the IUT accepts the creation of a RESOURCE_TYPE resource on the TARGET_RESOURCE_ADDRESS of type PARENT_RESOURCE_TYPE with resource name not provided
					 * 
					 */
503
					testcase TC_CSE_DMR_CRE_001_PCH_AE() runs on Tester system CseSystem {
504
						// Local variables
505
						var template RequestPrimitive v_createRequest := m_createPollingChannelBase;
506 507
						var ResponsePrimitive v_responsePrimitive;
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
508 509
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
510
						
511 512 513 514
						
						v_createRequest.primitiveContent.pollingChannel.resourceName := omit;

						v_ae1.start(f_CSE_DMR_CRE_001(int15, v_createRequest, m_createAeAux(omit,omit)));//PollingChannel
515 516 517
						v_ae1.done;
						
						 
518
												
519
						if(getverdict == pass){ v_responsePrimitive := f_getResponsePrimitive(v_ae1);
520
							if(not ispresent(v_responsePrimitive.primitiveContent.pollingChannel.resourceName)){
521
								setverdict(fail, __SCOPE__ & ": Error, resourceName attribute not provided");
522 523 524 525 526
							}
						}
						
					}
					
527 528 529 530 531 532 533 534 535
				} // end g_CSE_DMR_CRE_001
								
				group g_CSE_DMR_CRE_002 {
					
					/**
					 * @desc Check that the IUT accepts the creation of a RESOURCE_TYPE resource with a non-existing resource name provided by AE
					 * 
					 */
					testcase TC_CSE_DMR_CRE_002_PCH() runs on Tester system CseSystem {
536 537 538
						// Local variables
						var ResponsePrimitive v_responsePrimitive;
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
539 540
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
541 542
			
						v_ae1.start(f_CSE_DMR_CRE_002(int15, m_createPollingChannelBase));//Pollingchannel
543 544 545
						v_ae1.done;
						
						 
546
												
547
						if(getverdict == pass){ v_responsePrimitive := f_getResponsePrimitive(v_ae1);
548
							if(not ispresent(v_responsePrimitive.primitiveContent.pollingChannel.resourceName)){
549
								setverdict(fail, __SCOPE__ & ": Error, resourceName attribute not provided");
550 551 552 553
							} else {
								if(v_responsePrimitive.primitiveContent.pollingChannel.resourceName != c_defaultPollingChannelResourceName){
									setverdict(fail, __SCOPE__ & ": Error, resourceName attribute not correct");
								}
554 555 556
							}
						}
					}
557 558
					
				}// end group g_CSE_DMR_CRE_002
559
				
560 561 562 563 564 565 566 567
				group g_CSE_DMR_CRE_003 {
					
					/**
					 * @desc Check that the IUT rejects the creation of a RESOURCE_TYPE resource with an existing resource name provided by AE
					 * 
					 */
					testcase TC_CSE_DMR_CRE_003_PCH() runs on Tester system CseSystem {
						// Local variables                        
568
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
569 570
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
571 572

						v_ae1.start(f_CSE_DMR_CRE_003(int15, m_createPollingChannelBase));//Pollingchannel
573 574 575
						v_ae1.done;
					}
					
576 577 578 579 580 581 582 583 584
				}// end group g_CSE_DMR_CRE_003
				
				group g_CSE_DMR_CRE_004 {
					
					/**
					 * @desc Check that the IUT rejects the creation of a RESOURCE_TYPE resource when AE has no privileges
					 * 
					 */
					testcase TC_CSE_DMR_CRE_004_PCH() runs on Tester system CseSystem {
585
						// Local variables
586
                        
587
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
588 589
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
590

591
						v_ae1.start(f_CSE_DMR_CRE_004(int15, m_createPollingChannelBase));//Pollingchannel
592 593 594
						v_ae1.done;
					}
					
595 596 597 598 599 600 601 602 603
				}// end group g_CSE_DMR_CRE_004
				
				group g_CSE_DMR_CRE_006 {
					
					/**
					 * @desc Check that the IUT returns a default value to RW ATTRIBUTE in the response of a RESOURCE_TYPE resource CREATE Request where no a RW ATTRIBUTE is provided by AE
					 * 
					 */
					testcase TC_CSE_DMR_CRE_006_CNT_MNI() runs on Tester system CseSystem {
604
						// Local variables
605
						var template RequestPrimitive v_createRequest := m_createContainerBase;
606 607
						var ResponsePrimitive v_responsePrimitive;
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
608
		
609 610
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
611 612 613
						v_ae1.start(f_CSE_DMR_CRE_006(int3, v_createRequest));		
						v_ae1.done;		 
														
614
						if(getverdict == pass){ v_responsePrimitive := f_getResponsePrimitive(v_ae1);
615 616 617 618
							if(not ispresent(v_responsePrimitive.primitiveContent.container.maxNrOfInstances)){
								setverdict(fail, __SCOPE__, ": Error, maxNrOfInstances attribute not provided");
							} 
						}	
619
					}
620 621
	
					testcase TC_CSE_DMR_CRE_006_CNT_MBS() runs on Tester system CseSystem {
622
						// Local variables
623
						var template RequestPrimitive v_createRequest := m_createContainerBase;
624 625
						var ResponsePrimitive v_responsePrimitive;
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
626
		
627 628
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
629
						v_ae1.start(f_CSE_DMR_CRE_006(int3, v_createRequest));
630
						v_ae1.done;
631
																				
632
						if(getverdict == pass){ v_responsePrimitive := f_getResponsePrimitive(v_ae1);
633 634 635 636 637
							if(not ispresent(v_responsePrimitive.primitiveContent.container.maxByteSize)){
								setverdict(fail, __SCOPE__, ": Error, maxByteSize attribute not provided");
							} 
						}	
		  
638
					}
639
	
640 641
					testcase TC_CSE_DMR_CRE_006_CNT_MIA() runs on Tester system CseSystem {
						// Local variables
642 643
						var template RequestPrimitive v_createRequest := m_createContainerBase;
						var ResponsePrimitive v_responsePrimitive;
644 645 646 647
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
								
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
648
						
649 650 651 652 653 654 655 656
						v_ae1.start(f_CSE_DMR_CRE_006(int3, v_createRequest));
						v_ae1.done;		 
														
						if(getverdict == pass){ v_responsePrimitive := f_getResponsePrimitive(v_ae1);
							if(not ispresent(v_responsePrimitive.primitiveContent.container.maxInstanceAge)){
								setverdict(fail, __SCOPE__, ": Error, maxInstanceAge attribute not provided");
							} 
						}	
657 658
					}
					
659 660 661 662 663 664 665 666 667 668 669 670 671 672
				}// end group g_CSE_DMR_CRE_006
				
				group g_CSE_DMR_CRE_007 {
					
					/**
					 * @desc Checks that the IUT accepts a newly created RESOURCE_TYPE when the currentNrOfInstances exceeds the field value set in maxNrOfInstances in the PARENT_RESOURCE_TYPE resource by removing enough of the oldest RESOURCE_TYPE resources to allow the creation of the new RESOURCE_TYPE resource
					 * 
					 */
					testcase TC_CSE_DMR_CRE_007_CNT_CIN() runs on Tester system CseSystem {
						// Local variables		
						var template RequestPrimitive v_createRequestContainer := m_createContainerBase;
						var template RequestPrimitive v_createRequestContentInstance1 := m_createContentInstanceBase;
						var template RequestPrimitive v_createRequestContentInstance2 := m_createContentInstanceBase;
						const integer c_maxNumberOfInstances := 1;	
673
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
674
						
675 676
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
677 678
						v_createRequestContainer.primitiveContent.container.maxNrOfInstances := c_maxNumberOfInstances;
						v_createRequestContentInstance2.primitiveContent.contentInstance.resourceName := c_defaultContentInstanceResourceName & "2";	//Resource 2
679

680 681
						v_ae1.start(f_CSE_DMR_CRE_007(int3, v_createRequestContainer, int4, v_createRequestContentInstance1, v_createRequestContentInstance2, c_defaultContentInstanceResourceName));//ContentInstance under Container
						v_ae1.done;
682
					}
683 684 685 686
	
				}// end group g_CSE_DMR_CRE_007
				
				group g_CSE_DMR_CRE_008 {
687
					
688 689 690 691 692 693 694 695 696 697 698 699
					/**
					 * @desc Checks that the IUT accepts a newly created RESOURCE_TYPE when the currentNrOfInstances exceeds the field value set in maxNrOfInstances in the PARENT_RESOURCE_TYPE resource by removing enough of the oldest RESOURCE_TYPE resources to allow the creation of the new RESOURCE_TYPE resource
					 * 
					 */
					testcase TC_CSE_DMR_CRE_008_CNT_CIN() runs on Tester system CseSystem {
						// Local variables		
						var template RequestPrimitive v_createRequestContainer := m_createContainerBase;
						var template RequestPrimitive v_createRequestContentInstance1 := m_createContentInstanceBase;
						var template RequestPrimitive v_createRequestContentInstance2 := m_createContentInstanceBase;
						const integer c_maxByteSize := 10;	
						const XSD.String c_primitiveContent1 := "Content1";
						const XSD.String c_primitiveContent2 := "Content2";		
700
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
701
		
702 703
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
704 705 706 707 708 709 710
						v_createRequestContainer.primitiveContent.container.maxByteSize := c_maxByteSize;
						v_createRequestContentInstance1.primitiveContent.contentInstance.content := c_primitiveContent1;	//ContentInstance 1
						v_createRequestContentInstance2.primitiveContent.contentInstance.content := c_primitiveContent2;	//ContentInstance 2
						v_createRequestContentInstance2.primitiveContent.contentInstance.resourceName := c_defaultContentInstanceResourceName & "2";	//ContentInstance 2

						v_ae1.start(f_CSE_DMR_CRE_007(int3, v_createRequestContainer, int4, v_createRequestContentInstance1, v_createRequestContentInstance2, c_defaultContentInstanceResourceName));//ContentInstance under Container
						v_ae1.done;
711
					}
712 713 714 715 716

				}// end group g_CSE_DMR_CRE_008
				
				
				group g_CSE_DMR_CRE_013 {
717
					
718 719 720 721 722 723 724 725 726
					/**
					 * @desc Check that the IUT rejects the CREATE Request of a RESOURCE_TYPE resource with error “NOT_ACCEPTABLE” when contentSize exceeds maxByteSize of the PARENT_RESOURCE_TYPE
					 * 
					 */
					testcase TC_CSE_DMR_CRE_013_CNT_CIN() runs on Tester system CseSystem {
						// Local variables		
						var template RequestPrimitive v_createRequestContainer := m_createContainerBase;
						var template RequestPrimitive v_createRequestContentInstance := m_createContentInstanceBase;
						const integer c_maxByteSize := 1;		
727
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
728
		
729 730
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
731 732 733
						v_createRequestContainer.primitiveContent.container.maxByteSize := c_maxByteSize;

						v_ae1.start(f_CSE_DMR_CRE_013(int3, v_createRequestContainer, int4, v_createRequestContentInstance));//ContentInstance under Container
734 735
						v_ae1.done;
					}
736 737 738 739

				}// end group g_CSE_DMR_CRE_013
				
				group g_CSE_DMR_CRE_015 {
740
					
741 742 743 744 745
					/**
					 * @desc Check that the IUT returns successfully after a CREATE request an empty content of created resource when the ResultContent set to 0 (Nothing)
					 * 
					 */
					testcase TC_CSE_DMR_CRE_015_CNT() runs on Tester system CseSystem {
746 747
						// Local variables
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
748 749
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
750 751
						                        
						v_ae1.start(f_CSE_DMR_CRE_015(int3, m_createContainerBase));//Container
752 753
						v_ae1.done;
					}
754 755

					testcase TC_CSE_DMR_CRE_015_GRP() runs on Tester system CseSystem {
756
						// Local variables
757
						
758
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
759 760
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
761 762
						                        
						v_ae1.start(f_CSE_DMR_CRE_015(int9, m_createGroupBase));//Group
763 764 765
						v_ae1.done;
					}
					
766
					testcase TC_CSE_DMR_CRE_015_ACP() runs on Tester system CseSystem {
767
						// Local variables
768
							
769
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
770 771
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
772 773
						                        
						v_ae1.start(f_CSE_DMR_CRE_015(int1, m_createAcpBase));//AccessControlPolicy
774 775
						v_ae1.done;
					}
776 777
				
					testcase TC_CSE_DMR_CRE_015_SUB() runs on Tester system CseSystem {
778
						// Local variables
779
						
780
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
781 782
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
783 784
						                        
						v_ae1.start(f_CSE_DMR_CRE_015(int23, m_createSubscriptionBase));//Subscription
785 786
						v_ae1.done;
					}
787
				
788 789 790 791 792 793 794 795 796 797 798
					testcase TC_CSE_DMR_CRE_015_PCH() runs on Tester system CseSystem {
						// Local variables
						
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
						                        
						v_ae1.start(f_CSE_DMR_CRE_015(int15, m_createPollingChannelBase));//PollingChannel
						v_ae1.done;
					}

799 800 801
				} // end g_CSE_DMR_CRE_015							

				group g_CSE_DMR_CRE_016 {
802
					
803 804 805 806 807
					/**
					 * @desc Check that the IUT returns successfully after a CREATE request only hierarchichal address of the created resource when the Result Content is set to 2 (hierarchical address)
					 * 
					 */
					testcase TC_CSE_DMR_CRE_016_CNT() runs on Tester system CseSystem {
808
						// Local variables
809
						var template PrimitiveContent v_contentResponse;
810
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
811 812
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
813
					
814 815 816 817 818 819 820
						v_contentResponse.uRI := mw_contentContainer_rc2;
					                        
						v_ae1.start(f_CSE_DMR_CRE_016(int3, m_createContainerBase, v_contentResponse));//Container
						v_ae1.done;
					}

					testcase TC_CSE_DMR_CRE_016_GRP() runs on Tester system CseSystem {
821
						// Local variables
822 823
						var template PrimitiveContent v_contentResponse;
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
824 825
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
826
					
827
						v_contentResponse.uRI := mw_contentGroup_rc2;
828
					
829 830
						v_ae1.start(f_CSE_DMR_CRE_016(int9, m_createGroupBase, v_contentResponse));//Group
						v_ae1.done;
831 832
					}
					
833
					testcase TC_CSE_DMR_CRE_016_ACP() runs on Tester system CseSystem {
834
						// Local variables
835
						var template PrimitiveContent v_contentResponse;
836
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
837 838
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
839 840 841 842 843
											
						v_contentResponse.uRI := mw_contentAcp_rc2;
						
						v_ae1.start(f_CSE_DMR_CRE_016(int1, m_createAcpBase,v_contentResponse));//AccessControlPolicy
						v_ae1.done;
844
					}
845 846
				
					testcase TC_CSE_DMR_CRE_016_SUB() runs on Tester system CseSystem {
847
						// Local variables
848
						var template PrimitiveContent v_contentResponse;
849
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
850 851
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
852 853 854 855
											
						v_contentResponse.uRI := mw_contentSubscription_rc2;

						v_ae1.start(f_CSE_DMR_CRE_016(int23, m_createSubscriptionBase, v_contentResponse));//Subscription
856 857
						v_ae1.done;
					}
858 859 860 861 862 863 864 865 866 867 868 869 870

					testcase TC_CSE_DMR_CRE_016_PCH() runs on Tester system CseSystem {
						// Local variables
						var template PrimitiveContent v_contentResponse;
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
											
						v_contentResponse.uRI := mw_contentPollingChannel_rc2;

						v_ae1.start(f_CSE_DMR_CRE_016(int15, m_createPollingChannelBase, v_contentResponse));//PollingChannel
						v_ae1.done;
					}					
871 872 873 874 875 876 877 878 879
				} // end g_CSE_DMR_CRE_016	
							
				group g_CSE_DMR_CRE_017 {
					
					/**
					 * @desc Check that the IUT returns successfully after a CREATE request only attributes and hierarchichal address of the created resource when Result Content is set 3 (attributes and hierarchichal address)
					 * 
					 */
					testcase TC_CSE_DMR_CRE_017_CNT() runs on Tester system CseSystem {
880
						// Local variables
881
						var template PrimitiveContent v_contentResponse;
882
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
883 884
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
885 886 887 888
					
						v_contentResponse.resource := mw_contentContainer_rc3;
					                        
						v_ae1.start(f_CSE_DMR_CRE_017(int3, m_createContainerBase, v_contentResponse));//Container
889 890
						v_ae1.done;
					}
891 892

					testcase TC_CSE_DMR_CRE_017_GRP() runs on Tester system CseSystem {
893
						// Local variables
894
						var template PrimitiveContent v_contentResponse;
895
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
896 897
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
898
					
899
						v_contentResponse.resource := mw_contentGroup_rc3;
900
					
901 902 903 904 905
						v_ae1.start(f_CSE_DMR_CRE_017(int9, m_createGroupBase, v_contentResponse));//Group
						v_ae1.done;
					}
					
					testcase TC_CSE_DMR_CRE_017_ACP() runs on Tester system CseSystem {
906
						// Local variables
907
						var template PrimitiveContent v_contentResponse;
908
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
909 910
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
911 912 913 914
					
						v_contentResponse.resource := mw_contentAcp_rc3;
						
						v_ae1.start(f_CSE_DMR_CRE_017(int1, m_createAcpBase,v_contentResponse));//AccessControlPolicy
915 916
						v_ae1.done;
					}
917 918 919 920

					testcase TC_CSE_DMR_CRE_017_SUB() runs on Tester system CseSystem {
						// Local variables
						var template PrimitiveContent v_contentResponse;
921
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
922 923
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
924 925
					
						v_contentResponse.resource := mw_contentSubscription_rc3;
926

927
						v_ae1.start(f_CSE_DMR_CRE_017(int23, m_createSubscriptionBase, v_contentResponse));//Subscription
928 929
						v_ae1.done;
					}
930
				
931 932 933 934 935 936 937 938 939 940 941 942
					testcase TC_CSE_DMR_CRE_017_PCH() runs on Tester system CseSystem {
						// Local variables
						var template PrimitiveContent v_contentResponse;
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
					
						v_contentResponse.resource := mw_contentPollingChannel_rc3;

						v_ae1.start(f_CSE_DMR_CRE_017(int15, m_createPollingChannelBase, v_contentResponse));//PollingChannel
						v_ae1.done;
					}
943 944
				} // end g_CSE_DMR_CRE_017

945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985
				group g_CSE_DMR_CRE_018 {
					
					/**
					 * @desc Check that the IUT rejects a CREATE request when the ResultContent is set to RESULT_CONTENT
					 * 
					 */
					testcase TC_CSE_DMR_CRE_018_RCN_4() runs on Tester system CseSystem {
						// Local variables
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
						v_ae1.start(f_CSE_DMR_CRE_018(int4));//ResultContent = 4 (attributes and child resources)
						v_ae1.done;
					}
	
					testcase TC_CSE_DMR_CRE_018_RCN_5() runs on Tester system CseSystem {
						// Local variables
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
						v_ae1.start(f_CSE_DMR_CRE_018(int5));//ResultContent = 5 (attributes and child resources references)
						v_ae1.done;
					}
	
					testcase TC_CSE_DMR_CRE_018_RCN_6() runs on Tester system CseSystem {
						// Local variables
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
						v_ae1.start(f_CSE_DMR_CRE_018(int6));//ResultContent = 6 (child resources references)
						v_ae1.done;
					}
	
					testcase TC_CSE_DMR_CRE_018_RCN_8() runs on Tester system CseSystem {
						// Local variables
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
						v_ae1.start(f_CSE_DMR_CRE_018(int8));//ResultContent = 8 (child resources)
						v_ae1.done;
					}
986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073
				} // end g_CSE_DMR_CRE_018		
				
				group g_CSE_DMR_CRE_019 {
					/**
					 * @desc Check that the IUT returns successfully only attributes of TARGET_RESOURCE_ADDRESS resource when the ResultContent set to 1 (Attributes)
					 * 
					 */
					testcase TC_CSE_DMR_CRE_019_CNT() runs on Tester system CseSystem {
						// Local variables
						var template PrimitiveContent v_contentResponse;
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
						
						v_contentResponse.container := mw_contentContainer_rc1;
						                        
						v_ae1.start(f_CSE_DMR_CRE_019(int3, m_createContainerBase, v_contentResponse));//Container
						v_ae1.done;
					}

					testcase TC_CSE_DMR_CRE_019_GRP() runs on Tester system CseSystem {
						// Local variables
						var template PrimitiveContent v_contentResponse;
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
						
						v_contentResponse.group_ := mw_contentGroup_rc1;
						                        
						v_ae1.start(f_CSE_DMR_CRE_019(int9, m_createGroupBase, v_contentResponse));//Group
						v_ae1.done;
					}
					
					testcase TC_CSE_DMR_CRE_019_ACP() runs on Tester system CseSystem {
						// Local variables
						var template PrimitiveContent v_contentResponse;	
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
						                        
						v_contentResponse.accessControlPolicy := mw_contentAcp_rc1;
						
						v_ae1.start(f_CSE_DMR_CRE_019(int1, m_createAcpBase, v_contentResponse));//AccessControlPolicy
						v_ae1.done;
					}
				
					testcase TC_CSE_DMR_CRE_019_SUB() runs on Tester system CseSystem {
						// Local variables
						var template PrimitiveContent v_contentResponse;
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
						
						v_contentResponse.subscription := mw_contentSubscription_rc1;
						                        
						v_ae1.start(f_CSE_DMR_CRE_019(int23, m_createSubscriptionBase, v_contentResponse));//Subscription
						v_ae1.done;
					}
				
					testcase TC_CSE_DMR_CRE_019_PCH() runs on Tester system CseSystem {
						// Local variables
						var template PrimitiveContent v_contentResponse;
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
						
						v_contentResponse.pollingChannel := mw_contentPollingChannel_rc1;
						                        
						v_ae1.start(f_CSE_DMR_CRE_019(int15, m_createPollingChannelBase, v_contentResponse));//PollingChannel
						v_ae1.done;
					}

				} // end g_CSE_DMR_CRE_019							

				group g_CSE_DMR_CRE_020 {
					
					/**
					 * @desc Check that the IUT returns successfully only modified attributes of TARGET_RESOURCE_ADDRESS resource when the Result Content is set to 9 (modified attributes)
					 * 
					 */
					testcase TC_CSE_DMR_CRE_020_CNT() runs on Tester system CseSystem {
						// Local variables
						var template PrimitiveContent v_contentResponse;
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
					
						v_contentResponse.container := mw_contentContainer_rc1;
1074 1075
						//Provided attributes should not be returned unless modified
						v_contentResponse.container.resourceName := omit;
1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088
						                    
						v_ae1.start(f_CSE_DMR_CRE_020(int3, m_createContainerBase, v_contentResponse));//Container
						v_ae1.done;
					}

					testcase TC_CSE_DMR_CRE_020_GRP() runs on Tester system CseSystem {
						// Local variables
						var template PrimitiveContent v_contentResponse;
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
					
						v_contentResponse.group_ := mw_contentGroup_rc1;
1089 1090 1091 1092
						//Provided attributes should not be returned unless modified
						v_contentResponse.group_.resourceName := omit;
						v_contentResponse.group_.maxNrOfMembers := omit;
						v_contentResponse.group_.memberIDs := omit;
1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105
						
						v_ae1.start(f_CSE_DMR_CRE_020(int9, m_createGroupBase, v_contentResponse));//Group
						v_ae1.done;
					}
					
					testcase TC_CSE_DMR_CRE_020_ACP() runs on Tester system CseSystem {
						// Local variables
						var template PrimitiveContent v_contentResponse;
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
											
						v_contentResponse.accessControlPolicy := mw_contentAcp_rc1;
1106 1107 1108 1109 1110
						//Provided attributes should not be returned unless modified
						v_contentResponse.accessControlPolicy.resourceName := omit;
						v_contentResponse.accessControlPolicy.privileges := omit;
						v_contentResponse.accessControlPolicy.selfPrivileges := omit;
						 
1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122
						v_ae1.start(f_CSE_DMR_CRE_020(int1, m_createAcpBase,v_contentResponse));//AccessControlPolicy
						v_ae1.done;
					}
				
					testcase TC_CSE_DMR_CRE_020_SUB() runs on Tester system CseSystem {
						// Local variables
						var template PrimitiveContent v_contentResponse;
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
											
						v_contentResponse.subscription := mw_contentSubscription_rc1;
1123 1124 1125
						//Provided attributes should not be returned unless modified
						v_contentResponse.subscription.resourceName := omit;
						v_contentResponse.subscription.notificationURI := omit;
1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138
						
						v_ae1.start(f_CSE_DMR_CRE_020(int23, m_createSubscriptionBase, v_contentResponse));//Subscription
						v_ae1.done;
					}

					testcase TC_CSE_DMR_CRE_020_PCH() runs on Tester system CseSystem {
						// Local variables
						var template PrimitiveContent v_contentResponse;
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
											
						v_contentResponse.pollingChannel := mw_contentPollingChannel_rc1;
1139 1140
						//Provided attributes should not be returned unless modified
						v_contentResponse.pollingChannel.resourceName := omit;
1141 1142 1143 1144 1145 1146
						
						v_ae1.start(f_CSE_DMR_CRE_020(int15, m_createPollingChannelBase, v_contentResponse));//PollingChannel
						v_ae1.done;
					}					
				} // end g_CSE_DMR_CRE_020	
		
1147 1148 1149 1150 1151
			}//end group Create
			
			group Retrieve {
				
				group g_CSE_DMR_RET_001 {
1152
					
1153 1154 1155 1156 1157 1158 1159 1160 1161
					/**
					 * @desc Check that the IUT returns successfully the TARGET_RESOURCE_ADDRESS resource 
					 * 
					 */
					testcase TC_CSE_DMR_RET_001_PCH() runs on Tester system CseSystem {
						// Local variables
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;						
						var ResponsePrimitive v_responsePrimitive;
						var template PrimitiveContent v_contentResponse;
1162 1163
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
1164 1165 1166
						v_contentResponse.pollingChannel := mw_contentPollingChannelBase;
						
						v_ae1.start(f_CSE_DMR_RET_001(int15, m_createPollingChannelBase, v_contentResponse));//PollingChannel
1167
						v_ae1.done;
1168
						
1169 1170
					}
					
1171
				} // end g_CSE_DMR_RET_001
1172
				
1173 1174
								
				group g_CSE_DMR_RET_020 {
1175 1176
					
					/**
1177
					 * @desc Check that the IUT rejects a RETRIEVE Request target to TARGET_RESOURCE_ADDRESS resource  when the Result Content set to RESULT_CONTENT
1178 1179
					 * 
					 */
1180
					testcase TC_CSE_DMR_RET_020_RCN_0() runs on Tester system CseSystem {
1181 1182
						// Local variables
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
1183 1184
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
1185
						v_ae1.start(f_CSE_DMR_RET_020(int3, m_createContainerBase, int0));//ResultContent = 0 (nothing)
1186 1187
						v_ae1.done;
					}
1188 1189
	
					testcase TC_CSE_DMR_RET_020_RCN_2() runs on Tester system CseSystem {
1190 1191
						// Local variables
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
1192 1193
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
1194
						v_ae1.start(f_CSE_DMR_RET_020(int3, m_createContainerBase, int2));//ResultContent = 2 (hierarchical address)
1195 1196
						v_ae1.done;
					}
1197 1198
	
					testcase TC_CSE_DMR_RET_020_RCN_3() runs on Tester system CseSystem {
1199 1200
						// Local variables
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
1201 1202
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
1203
						v_ae1.start(f_CSE_DMR_RET_020(int3, m_createContainerBase, int3));//ResultContent = 3 (attributes and hierarchichal address)
1204 1205
						v_ae1.done;
					}
1206
	
1207 1208 1209 1210 1211 1212 1213 1214
					testcase TC_CSE_DMR_RET_020_RCN_9() runs on Tester system CseSystem {
						// Local variables
						var AeSimu v_ae1 := AeSimu.create("AE1") alive;
						v_ae1.start(f_setProtocolBinding(PX_PROTOCOL_BINDING_AE1));
						v_ae1.done;
						v_ae1.start(f_CSE_DMR_RET_020(int3, m_createContainerBase, int9));//ResultContent = 9 (modified attributes)
						v_ae1.done;
					}
1215 1216 1217 1218
				} // end g_CSE_DMR_RET_020

				group g_CSE_DMR_RET_021 {
		
1219
					/**
1220
					 * @desc Check that the IUT returns successfully only attributes of TARGET_RESOURCE_ADDRESS resource when the Result Content is set to 1 (attributes)