OneM2M_Pixits.ttcn 5.88 KB
Newer Older
1 2 3 4 5 6 7 8
/**
 *  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
9 10
 *  @version    $URL: https://oldforge.etsi.org/svn/oneM2M/branches/Release1/ttcn/LibOneM2M/OneM2M_Pixits.ttcn $
 *              $Id: OneM2M_Pixits.ttcn 347 2017-08-11 08:48:20Z reinaortega $
11 12 13 14 15 16
 *  @desc       Module containing Pixits for oneM2M
 *
 */
module OneM2M_Pixits {
	
	import from XSD all;
17
	import from OneM2M_Types all;
18
	
19
	group TestAdapterParameters {}
20 21

	
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
22 23 24 25 26
		group IutParameters {
			
			modulepar boolean PX_MN_CSE	:= true; 
			
			modulepar boolean PX_IN_CSE	:= false; 
27
		
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
28 29
			modulepar charstring PX_SUT_ADDRESS := "127.0.0.1:8080";
			
30 31
			modulepar boolean PX_UT_IMPLEMENTED := false;
			
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
			/**
			 * @desc IUT CSE Name
			 */	
			modulepar XSD.ID PX_CSE_NAME := "cseName";
		
			/**
			 * @desc IUT CSE-ID with SP-relative-CSE-ID format (relative) according to TS-0001-7.2-1
			 */		
			modulepar XSD.ID PX_CSE_ID := "/cseId";
			
			/**
			 * @desc IUT CSE resource ID with Unstructured-CSE-relative-Resource-ID (relative) format according to TS-0001-7.2-1
			 */			
			modulepar XSD.ID PX_CSE_RESOURCE_ID	:= "cseResourceId";
			 
			/**
			 * @desc IUT M2M-SP-ID with M2M-SP-ID format (absolute) according to TS-0001-7.2-1 Unstructured-CSE-relative -Resource-ID
			 */
			modulepar XSD.ID PX_SP_ID := "//om2m.org";

			/**
			 * @desc AE-ID with privileges to CREATE at the IUT CSEBase with AE-ID-Stem format (relative) according to TS-0001-7.2-1
			 */	
			modulepar XSD.ID PX_SUPER_AE_ID				:= "admin:admin";
	
			/**
			 * @desc CSE-ID with privileges to CREATE at the IUT CSEBase with SP-relative-CSE-ID format (relative) according to TS-0001-7.2-1
			 */	
			modulepar XSD.ID PX_SUPER_CSE_ID				:= "/admin:admin";	
			
62 63 64 65 66 67 68 69
			modulepar XSD.IDREFS PX_ALLOWED_C_AE_IDS := {"C"};
			
			modulepar XSD.IDREFS PX_NOT_ALLOWED_C_AE_IDS := {"MyAe"};
			
			modulepar XSD.IDREFS PX_ALLOWED_S_AE_IDS := {"S"};
			
			modulepar XSD.IDREFS PX_NOT_ALLOWED_S_AE_IDS := {"MyAe"};
			
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
70 71 72 73 74 75 76 77 78 79
			modulepar AddressingMethod PX_ADDRESSING_METHOD := e_hierarchical;
	
			modulepar PrimitiveScope PX_PRIMITIVE_SCOPE 	:= e_cseRelative;
	
			modulepar charstring PX_SERIALIZATION			:= "XML";
	
			modulepar charstring PX_PROTOCOL_BINDING 		:= "HTTP";		
			
			modulepar charstring PX_XML_NAMESPACE 			:= "m2m=""http://www.onem2m.org/xml/protocols""";
			
80 81
			modulepar ListOfURIs PX_ACOR 					:= {"*"};
						
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
82 83 84 85 86
		}
		
		group TesterParameters {
		
			modulepar charstring PX_AE1_ADDRESS				:= "127.0.0.1:3131";
87
	
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
88
			modulepar charstring PX_AE2_ADDRESS				:= "127.0.0.1:3132";
89
	
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
90
			modulepar charstring PX_CSE1_ADDRESS			:= "127.0.0.1:3141";
91
	
92 93 94 95 96 97

			/**
			 * @desc Test System CSE1 Name
			 */	
			modulepar XSD.ID PX_CSE1_NAME := "CSE1_NAME";
		
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
98 99 100
			/**
			 * @desc Test System CSE1-ID with SP-relative-CSE-ID format (relative) according to TS-0001-7.2-1
			 */		
101 102 103 104 105 106
			modulepar XSD.ID PX_CSE1_ID := "/CSE1_ID";
			
			/**
			 * @desc Test System CSE1 resource ID with Unstructured-CSE-relative-Resource-ID (relative) format according to TS-0001-7.2-1
			 */			
			modulepar XSD.ID PX_CSE1_RESOURCE_ID	:= "CSE1_RESOURCE_ID";
107 108 109 110 111
			
			/**
			 * @desc CSE1 Supported resource type
			 */	
			modulepar ResourceTypeList_1 PX_CSE1_SRT := {int1, int2, int3, int16};
112 113 114 115 116
			 
			/**
			 * @desc Test System M2M-SP1-ID with M2M-SP-ID format (absolute) according to TS-0001-7.2-1 Unstructured-CSE-relative -Resource-ID
			 */
			modulepar XSD.ID PX_SP1_ID := "//onem2m.org";
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
117 118 119 120 121
		
			/**
			 * @desc Test System AE1-ID with AE-ID-Stem format (relative) according to TS-0001-7.2-1
			 */			
			modulepar XSD.ID PX_AE1_ID_STEM				:= "";
122

Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
123 124 125 126 127 128 129 130 131
			/**
			 * @desc Test System AE2-ID with AE-ID-Stem format (relative) according to TS-0001-7.2-1
			 */		
			modulepar XSD.ID PX_AE2_ID_STEM				:= "";
			
			/**
			 * @desc Test System APP-ID with App-ID format according to TS-0001-7.2-1
			 */		
			modulepar XSD.ID PX_APP_ID 					:= "NMyAppId";
132

Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
133 134 135 136 137
		}
		
		group ExecutionParameters {
		
			modulepar boolean PX_DELETE_CREATED_RESOURCES 	:= true;
oneM2MTester Develop Team's avatar
oneM2MTester Develop Team committed
138
	
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
139
			modulepar XSD.AnyURI PX_RESOURCE_TO_BE_DELETED 	:= "/ae_test";
140
	
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
141
			modulepar XSD.IDREFS PX_RESOURCES_TO_BE_DELETED := {"MyAe"};
142
	
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
143 144 145 146 147 148
			modulepar boolean PX_RUN_POSTAMBLE 				:= true;		
		
		
		}


149
	
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
150

oneM2MTester Develop Team's avatar
oneM2MTester Develop Team committed
151
	
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
152

oneM2MTester Develop Team's avatar
oneM2MTester Develop Team committed
153
	
154 155
	modulepar boolean PX_USE_RESOURCE_ID_AS_ORIGINATOR 				:= true;
	
156 157 158 159
	//for checking whether the locationPolicy creation request is originated from a ASN-AE
	//NOTE: Apply to Device-based location request, and this requires Test System (TS) to activate ASN-AE mode to test IUT  	
	modulepar boolean PX_IUT_IS_ASN_CSE				:= false; //default //set it to true when running Device-based location testcases 	
	modulepar boolean PX_IUT_IS_MN_CSE				:= false; //default //set it to true when running Share-based location testcases
160
	modulepar boolean PX_IUT_IS_IN_CSE				:= false; //default //set it to true when running Share-based location testcases
161
	
162 163 164 165
	//constant parameters for LOC  
	modulepar XSD.Token PX_LOCATION_TARGET_ID				:= "{LOCATION-TARGET-ID}"; //SUPPOSE TO BE RECEIVED FROM LOCATION SERVER
	modulepar XSD.AnyURI PX_LOCATION_SERVER_ADDRESS		:= "{LOCATION-SERVER-ADDRESS}";
	
oneM2MTester Develop Team's avatar
oneM2MTester Develop Team committed
166
	modulepar charstring PX_LOCATION_UPDATE_PERIOD			:= "PT10M10S" ;//10 Minute 10 Seconds
167
	modulepar charstring PX_LOCATION_CONTAINER_NAME		:= "myLoContainer";
168
	
169
	modulepar Labels PX_LABELS := {"VALUE_1"}; 	
170
	modulepar boolean PX_IS_LOC_CONTAINER	:= false;//default //set it to true when the container is created to store location information
171
	
172 173 174
	modulepar PoaList PX_POA := {""};
	modulepar ResourceTypeList_1 PX_SRT := {int1, int2, int3, int4};
	
175
}  // end of module
176