/
ut_realtime_reporter.tps
163 lines (141 loc) · 4.44 KB
/
ut_realtime_reporter.tps
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
46
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
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
create or replace type ut_realtime_reporter force under ut_output_reporter_base(
/*
utPLSQL - Version 3
Copyright 2016 - 2018 utPLSQL Project
Licensed under the Apache License, Version 2.0 (the "License"):
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
/**
* Cached XML header to be used for every XML document
*/
xml_header varchar2(4000),
/**
* Total number of all tests in the run (incl. disabled tests).
*/
total_number_of_tests integer,
/**
* Currently executed test number.
*/
current_test_number integer,
/**
* Current indentation in logical tabs.
*/
current_indent integer,
/**
* Buffers lines to be printed.
*/
print_buffer ut_varchar2_rows,
/**
* The realtime reporter.
* Provides test results in a XML format, for clients such as SQL Developer interested in showing progressing details.
*/
constructor function ut_realtime_reporter(
self in out nocopy ut_realtime_reporter
) return self as result,
/**
* Provides meta data of complete run in advance.
*/
overriding member procedure before_calling_run(
self in out nocopy ut_realtime_reporter,
a_run in ut_run
),
/**
* Indicates the end of the test run.
*/
overriding member procedure after_calling_run(
self in out nocopy ut_realtime_reporter,
a_run in ut_run
),
/**
* Indicates the start of a test suite execution.
*/
overriding member procedure before_calling_suite(
self in out nocopy ut_realtime_reporter,
a_suite in ut_logical_suite
),
/**
* Provides meta data of completed test suite.
*/
overriding member procedure after_calling_suite(
self in out nocopy ut_realtime_reporter,
a_suite in ut_logical_suite
),
/**
* Indicates the start of a test.
*/
overriding member procedure before_calling_test(
self in out nocopy ut_realtime_reporter,
a_test in ut_test
),
/**
* Provides meta data of a completed test.
*/
overriding member procedure after_calling_test(
self in out nocopy ut_realtime_reporter,
a_test in ut_test
),
/**
* Provides the description of this reporter.
*/
overriding member function get_description return varchar2,
/**
* Prints the start tag of a XML node with an optional attribute.
*/
member procedure print_start_node(
self in out nocopy ut_realtime_reporter,
a_node_name in varchar2,
a_attr_name in varchar2 default null,
a_attr_value in varchar2 default null
),
/**
* Prints the end tag of a XML node.
*/
member procedure print_end_node(
self in out nocopy ut_realtime_reporter,
a_name in varchar2
),
/**
* Prints a child node with content. Special characters are encoded.
*/
member procedure print_node(
self in out nocopy ut_realtime_reporter,
a_name in varchar2,
a_content in clob
),
/**
* Prints a child node with content. Content is passed 1:1 using CDATA.
*/
member procedure print_cdata_node(
self in out nocopy ut_realtime_reporter,
a_name in varchar2,
a_content in clob
),
/**
* Prints a line of the resulting XML document using the current indentation.
* a_indent_summand_before is added before printing a line.
* a_indent_summand_after is added after printing a line.
* All output is produced through this function.
*/
member procedure print_xml_fragment(
self in out nocopy ut_realtime_reporter,
a_fragment in clob,
a_indent_summand_before in integer default 0,
a_indent_summand_after in integer default 0
),
/**
* Flushes the local print buffer to the output buffer.
*/
member procedure flush_print_buffer(
self in out nocopy ut_realtime_reporter,
a_item_type in varchar2
)
)
not final
/