Commit | Line | Data |
---|---|---|
970ed795 EL |
1 | <?xml version="1.0"?> |
2 | <!-- | |
d44e3c4f | 3 | Copyright (c) 2000-2016 Ericsson Telecom AB |
4 | All rights reserved. This program and the accompanying materials | |
5 | are made available under the terms of the Eclipse Public License v1.0 | |
6 | which accompanies this distribution, and is available at | |
7 | http://www.eclipse.org/legal/epl-v10.html | |
8 | ||
9 | Contributors: | |
10 | Balasko, Jeno | |
11 | Kovacs, Ferenc | |
12 | Raduly, Csaba | |
970ed795 EL |
13 | --> |
14 | <schema xmlns="http://www.w3.org/2001/XMLSchema" | |
15 | xmlns:TitanLoggerApi="TitanLoggerApi" targetNamespace="TitanLoggerApi"> | |
16 | ||
17 | ||
18 | <!-- This would be the structure of an on-disk log file in XML format. | |
19 | It supports "merged" logs, i.e. from different components. --> | |
20 | <element name="TitanLog"> | |
21 | <complexType> | |
22 | <sequence minOccurs="0" maxOccurs="unbounded"> | |
23 | <element name="entityId" type="TitanLoggerApi:ComponentIDType" /> | |
24 | <element name="event" type="TitanLoggerApi:TitanLogEvent" | |
25 | minOccurs="1" maxOccurs="unbounded" /> | |
26 | </sequence> | |
27 | </complexType> | |
28 | </element> | |
29 | ||
30 | <!-- An extra level of indirection to keep the component identification | |
31 | separate from the rest of the event data. --> | |
32 | <element name="TitanSingleLogEvent"> | |
33 | <complexType> | |
34 | <sequence> | |
35 | <element name="entityId" type="TitanLoggerApi:ComponentIDType" /> | |
36 | <element name="event" type="TitanLoggerApi:TitanLogEvent" /> | |
37 | </sequence> | |
38 | </complexType> | |
39 | </element> | |
40 | ||
41 | <!-- Top level structure. `Type' suffix removed. Severity is stored until | |
42 | all event types are supported. | |
43 | This is meant for in-memory use only. | |
44 | The entity id/name is not part of this structure; it would be redundant | |
45 | to store the same information over and over again. --> | |
46 | <complexType name="TitanLogEvent"> | |
47 | <sequence> | |
48 | <element name="timestamp" type="TitanLoggerApi:TimestampType" /> | |
49 | <element name="sourceInfo" type="TitanLoggerApi:LocationInfo" | |
50 | minOccurs="0" maxOccurs="unbounded" /> | |
51 | <element name="severity" type="integer" /> | |
52 | <element name="logEvent" type="TitanLoggerApi:LogEventType" /> | |
53 | </sequence> | |
54 | </complexType> | |
55 | ||
56 | <!-- It represents the number of seconds since the Unix epoch | |
57 | (00:00:00 UTC, January 1, 1970). This is the native information obtained | |
58 | from the OS. It is not converted to an XML data/time format (a string) | |
59 | for efficiency reasons. --> | |
60 | <complexType name="TimestampType"> | |
61 | <sequence> | |
62 | <element name="seconds" type="integer" /> | |
63 | <element name="microSeconds" type="integer" /> | |
64 | </sequence> | |
65 | </complexType> | |
66 | ||
67 | <!-- One level of "source information" --> | |
68 | <complexType name="LocationInfo"> | |
69 | <sequence> | |
70 | <element name="filename" type="string" /> | |
71 | <element name="line" type="integer" /> | |
72 | <element name="ent_name" type="string" /> | |
73 | <element name="ent_type"> | |
74 | <simpleType> | |
75 | <restriction base="string"> | |
76 | <enumeration value="unknown" /> | |
77 | <enumeration value="controlpart" /> | |
78 | <enumeration value="testcase" /> | |
79 | <enumeration value="altstep" /> | |
80 | <enumeration value="function" /> | |
81 | <enumeration value="external_function" /> | |
82 | <enumeration value="template" /> | |
83 | </restriction> | |
84 | </simpleType> | |
85 | </element> | |
86 | </sequence> | |
87 | </complexType> | |
88 | ||
89 | <!-- Component identification. | |
90 | A separate name may be redundant inside a running system, | |
91 | but it has to be written to an external log file. --> | |
92 | <complexType name="ComponentIDType"> | |
93 | <sequence> | |
94 | <element name="id" type="integer" /> | |
95 | <!-- name may be kept empty in memory, only needed on external storage --> | |
96 | <element name="name" type="string" /> | |
97 | </sequence> | |
98 | </complexType> | |
99 | ||
100 | ||
101 | <complexType name="LogEventType"> | |
102 | <choice> | |
103 | <element name="actionEvent" type="TitanLoggerApi:Strings" /> | |
104 | <element name="defaultEvent" type="TitanLoggerApi:DefaultEvent" /> | |
105 | <element name="errorLog" type="TitanLoggerApi:Categorized" /> | |
106 | <element name="executorEvent" type="TitanLoggerApi:ExecutorEvent" /> | |
107 | <element name="functionEvent" type="TitanLoggerApi:FunctionEvent" /> | |
108 | <element name="parallelEvent" type="TitanLoggerApi:ParallelEvent"/> | |
109 | <element name="testcaseOp" type="TitanLoggerApi:TestcaseEvent"/> | |
110 | <element name="portEvent" type="TitanLoggerApi:PortEvent"/> | |
111 | <!-- STATISTICSs (Runtime.cc) --> | |
112 | <!-- element name="verdictStatistics" type="TitanLoggerApi:VerdictStatisticsType" / --> | |
113 | <element name="statistics" type="TitanLoggerApi:StatisticsType" /> | |
114 | ||
115 | <!-- TIMEROPs (Timer.cc) --> | |
116 | <element name="timerEvent" type="TitanLoggerApi:TimerEvent" /> | |
117 | <element name="userLog" type="TitanLoggerApi:Strings" /> | |
118 | <!-- VERDICTOPs (Runtime.cc) --> | |
119 | <element name="verdictOp" type="TitanLoggerApi:VerdictOp" /> | |
120 | ||
121 | <element name="warningLog" type="TitanLoggerApi:Categorized" /> | |
122 | ||
123 | <element name="matchingEvent" type="TitanLoggerApi:MatchingEvent" /> | |
124 | ||
125 | <element name="debugLog" type="TitanLoggerApi:Categorized" /> | |
126 | ||
127 | <element name="executionSummary" type="TitanLoggerApi:ExecutionSummaryType" /> | |
128 | ||
129 | <element name="unhandledEvent" type="string" /> | |
130 | </choice> | |
131 | </complexType> | |
132 | ||
133 | <complexType name="Strings"> | |
134 | <sequence> | |
135 | <element name="str" type="string" maxOccurs="unbounded"/> | |
136 | </sequence> | |
137 | </complexType> | |
138 | ||
139 | <complexType name="Categorized"> | |
140 | <sequence> | |
141 | <element name="category" type="integer" /> | |
142 | <element name="text" type="string" /> | |
143 | </sequence> | |
144 | </complexType> | |
145 | ||
146 | <complexType name="ErrorEvent"> | |
147 | <sequence> | |
148 | <!-- to be enabled later | |
149 | <element name="type"> | |
150 | <simpleType> | |
151 | <restriction base="string"> | |
152 | <enumeration value="unqualified" /> | |
153 | <enumeration value="unbound" /> | |
154 | </restriction> | |
155 | </simpleType> | |
156 | </element> | |
157 | --> | |
158 | <element name="text" type="string" /> | |
159 | </sequence> | |
160 | </complexType> | |
161 | ||
162 | <complexType name="WarningEvent"> | |
163 | <sequence> | |
164 | <!-- to be enabled later | |
165 | <element name="type"> | |
166 | <simpleType> | |
167 | <restriction base="string"> | |
168 | <enumeration value="unqualified" /> | |
169 | </restriction> | |
170 | </simpleType> | |
171 | </element> | |
172 | --> | |
173 | <element name="text" type="string" /> | |
174 | </sequence> | |
175 | </complexType> | |
176 | ||
177 | <complexType name="TestcaseEvent"> | |
178 | <choice> | |
179 | <element name="testcaseStarted" type="TitanLoggerApi:QualifiedName" /> | |
180 | <element name="testcaseFinished" type="TitanLoggerApi:TestcaseType" /> | |
181 | <!-- TODO: testcase-unqualif... --> | |
182 | </choice> | |
183 | </complexType> | |
184 | ||
185 | <complexType name="ParallelEvent"> | |
186 | <choice> | |
187 | <element name="parallelPTC" type="TitanLoggerApi:ParallelPTC"/> | |
188 | <element name="parallelPTC_exit" type="TitanLoggerApi:PTC_exit" /> | |
189 | <element name="parallelPort" type="TitanLoggerApi:ParPort" /> | |
190 | </choice> | |
191 | </complexType> | |
192 | ||
193 | <simpleType name="RandomAction"> | |
194 | <restriction base="string"> | |
195 | <enumeration value="seed" /> | |
196 | <enumeration value="read_out" /> | |
197 | </restriction> | |
198 | </simpleType> | |
199 | ||
200 | ||
201 | <complexType name="FunctionEvent"> | |
202 | <choice> | |
203 | <element name="unqualified" type="string" /> | |
204 | <element name="random"> | |
205 | <annotation> | |
206 | <documentation>seeding and reading the PRNG</documentation> | |
207 | </annotation> | |
208 | <complexType> | |
209 | <sequence> | |
210 | <element name="operation" type="TitanLoggerApi:RandomAction" /> | |
211 | <element name="retval" type="double" /> | |
212 | <element name="intseed" type="integer" /> | |
213 | </sequence> | |
214 | </complexType> | |
215 | </element> | |
216 | </choice> | |
217 | </complexType> | |
218 | ||
219 | <complexType name="MatchingEvent"> | |
220 | <choice> | |
221 | <element name="matchingDone" type="TitanLoggerApi:MatchingDoneType" /> | |
222 | <element name="matchingSuccess" type="TitanLoggerApi:MatchingSuccessType" /> | |
223 | <element name="matchingFailure" type="TitanLoggerApi:MatchingFailureType" /> | |
224 | <element name="matchingProblem" type="TitanLoggerApi:MatchingProblemType" /> | |
225 | <element name="matchingTimeout" type="TitanLoggerApi:MatchingTimeout" /> | |
226 | </choice> | |
227 | </complexType> | |
228 | ||
229 | <complexType name="TimerEvent"> | |
230 | <choice> | |
231 | <element name="readTimer" type="TitanLoggerApi:TimerType" /> | |
232 | <element name="startTimer" type="TitanLoggerApi:TimerType" /> | |
233 | <element name="guardTimer" type="TitanLoggerApi:TimerGuardType" /> | |
234 | <element name="stopTimer" type="TitanLoggerApi:TimerType" /> | |
235 | <element name="timeoutTimer" type="TitanLoggerApi:TimerType" /> | |
236 | <element name="timeoutAnyTimer" type="TitanLoggerApi:TimerAnyTimeoutType" /> | |
237 | <element name="unqualifiedTimer" type="string" /> | |
238 | </choice> | |
239 | </complexType> | |
240 | ||
241 | <complexType name="DefaultEvent"> | |
242 | <choice> | |
243 | <element name="defaultopActivate" type="TitanLoggerApi:DefaultOp" /> | |
244 | <element name="defaultopDeactivate" type="TitanLoggerApi:DefaultOp" /> | |
245 | <element name="defaultopExit" type="TitanLoggerApi:DefaultOp" /> | |
246 | </choice> | |
247 | </complexType> | |
248 | ||
249 | <complexType name="ExecutorEvent"> | |
250 | <choice> | |
251 | <element name="executorRuntime" type="TitanLoggerApi:ExecutorRuntime" /> | |
252 | <element name="executorConfigdata" type="TitanLoggerApi:ExecutorConfigdata" /> | |
253 | <element name="extcommandStart" type="string" /> | |
254 | <element name="extcommandSuccess" type="string" /> | |
255 | <element name="executorComponent" type="TitanLoggerApi:ExecutorComponent" /> | |
256 | <element name="logOptions" type="string" /> | |
257 | <element name="executorMisc" type="TitanLoggerApi:ExecutorUnqualified" /> | |
258 | </choice> | |
259 | </complexType> | |
260 | ||
261 | <complexType name="PortEvent"> | |
262 | <choice> | |
263 | <element name="portQueue" type="TitanLoggerApi:Port_Queue" /> | |
264 | <element name="portState" type="TitanLoggerApi:Port_State"/> | |
265 | ||
266 | <element name="procPortSend" type="TitanLoggerApi:Proc_port_out" /> | |
267 | <element name="procPortRecv" type="TitanLoggerApi:Proc_port_in" /> | |
268 | ||
269 | <element name="msgPortSend" type="TitanLoggerApi:Msg_port_send" /> | |
270 | <element name="msgPortRecv" type="TitanLoggerApi:Msg_port_recv" /> | |
271 | ||
272 | <element name="dualMapped" type="TitanLoggerApi:Dualface_mapped" /> | |
273 | <element name="dualDiscard" type="TitanLoggerApi:Dualface_discard" /> | |
274 | ||
275 | <element name="portMisc" type="TitanLoggerApi:Port_Misc" /> | |
276 | </choice> | |
277 | </complexType> | |
278 | ||
279 | ||
280 | <!-- ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ --> | |
281 | ||
282 | <complexType name="TimerType"> | |
283 | <sequence> | |
284 | <element name="name" type="string" /> | |
285 | <element name="value" type="double" /> | |
286 | </sequence> | |
287 | </complexType> | |
288 | <!-- A plain `double' would suffice as well... --> | |
289 | <complexType name="TimerGuardType"> | |
290 | <sequence> | |
291 | <element name="value" type="double" /> | |
292 | </sequence> | |
293 | </complexType> | |
294 | <complexType name="TimerAnyTimeoutType"> | |
295 | <sequence /> | |
296 | </complexType> | |
297 | ||
298 | <complexType name="QualifiedName"> | |
299 | <annotation> | |
300 | <documentation> | |
301 | Testcase name qualified with the module name | |
302 | </documentation> | |
303 | </annotation> | |
304 | <sequence> | |
305 | <element name="module_name" type="string"/> | |
306 | <element name="testcase_name" type="string"/> | |
307 | </sequence> | |
308 | </complexType> | |
309 | ||
310 | <complexType name="TestcaseType"> | |
311 | <sequence> | |
312 | <element name="name" type="TitanLoggerApi:QualifiedName" /> | |
313 | <element name="verdict" type="TitanLoggerApi:Verdict" /> | |
314 | <element name="reason" type="string"> | |
315 | <annotation> | |
316 | <documentation> | |
317 | This could be optional (minOccurs=0), but that would introduce | |
318 | another level of indirection. | |
319 | Instead, an empty reason string means "no reason". | |
320 | </documentation> | |
321 | </annotation> | |
322 | </element> | |
323 | ||
324 | </sequence> | |
325 | </complexType> | |
326 | ||
327 | <complexType name="ExecutionSummaryType"> | |
328 | <sequence> | |
329 | <element name="numberOfTestcases" type="integer" /> | |
330 | <element name="overallStatistics" type="string" /> | |
331 | </sequence> | |
332 | </complexType> | |
333 | ||
334 | <complexType name="VerdictOp"> | |
335 | <choice> | |
336 | <element name="setVerdict" type="TitanLoggerApi:SetVerdictType" /> | |
337 | <element name="getVerdict" type="TitanLoggerApi:Verdict" /> | |
338 | <element name="finalVerdict" type="TitanLoggerApi:FinalVerdictType" /> | |
339 | </choice> | |
340 | </complexType> | |
341 | ||
342 | <complexType name="StatisticsType"> | |
343 | <choice> | |
344 | <element name="verdictStatistics"> | |
345 | <complexType> | |
346 | <sequence> | |
347 | <element name="none" type="integer" /> | |
348 | <element name="nonePercent" type="float" /> | |
349 | <element name="pass" type="integer" /> | |
350 | <element name="passPercent" type="float" /> | |
351 | <element name="inconc" type="integer" /> | |
352 | <element name="inconcPercent" type="float" /> | |
353 | <element name="fail" type="integer" /> | |
354 | <element name="failPercent" type="float" /> | |
355 | <element name="error" type="integer" /> | |
356 | <element name="errorPercent" type="float" /> | |
357 | </sequence> | |
358 | </complexType> | |
359 | </element> | |
360 | <element name="controlpartStart" type="string" /> | |
361 | <element name="controlpartFinish" type="string" /> | |
362 | <element name="controlpartErrors" type="integer" /> | |
363 | </choice> | |
364 | </complexType> | |
365 | ||
366 | <complexType name="SetVerdictType"> | |
367 | <annotation><documentation>VERDICTOP_SETVERDICT</documentation></annotation> | |
368 | <sequence> | |
369 | <element name="newVerdict" type="TitanLoggerApi:Verdict" /> | |
370 | <element name="oldVerdict" type="TitanLoggerApi:Verdict" /> | |
371 | <element name="localVerdict" type="TitanLoggerApi:Verdict" /> | |
372 | <element name="oldReason" type="string" minOccurs="0" maxOccurs="1" /> | |
373 | <element name="newReason" type="string" minOccurs="0" maxOccurs="1" /> | |
374 | </sequence> | |
375 | </complexType> | |
376 | <complexType name="VerdictType"> | |
377 | <sequence> | |
378 | <element name="fromVerdict" type="TitanLoggerApi:Verdict" /> | |
379 | <element name="toVerdict" type="TitanLoggerApi:Verdict" /> | |
380 | <element name="verdictReason" type="string" minOccurs="0" maxOccurs="1" /> | |
381 | </sequence> | |
382 | </complexType> | |
383 | <complexType name="FinalVerdictType"> | |
384 | <annotation><documentation>VERDICTOP_FINAL</documentation></annotation> | |
385 | <choice> | |
386 | <element name="info" type="TitanLoggerApi:FinalVerdictInfo" /> | |
387 | <element name="notification"> | |
388 | <simpleType> | |
389 | <restriction base="string"> | |
390 | <enumeration value="setting_final_verdict_of_the_test_case." /> | |
391 | <enumeration value="no_ptcs_were_created." /> | |
392 | </restriction> | |
393 | </simpleType> | |
394 | </element> | |
395 | </choice> | |
396 | </complexType> | |
397 | <complexType name="FinalVerdictInfo"> | |
398 | <sequence> | |
399 | <element name="is_ptc" type="boolean" /> | |
400 | <element name="ptc_verdict" type="TitanLoggerApi:Verdict" /> | |
401 | <element name="local_verdict" type="TitanLoggerApi:Verdict" /> | |
402 | <element name="new_verdict" type="TitanLoggerApi:Verdict" /> | |
403 | <element name="verdict_reason" type="string" minOccurs="0" maxOccurs="1" /> | |
404 | <element name="ptc_compref" type="integer" minOccurs="0" maxOccurs="1" /> | |
405 | <element name="ptc_name" type="string" minOccurs="0" maxOccurs="1" /> | |
406 | </sequence> | |
407 | </complexType> | |
408 | ||
409 | <simpleType name="Verdict"> | |
410 | <restriction base="string"> | |
411 | <!-- Must make sure the lexicographical order matches the severity sort order --> | |
412 | <enumeration value="v0none" /> | |
413 | <enumeration value="v1pass" /> | |
414 | <enumeration value="v2inconc" /> | |
415 | <enumeration value="v3fail" /> | |
416 | <enumeration value="v4error" /> | |
417 | </restriction> | |
418 | </simpleType> | |
419 | ||
420 | <complexType name="DefaultOp"> | |
421 | <sequence> | |
422 | <element name="name" type="string"/> | |
423 | <element name="id" type="integer" /> | |
424 | <element name="end" type="TitanLoggerApi:DefaultEnd"/> | |
425 | </sequence> | |
426 | </complexType> | |
427 | ||
428 | <simpleType name="DefaultEnd"> | |
429 | <restriction base="string"> | |
430 | <enumeration value="finish" /> | |
431 | <enumeration value="repeat" /> | |
432 | <enumeration value="break" /> | |
433 | </restriction> | |
434 | </simpleType> | |
435 | ||
436 | <simpleType name="PortType"> | |
437 | <restriction base="string"> | |
438 | <enumeration value="message"> | |
439 | <annotation> | |
440 | <documentation>MATCHING_M.*</documentation> | |
441 | </annotation> | |
442 | </enumeration> | |
443 | <enumeration value="procedure"> | |
444 | <annotation> | |
445 | <documentation>MATCHING_P.*</documentation> | |
446 | </annotation> | |
447 | </enumeration> | |
448 | </restriction> | |
449 | </simpleType> | |
450 | ||
451 | <complexType name="MatchingSuccessType"> | |
452 | <sequence> | |
453 | <element name="port_type" type="TitanLoggerApi:PortType" /> | |
454 | <element name="port_name" type="string" /> | |
455 | <element name="info" type="string" /> | |
456 | </sequence> | |
457 | </complexType> | |
458 | ||
459 | <complexType name="MatchingFailureType"> | |
460 | <sequence> | |
461 | <element name="port_type" type="TitanLoggerApi:PortType" /> | |
462 | <element name="port_name" type="string" /> | |
463 | <choice> | |
464 | <element name="system" type="string" > | |
465 | <annotation><documentation>mapped: MATCHING_[PM]M.*</documentation></annotation> | |
466 | </element> | |
467 | <element name="compref" type="integer" > | |
468 | <annotation><documentation>connected: MATCHING_[PM]C.*</documentation></annotation> | |
469 | </element> | |
470 | </choice> | |
471 | <!-- No id if matching failed --> | |
472 | <element name="reason"> | |
473 | <simpleType> | |
474 | <restriction base="string"> | |
475 | <enumeration value="sender_does_not_match_from_clause" /> | |
476 | <enumeration value="sender_is_not_system" /> | |
477 | <enumeration value="message_does_not_match_template" /> | |
478 | <enumeration value="parameters_of_call_do_not_match_template" /> | |
479 | <enumeration value="parameters_of_reply_do_not_match_template" /> | |
480 | <enumeration value="exception_does_not_match_template" /> | |
481 | <enumeration value="not_an_exception_for_signature" /> | |
482 | </restriction> | |
483 | </simpleType> | |
484 | </element> | |
485 | <element name="info" type="string" /> | |
486 | </sequence> | |
487 | </complexType> | |
488 | ||
489 | <complexType name="MatchingProblemType"> | |
490 | <sequence> | |
491 | <element name="port_name" type="string" /> | |
492 | ||
493 | <element name="reason"> | |
494 | <simpleType> | |
495 | <restriction base="string"> | |
496 | <enumeration value="port_not_started_and_queue_empty" /> | |
497 | <enumeration value="no_incoming_types" /> | |
498 | <enumeration value="no_incoming_signatures" /> | |
499 | <enumeration value="no_outgoing_blocking_signatures" /> | |
500 | <enumeration value="no_outgoing_blocking_signatures_that_support_exceptions" /> | |
501 | <enumeration value="component_has_no_ports" /> | |
502 | </restriction> | |
503 | </simpleType> | |
504 | </element> | |
505 | ||
506 | <element name="operation"> | |
507 | <simpleType> | |
508 | <restriction base="string"> | |
509 | <enumeration value="receive" /> | |
510 | <enumeration value="trigger" /> | |
511 | <enumeration value="getcall" /> | |
512 | <enumeration value="getreply" /> | |
513 | <enumeration value="catch" /> | |
514 | <enumeration value="check" > | |
515 | <annotation><documentation>Must be "any port"!</documentation></annotation> | |
516 | </enumeration> | |
517 | </restriction> | |
518 | </simpleType> | |
519 | </element> | |
520 | ||
521 | <element name="check" type="boolean"/> | |
522 | <element name="any_port" type="boolean" /> | |
523 | ||
524 | </sequence> | |
525 | </complexType> | |
526 | ||
527 | <complexType name="MatchingDoneType"> | |
528 | <sequence> | |
529 | <element name="reason"> | |
530 | <simpleType> | |
531 | <restriction base="string"> | |
532 | <enumeration value="done_failed._wrong_return_type" /> | |
533 | <enumeration value="done_failed._no_return" /> | |
534 | <enumeration value="any_component_done_successful" /> | |
535 | <enumeration value="any_component_done_failed" /> | |
536 | <enumeration value="all_component_done_successful" /> | |
537 | <!--seems to be no "all component.done failed" ?? --> | |
538 | <enumeration value="any_component_killed_successful" /> | |
539 | <enumeration value="any_component_killed_failed" /> | |
540 | <enumeration value="all_component_killed_successful" /> | |
541 | <!--seems to be no "all component.killed failed" ?? --> | |
542 | </restriction> | |
543 | </simpleType> | |
544 | </element> | |
545 | <element name="type" type="string" /> | |
546 | <element name="ptc" type="integer" /> | |
547 | <element name="return_type" type="string" /> | |
548 | </sequence> | |
549 | </complexType> | |
550 | ||
551 | <complexType name="MatchingTimeout"> | |
552 | <sequence> | |
553 | <element name="timer_name" minOccurs="0" /> | |
554 | </sequence> | |
555 | </complexType> | |
556 | ||
557 | <complexType name="ExecutorRuntime"> | |
558 | <sequence> | |
559 | <element name="reason"> | |
560 | <simpleType> | |
561 | <restriction base="string"> | |
562 | <!-- Communications.cc --> | |
563 | <enumeration value="connected_to_mc" /> | |
564 | <enumeration value="disconnected_from_mc" /> | |
565 | <!-- enumeration value=""/ --> | |
566 | <enumeration value="initialization_of_modules_failed" /> | |
567 | <enumeration value="exit_requested_from_mc_hc" /> | |
568 | <enumeration value="exit_requested_from_mc_mtc" /> | |
569 | <enumeration value="stop_was_requested_from_mc_ignored_on_idle_mtc" /> | |
570 | <enumeration value="stop_was_requested_from_mc" /> | |
571 | <enumeration value="stop_was_requested_from_mc_ignored_on_idle_ptc" /> | |
572 | <enumeration value="executing_testcase_in_module" /> | |
573 | <enumeration value="performing_error_recovery" /> | |
574 | <!-- Module_list.cc --> | |
575 | <enumeration value="initializing_module" /> | |
576 | <enumeration value="initialization_of_module_finished" /> | |
577 | <!-- Runtime.cc --> | |
578 | <enumeration value="stopping_current_testcase" /> | |
579 | <enumeration value="exiting" /> | |
580 | <enumeration value="host_controller_started" /><!-- on hostname --> | |
581 | <enumeration value="host_controller_finished" /> | |
582 | <enumeration value="stopping_control_part_execution" /> | |
583 | <enumeration value="stopping_test_component_execution" /> | |
584 | <enumeration value="waiting_for_ptcs_to_finish" /> | |
585 | <enumeration value="user_paused_waiting_to_resume" /> | |
586 | <enumeration value="resuming_execution" /> | |
587 | <enumeration value="terminating_execution" /> | |
588 | <enumeration value="mtc_created" /><!-- PID %d --> | |
589 | <enumeration value="overload_check" /> | |
590 | <enumeration value="overload_check_fail" /> | |
591 | <enumeration value="overloaded_no_more" /><!-- PID %d --> | |
592 | <!-- Single_main.cc --> | |
593 | <enumeration value="executor_start_single_mode" /> | |
594 | <enumeration value="executor_finish_single_mode" /> | |
595 | <!-- Snapshot.cc --> | |
596 | <enumeration value="fd_limits" /><!-- %d %d --> | |
597 | </restriction> | |
598 | </simpleType> | |
599 | </element> | |
600 | <element name="module_name" minOccurs="0" maxOccurs="1" /> | |
601 | <element name="testcase_name" minOccurs="0" maxOccurs="1" /> | |
602 | <element name="pid" type="integer" minOccurs="0" maxOccurs="1" /> <!-- reused for max open fd --> | |
603 | <element name="fd_setsize" type="integer" minOccurs="0" maxOccurs="1" /> | |
604 | </sequence> | |
605 | </complexType> | |
606 | ||
607 | <complexType name="ExecutorUnqualified"> | |
608 | <sequence> | |
609 | <element name="reason"> | |
610 | <simpleType> | |
611 | <restriction base="string"> | |
612 | <enumeration value="local_address_was_set" /> | |
613 | <enumeration value="address_of_mc_was_set" /> | |
614 | <enumeration value="address_of_control_connection" /> | |
615 | <enumeration value="host_support_unix_domain_sockets" /> | |
616 | ||
617 | </restriction> | |
618 | </simpleType> | |
619 | </element> | |
620 | <element name="name" type="string" /> | |
621 | <element name="addr" type="string" /> | |
622 | <element name="port" type="integer" /> | |
623 | </sequence> | |
624 | </complexType> | |
625 | ||
626 | <complexType name="ExecutorConfigdata"> | |
627 | <sequence> | |
628 | <element name="reason"> | |
629 | <simpleType> | |
630 | <restriction base="string"> | |
631 | <enumeration value="received_from_mc" /> | |
632 | <enumeration value="processing_failed" /> | |
633 | <enumeration value="processing_succeeded" /> | |
634 | <enumeration value="module_has_parameters" /><!-- %s --> | |
635 | <enumeration value="using_config_file" /><!-- %s --> | |
636 | <enumeration value="overriding_testcase_list" /> | |
637 | </restriction> | |
638 | </simpleType> | |
639 | </element> | |
640 | <element name="param" type="string" minOccurs="0" maxOccurs="1" /> | |
641 | </sequence> | |
642 | </complexType> | |
643 | ||
644 | <complexType name="ExecutorComponent"> | |
645 | <sequence> | |
646 | <element name="reason"> | |
647 | <simpleType> | |
648 | <restriction base="string"> | |
649 | <enumeration value="mtc_started" /> | |
650 | <enumeration value="mtc_finished" /> | |
651 | <enumeration value="ptc_started" /> | |
652 | <enumeration value="ptc_finished" /> | |
653 | <enumeration value="component_init_fail" /> | |
654 | </restriction> | |
655 | </simpleType> | |
656 | </element> | |
657 | <!-- the logger can get the host name itself | |
658 | <element name="host" type="string" /> | |
659 | --> | |
660 | <element name="compref" type="integer" minOccurs="0" maxOccurs="1" /> | |
661 | </sequence> | |
662 | </complexType> | |
663 | ||
664 | <complexType name="ParallelPTC"> | |
665 | <sequence> | |
666 | <element name="reason"> | |
667 | <simpleType> | |
668 | <restriction base="string"> | |
669 | <enumeration value="init_component_start" /> | |
670 | <enumeration value="init_component_finish" /> | |
671 | <enumeration value="terminating_component" /> | |
672 | <enumeration value="component_shut_down" /> | |
673 | <enumeration value="error_idle_ptc" /> | |
674 | <enumeration value="ptc_created" > | |
675 | <annotation><documentation> | |
676 | From TTCN_Runtime::create_component, after the create request | |
677 | was sent to the MC. | |
678 | </documentation></annotation> | |
679 | </enumeration> | |
680 | <enumeration value="ptc_created_pid"> | |
681 | <annotation><documentation> | |
682 | From TTCN_Runtime::process_create_ptc, after fork in the HC. | |
683 | </documentation></annotation> | |
684 | </enumeration> | |
685 | <enumeration value="function_started" /> | |
686 | <enumeration value="function_stopped" /> | |
687 | <enumeration value="function_finished" /> | |
688 | <enumeration value="function_error" /> | |
689 | <enumeration value="ptc_done" /> | |
690 | <enumeration value="ptc_killed" /> | |
691 | <enumeration value="stopping_mtc" /> | |
692 | <enumeration value="ptc_stopped" /> | |
693 | <enumeration value="all_comps_stopped" /> | |
694 | <enumeration value="ptc_was_killed" /> | |
695 | <enumeration value="all_comps_killed" /> | |
696 | <enumeration value="kill_request_frm_mc" /> | |
697 | <enumeration value="mtc_finished" /> | |
698 | <enumeration value="ptc_finished" /> | |
699 | <enumeration value="starting_function" /> | |
700 | </restriction> | |
701 | </simpleType> | |
702 | </element> | |
703 | <element name="module" type="string" /> | |
704 | <element name="name" type="string" /> | |
705 | <element name="compref" type="integer"/> | |
706 | <element name="compname" type="string"> | |
707 | <annotation><documentation>The component name is usually | |
708 | deducible from the component reference. However, there is one case | |
709 | when it isn't (before the create operation, when the name is supplied | |
710 | as a parameter).</documentation></annotation> | |
711 | </element> | |
712 | <element name="tc_loc" type="string"> | |
713 | <annotation> | |
714 | <documentation>doubles as component name</documentation> | |
715 | </annotation> | |
716 | </element> | |
717 | <element name="alive_pid" type="integer"/> | |
718 | <element name="status" type="integer"/> | |
719 | </sequence> | |
720 | </complexType> | |
721 | ||
722 | <complexType name="Parallel"> | |
723 | <sequence> | |
724 | <element name="reason"> | |
725 | <simpleType> | |
726 | <restriction base="string"> | |
727 | <enumeration value="creating_new_ptc" /> | |
728 | <enumeration value="function_stopped" /> | |
729 | <enumeration value="terminating_test_component_exec" /> | |
730 | <enumeration value="stopping_ptc" /> | |
731 | <enumeration value="stop_no_effect" /> | |
732 | <enumeration value="stopping_all_ptcs" /> | |
733 | <enumeration value="stop_all_no_effect" /> | |
734 | ||
735 | <enumeration value="killing_ptc" /> | |
736 | <enumeration value="kill_no_effect" /> | |
737 | <enumeration value="killing_all_ptcs" /> | |
738 | <enumeration value="kill_all_no_effect" /> | |
739 | ||
740 | <enumeration value="connecting_ports" /><!-- compref & port x2 --> | |
741 | <enumeration value="disconnecting_ports" /><!-- compref & port x2 --> | |
742 | <enumeration value="mapping_ports" /><!-- compref & port x2 --> | |
743 | <enumeration value="unmapping_ports" /><!-- compref & port x2 --> | |
744 | ||
745 | <enumeration value="kill_request_from_mc" /> | |
746 | <enumeration value="killing_component" /><!-- compref & pid --> | |
747 | <enumeration value="process_already_terminated" /> | |
748 | <enumeration value="compref_not_exist" /> | |
749 | </restriction> | |
750 | </simpleType> | |
751 | </element> | |
752 | <element name="alive" type="boolean" /> | |
753 | <element name="function_name" type="string" /> | |
754 | <element name="src_compref" type="integer" /> | |
755 | <element name="src_port" type="string" /> | |
756 | <element name="dst_compref" type="integer" /> | |
757 | <element name="dst_port" type="string" /> | |
758 | </sequence> | |
759 | </complexType> | |
760 | ||
761 | <complexType name="StartFunction"> | |
762 | <sequence> | |
763 | <element name="function_name" type="string" /> | |
764 | <element name="compref" type="integer" /> | |
765 | <element name="parameter" type="string" minOccurs="0" maxOccurs="unbounded" /> | |
766 | </sequence> | |
767 | </complexType> | |
768 | ||
769 | <complexType name="PTC_exit"> | |
770 | <annotation><documentation>A complicated case of PARALLEL_PTC</documentation></annotation> | |
771 | <sequence> | |
772 | <element name="compref" type="integer" /> | |
773 | <!-- element name="compname" type="string" /> --> | |
774 | <element name="pid" type="integer" /> | |
775 | <element name="statuscode" type="integer" /> | |
776 | </sequence> | |
777 | </complexType> | |
778 | ||
779 | <complexType name="ParPort"> | |
780 | <annotation><documentation>For PARALLEL_PORT(CONN|MAP)</documentation></annotation> | |
781 | <sequence> | |
782 | <element name="operation"> | |
783 | <simpleType> | |
784 | <restriction base="string"> | |
785 | <enumeration value="connect" /> | |
786 | <enumeration value="disconnect" /> | |
787 | <enumeration value="map" /> | |
788 | <enumeration value="unmap" /> | |
789 | </restriction> | |
790 | </simpleType> | |
791 | </element> | |
792 | <element name="srcCompref" type="integer"/> | |
793 | <element name="dstCompref" type="integer"/> | |
794 | <element name="srcPort" /> | |
795 | <element name="dstPort" /> | |
796 | </sequence> | |
797 | </complexType> | |
798 | ||
799 | <complexType name="Port_Queue"> | |
800 | <annotation><documentation>Enqueue/dequeue operations | |
801 | on both message and procedure ports.</documentation></annotation> | |
802 | <sequence> | |
803 | <element name="operation"> | |
804 | <simpleType> | |
805 | <restriction base="string"> | |
806 | <enumeration value="enqueue_msg" /> | |
807 | <enumeration value="enqueue_call" /> | |
808 | <enumeration value="enqueue_reply" /> | |
809 | <enumeration value="enqueue_exception" /> | |
810 | <enumeration value="extract_msg" /> | |
811 | <enumeration value="extract_op" /> | |
812 | </restriction> | |
813 | </simpleType> | |
814 | </element> | |
815 | <element name="port_name" type="string" /> | |
816 | <element name="compref" type="integer" /> | |
817 | <element name="msgid" type="integer" /> | |
818 | <element name="address" type="string" /> | |
819 | <element name="param" type="string" /> | |
820 | </sequence> | |
821 | </complexType> | |
822 | ||
823 | <complexType name="Port_State"> | |
824 | <sequence> | |
825 | <element name="operation"> | |
826 | <simpleType> | |
827 | <restriction base="string"> | |
828 | <enumeration value="started" /> | |
829 | <enumeration value="stopped" /> | |
830 | <enumeration value="halted" /> | |
831 | </restriction> | |
832 | </simpleType> | |
833 | </element> | |
834 | <element name="port_name" type="string" /> | |
835 | </sequence> | |
836 | </complexType> | |
837 | ||
838 | <simpleType name="Port_oper"> | |
839 | <restriction base="string"> | |
840 | <enumeration value="call_op" /> | |
841 | <enumeration value="reply_op" /> | |
842 | <enumeration value="exception_op" /> | |
843 | </restriction> | |
844 | </simpleType> | |
845 | ||
846 | <complexType name="Proc_port_out"> | |
847 | <sequence> | |
848 | <element name="port_name" type="string" /> | |
849 | <element name="operation" type="TitanLoggerApi:Port_oper" /> | |
850 | <element name="compref" type="integer" /> | |
851 | <element name="sys_name" type="string" /> | |
852 | <element name="parameter" type="string" /> | |
853 | </sequence> | |
854 | </complexType> | |
855 | ||
856 | <complexType name="Proc_port_in"> | |
857 | <sequence> | |
858 | <element name="port_name" type="string" /> | |
859 | <element name="operation" type="TitanLoggerApi:Port_oper" /> | |
860 | <element name="compref" type="integer" /> | |
861 | <element name="check" type="boolean" /> | |
862 | <element name="parameter" type="string" /> | |
863 | <element name="msgid" type="integer" /> | |
864 | </sequence> | |
865 | </complexType> | |
866 | ||
867 | <complexType name="Msg_port_recv"> | |
868 | <sequence> | |
869 | <element name="port_name" type="string" /> | |
870 | <element name="operation"> | |
871 | <simpleType> | |
872 | <restriction base="string"> | |
873 | <enumeration value="receive_op" /> | |
874 | <enumeration value="check_receive_op" /> | |
875 | <enumeration value="trigger_op" /> | |
876 | </restriction> | |
877 | </simpleType> | |
878 | </element> | |
879 | <element name="compref" type="integer" /> | |
880 | <element name="sys_name" type="string" /> | |
881 | <element name="parameter" type="string" /> | |
882 | <element name="msgid" type="integer" /> | |
883 | </sequence> | |
884 | </complexType> | |
885 | ||
886 | <complexType name="Msg_port_send"> | |
887 | <sequence> | |
888 | <element name="port_name" type="string" /> | |
889 | <!-- operation is implied: send --> | |
890 | <element name="compref" type="integer" /> | |
891 | <element name="parameter" type="string" /> | |
892 | </sequence> | |
893 | </complexType> | |
894 | ||
895 | <complexType name="Dualface_mapped"> | |
896 | <sequence> | |
897 | <element name="incoming" type="boolean" /> | |
898 | <element name="target_type" type="string" /> | |
899 | <element name="value" type="string" /> | |
900 | <element name="msgid" type="integer" /> | |
901 | </sequence> | |
902 | </complexType> | |
903 | ||
904 | <complexType name="Dualface_discard"> | |
905 | <sequence> | |
906 | <element name="incoming" type="boolean" /> | |
907 | <element name="target_type" type="string" /> | |
908 | <element name="port_name" type="string" /> | |
909 | <element name="unhandled" type="boolean"> | |
910 | <annotation><documentation> | |
911 | unhandled=true means that there were mappings which failed to handle | |
912 | the message; false means that the discard mapping was the only one | |
913 | </documentation></annotation> | |
914 | </element> | |
915 | </sequence> | |
916 | </complexType> | |
917 | ||
918 | <complexType name="Port_Misc"> | |
919 | <sequence> | |
920 | <element name="reason"> | |
921 | <simpleType> | |
922 | <restriction base="string"> | |
923 | <enumeration value="removing_unterminated_connection" /> | |
924 | <enumeration value="removing_unterminated_mapping" /> | |
925 | <enumeration value="port_was_cleared" /> | |
926 | <enumeration value="local_connection_established" /> | |
927 | <enumeration value="local_connection_terminated" /> | |
928 | <enumeration value="port_is_waiting_for_connection_tcp" /> | |
929 | <enumeration value="port_is_waiting_for_connection_unix" /> | |
930 | <enumeration value="connection_established" /> | |
931 | <enumeration value="destroying_unestablished_connection" /> | |
932 | <enumeration value="terminating_connection" /> | |
933 | <enumeration value="sending_termination_request_failed" /> | |
934 | <enumeration value="termination_request_received" /> | |
935 | <enumeration value="acknowledging_termination_request_failed" /> | |
936 | <enumeration value="sending_would_block" /> | |
937 | <enumeration value="connection_accepted" /> | |
938 | <enumeration value="connection_reset_by_peer" /> | |
939 | <enumeration value="connection_closed_by_peer" /> | |
940 | <enumeration value="port_disconnected" /> | |
941 | <enumeration value="port_was_mapped_to_system" /> | |
942 | <enumeration value="port_was_unmapped_from_system" /> | |
943 | </restriction> | |
944 | </simpleType> | |
945 | </element> | |
946 | <element name="port_name" type="string" /> | |
947 | <element name="remote_component" type="integer" /> | |
948 | <element name="remote_port" type="string" /> | |
949 | <element name="ip_address" type="string" /> | |
950 | <element name="tcp_port" type="integer" /> | |
951 | <element name="new_size" type="integer" /> | |
952 | </sequence> | |
953 | </complexType> | |
954 | ||
955 | </schema> |