1 | /*
|
---|
2 | * @author STF 370
|
---|
3 | * @version $Id: LibIot_PIXITS.ttcn 277 2009-06-16 15:06:42Z pintar $
|
---|
4 | * @desc This module provides PIXIT parameters which need to be
|
---|
5 | * changeable within validation
|
---|
6 | */
|
---|
7 |
|
---|
8 | module LibIot_PIXITS {
|
---|
9 |
|
---|
10 | import from LibIot_TypesAndValues
|
---|
11 | {
|
---|
12 | type IOTExecMode, IotVerdictType, CaptureMode, RecordMode, FileList, TimeOffset, EutInterfaceInfoList,
|
---|
13 | ProtocolFilter, IpAddress, PortNumber, ProductList;
|
---|
14 | }
|
---|
15 |
|
---|
16 | /**
|
---|
17 | * @desc PIXIT defines which verdict (E2E or conformance)is to be kept track of with the TTCN-3 verdict.
|
---|
18 | * Note that the verdict not chosen will be only available in log statements.
|
---|
19 | */
|
---|
20 | modulepar IotVerdictType PX_TTCN3_VERDICT := e_e2e;
|
---|
21 |
|
---|
22 | /**
|
---|
23 | *
|
---|
24 | * @desc Maximum time limit used by monitor component for waiting for expected incoming messages
|
---|
25 | */
|
---|
26 | modulepar float PX_MAX_MSG_WAIT := 5.0;
|
---|
27 |
|
---|
28 | /**
|
---|
29 | *
|
---|
30 | * @desc Example of module parameter based entry of EUT interface information for all products particpating in an interoperability event
|
---|
31 | */
|
---|
32 | modulepar ProductList PX_PRODUCTS := {
|
---|
33 | {
|
---|
34 | productName := "Testing Tech IMS Core",
|
---|
35 | monitorInterfaces := {
|
---|
36 | {
|
---|
37 | interfaceName := "Gm",
|
---|
38 | interfaceInfo := {
|
---|
39 | IpInterfaceInfo := {
|
---|
40 | {
|
---|
41 | domainName := "pcscf.testingtech.com",
|
---|
42 | IpAddress := "127.0.0.1",
|
---|
43 | portNumbers := {5060, 5061}
|
---|
44 | }
|
---|
45 | }
|
---|
46 | }
|
---|
47 | },
|
---|
48 | {
|
---|
49 | interfaceName := "Mw",
|
---|
50 | interfaceInfo := {
|
---|
51 | IpInterfaceInfo := {
|
---|
52 | {
|
---|
53 | domainName := "icscf.testingtech.com",
|
---|
54 | IpAddress := "127.0.0.1",
|
---|
55 | portNumbers := {5080}
|
---|
56 | },
|
---|
57 | {
|
---|
58 | domainName := "scscf.testingtech.com",
|
---|
59 | IpAddress := "127.0.0.1",
|
---|
60 | portNumbers := {5090}
|
---|
61 | }
|
---|
62 | }
|
---|
63 | }
|
---|
64 | }
|
---|
65 | }
|
---|
66 | },
|
---|
67 | {
|
---|
68 | productName := "ETSI UE",
|
---|
69 | monitorInterfaces := {
|
---|
70 | {
|
---|
71 | interfaceName := "Gm",
|
---|
72 | interfaceInfo := {
|
---|
73 | IpInterfaceInfo := {
|
---|
74 | {
|
---|
75 | domainName := omit,
|
---|
76 | IpAddress := "127.0.0.1",
|
---|
77 | portNumbers := {5060}
|
---|
78 | }
|
---|
79 | }
|
---|
80 | }
|
---|
81 | }
|
---|
82 | }
|
---|
83 | }
|
---|
84 | }
|
---|
85 |
|
---|
86 | /**
|
---|
87 | *
|
---|
88 | * @desc Selects product based on index in PX_PRODCUTS vendor list for EUT_A
|
---|
89 | */
|
---|
90 | modulepar integer PX_EUT_A := 0;
|
---|
91 |
|
---|
92 | /**
|
---|
93 | *
|
---|
94 | * @desc Selects product based on index in PX_PRODCUTS vendor list for EUT_B
|
---|
95 | */
|
---|
96 | modulepar integer PX_EUT_B := 1;
|
---|
97 |
|
---|
98 | /**
|
---|
99 | *
|
---|
100 | * @desc Selects product based on index in PX_PRODCUTS vendor list for EUT_B_B2
|
---|
101 | */
|
---|
102 | modulepar integer PX_EUT_B_B2 := 2;
|
---|
103 |
|
---|
104 | group adapterGeneralConfiguration {
|
---|
105 | /**
|
---|
106 | *
|
---|
107 | * @desc Maximum time limit used by trigger component for waiting for EUT response after command has been sent
|
---|
108 | */
|
---|
109 | modulepar float PX_EUT_TRIGGER_RESPONSE := 15.0;
|
---|
110 |
|
---|
111 | /**
|
---|
112 | * @desc
|
---|
113 | * In case of offline mode, it defines the Pcap file to play.
|
---|
114 | */
|
---|
115 | modulepar charstring PX_IOT_EXECUTION_FILE := "./TD_IMS_MESS_0001_19.pcap";
|
---|
116 |
|
---|
117 | /**
|
---|
118 | * @desc
|
---|
119 | * Defines if the record traffic capture mode must be activated or not.
|
---|
120 | */
|
---|
121 | modulepar RecordMode PX_IOT_RECORD_MODE := e_norecord;
|
---|
122 |
|
---|
123 | /**
|
---|
124 | * @desc
|
---|
125 | * Defines list of the files to merge.
|
---|
126 | */
|
---|
127 | modulepar FileList PX_IOT_FILE_MERGE_LIST := { "TD_IMS_0001_11.pcap", "TD_IMS_0001_19.pcap", "TD_IMS_0020.pcap" };
|
---|
128 |
|
---|
129 | /**
|
---|
130 | * @desc
|
---|
131 | * Defines the location of the files to merge.
|
---|
132 | */
|
---|
133 | modulepar charstring PX_IOT_FILE_MERGE_PATH := "/tmp";
|
---|
134 |
|
---|
135 | /**
|
---|
136 | * @desc
|
---|
137 | * Defines the location of the files to merge.
|
---|
138 | */
|
---|
139 | modulepar charstring PX_IOT_MERGE_TOOL_PATH := "C:\Program Files\WinPcap";
|
---|
140 |
|
---|
141 | /**
|
---|
142 | * @desc
|
---|
143 | * Defines the time stamp offset to start playing record traffic capture file.
|
---|
144 | */
|
---|
145 | modulepar TimeOffset PX_IOT_TIMESTAMP_OFFSET :=
|
---|
146 | {
|
---|
147 | seconds := 0,
|
---|
148 | microseconds := 0
|
---|
149 | };
|
---|
150 |
|
---|
151 | /**
|
---|
152 | * @desc
|
---|
153 | * List of the network interfaces to monitor.
|
---|
154 | * Use ';' to separate the interfaces
|
---|
155 | */
|
---|
156 | modulepar charstring PX_IOT_IFACES := "rpcap://\Device\NPF_{9E2D0FCD-C7F5-401D-B736-F0D4F8814715}";
|
---|
157 |
|
---|
158 | modulepar EutInterfaceInfoList PX_IOT_EUTs_IFACE_INFO_LIST :=
|
---|
159 | {
|
---|
160 | {
|
---|
161 | eut := "User A",
|
---|
162 | ipAddress := "127.0.0.1",
|
---|
163 | portNumber := 6610
|
---|
164 | },
|
---|
165 | {
|
---|
166 | eut := "User B",
|
---|
167 | ipAddress := "127.0.0.1",
|
---|
168 | portNumber := 6611
|
---|
169 | },
|
---|
170 | {
|
---|
171 | eut := "User B2",
|
---|
172 | ipAddress := "127.0.0.1",
|
---|
173 | portNumber := 6612
|
---|
174 | }
|
---|
175 | };
|
---|
176 |
|
---|
177 | } // group adapterGlobalConfiguration
|
---|
178 |
|
---|
179 | group numberOfComponents {
|
---|
180 | /**
|
---|
181 | *
|
---|
182 | * @desc integer value defines the number of monitor points.
|
---|
183 | */
|
---|
184 | modulepar integer PX_NUM_OF_MONITORS := 1;
|
---|
185 |
|
---|
186 | /**
|
---|
187 | *
|
---|
188 | * @desc integer value defines the number of devices to configure
|
---|
189 | */
|
---|
190 | modulepar integer PX_NUM_OF_DEVICES := 1;
|
---|
191 |
|
---|
192 | /**
|
---|
193 | * @desc integer value defines the number of trigger points
|
---|
194 | */
|
---|
195 | modulepar integer PX_NUM_OF_TRIGGER_POINTS := 1;
|
---|
196 |
|
---|
197 | }
|
---|
198 |
|
---|
199 | group interfaceData {
|
---|
200 | group monitor1
|
---|
201 | {
|
---|
202 | /**
|
---|
203 | *
|
---|
204 | * @desc protocol used by monitoring point #1
|
---|
205 | */
|
---|
206 | modulepar ProtocolFilter PX_PROTOCOL_MONITOR1 := e_sip;
|
---|
207 |
|
---|
208 | /**
|
---|
209 | *
|
---|
210 | * @desc First IP address used by monitoring point #1
|
---|
211 | */
|
---|
212 | modulepar IpAddress PX_IP1_MONITOR1 := "172.31.12.72";
|
---|
213 |
|
---|
214 | /**
|
---|
215 | *
|
---|
216 | * @desc Second IP address used by monitoring point #1
|
---|
217 | */
|
---|
218 | modulepar IpAddress PX_IP2_MONITOR1 := "172.31.42.3";
|
---|
219 |
|
---|
220 | /**
|
---|
221 | *
|
---|
222 | * @desc TCP or UDP port used by monitoring point #1
|
---|
223 | */
|
---|
224 |
|
---|
225 | modulepar PortNumber PX_PORT_MONITOR1 := 5060;
|
---|
226 | }
|
---|
227 | group monitor2
|
---|
228 | {
|
---|
229 | /**
|
---|
230 | *
|
---|
231 | * @desc protocol used by monitoring point #2
|
---|
232 | */
|
---|
233 | modulepar ProtocolFilter PX_PROTOCOL_MONITOR2 := e_sip;
|
---|
234 |
|
---|
235 | /**
|
---|
236 | *
|
---|
237 | * @desc First IP address used by monitoring point #2
|
---|
238 | */
|
---|
239 | modulepar IpAddress PX_IP1_MONITOR2 := "172.31.42.4";
|
---|
240 |
|
---|
241 | /**
|
---|
242 | *
|
---|
243 | * @desc Second IP address used by monitoring point #2
|
---|
244 | */
|
---|
245 | modulepar IpAddress PX_IP2_MONITOR2 := "172.31.13.2";
|
---|
246 |
|
---|
247 | /**
|
---|
248 | *
|
---|
249 | * @desc TCP or UDP port used by monitoring point #2
|
---|
250 | */
|
---|
251 |
|
---|
252 | modulepar PortNumber PX_PORT_MONITOR2 := 5060;
|
---|
253 |
|
---|
254 | }
|
---|
255 | group monitor3
|
---|
256 | {
|
---|
257 | /**
|
---|
258 | *
|
---|
259 | * @desc protocol used by monitoring point #3
|
---|
260 | */
|
---|
261 | modulepar ProtocolFilter PX_PROTOCOL_MONITOR3 := e_sip;
|
---|
262 |
|
---|
263 | /**
|
---|
264 | *
|
---|
265 | * @desc First IP address used by monitoring point #3
|
---|
266 | */
|
---|
267 | modulepar IpAddress PX_IP1_MONITOR3 := "172.31.44.84";
|
---|
268 |
|
---|
269 | /**
|
---|
270 | *
|
---|
271 | * @desc Second IP address used by monitoring point #3
|
---|
272 | */
|
---|
273 | modulepar IpAddress PX_IP2_MONITOR3 := "172.31.14.6";
|
---|
274 |
|
---|
275 | /**
|
---|
276 | *
|
---|
277 | * @desc TCP or UDP port used by monitoring point #3
|
---|
278 | */
|
---|
279 |
|
---|
280 | modulepar PortNumber PX_PORT_MONITOR3 := 5060;
|
---|
281 |
|
---|
282 | }
|
---|
283 | }
|
---|
284 | }
|
---|