robotframework-robotlog2db 1.5.2__tar.gz → 1.5.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (16) hide show
  1. {robotframework-robotlog2db-1.5.2 → robotframework-robotlog2db-1.5.3}/PKG-INFO +1 -1
  2. {robotframework-robotlog2db-1.5.2 → robotframework-robotlog2db-1.5.3}/RobotLog2DB/RobotLog2DB.pdf +0 -0
  3. {robotframework-robotlog2db-1.5.2 → robotframework-robotlog2db-1.5.3}/RobotLog2DB/robotlog2db.py +5 -5
  4. {robotframework-robotlog2db-1.5.2 → robotframework-robotlog2db-1.5.3}/RobotLog2DB/version.py +2 -2
  5. {robotframework-robotlog2db-1.5.2 → robotframework-robotlog2db-1.5.3}/RobotLog2DB/xsd/robot.xsd +51 -50
  6. {robotframework-robotlog2db-1.5.2 → robotframework-robotlog2db-1.5.3}/robotframework_robotlog2db.egg-info/PKG-INFO +1 -1
  7. {robotframework-robotlog2db-1.5.2 → robotframework-robotlog2db-1.5.3}/README.rst +0 -0
  8. {robotframework-robotlog2db-1.5.2 → robotframework-robotlog2db-1.5.3}/RobotLog2DB/__init__.py +0 -0
  9. {robotframework-robotlog2db-1.5.2 → robotframework-robotlog2db-1.5.3}/RobotLog2DB/__main__.py +0 -0
  10. {robotframework-robotlog2db-1.5.2 → robotframework-robotlog2db-1.5.3}/robotframework_robotlog2db.egg-info/SOURCES.txt +0 -0
  11. {robotframework-robotlog2db-1.5.2 → robotframework-robotlog2db-1.5.3}/robotframework_robotlog2db.egg-info/dependency_links.txt +0 -0
  12. {robotframework-robotlog2db-1.5.2 → robotframework-robotlog2db-1.5.3}/robotframework_robotlog2db.egg-info/entry_points.txt +0 -0
  13. {robotframework-robotlog2db-1.5.2 → robotframework-robotlog2db-1.5.3}/robotframework_robotlog2db.egg-info/requires.txt +0 -0
  14. {robotframework-robotlog2db-1.5.2 → robotframework-robotlog2db-1.5.3}/robotframework_robotlog2db.egg-info/top_level.txt +0 -0
  15. {robotframework-robotlog2db-1.5.2 → robotframework-robotlog2db-1.5.3}/setup.cfg +0 -0
  16. {robotframework-robotlog2db-1.5.2 → robotframework-robotlog2db-1.5.3}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: robotframework-robotlog2db
3
- Version: 1.5.2
3
+ Version: 1.5.3
4
4
  Summary: Imports robot result(s) to TestResultWebApp database
5
5
  Home-page: https://github.com/test-fullautomation/robotframework-robotlog2db
6
6
  Author: Tran Duy Ngoan
@@ -466,7 +466,7 @@ Example:
466
466
 
467
467
  / *Condition*: required / *Type*: str /
468
468
 
469
- Regex to get the expectated info (ID) from tag info.
469
+ Regex to get the expected info (ID) from tag info.
470
470
 
471
471
  **Returns:**
472
472
 
@@ -490,7 +490,7 @@ Get branch name from software version information.
490
490
 
491
491
  Convention of branch information in suffix of software version:
492
492
 
493
- * All software version with .0F is the main/freature branch.
493
+ * All software version with .0F is the main/feature branch.
494
494
  The leading number is the current year. E.g. ``17.0F03``
495
495
  * All software version with ``.1S``, ``.2S``, ... is a stabi branch.
496
496
  The leading number is the year of branching out for stabilization.
@@ -588,7 +588,7 @@ In case the starttime in given suite is 'N/A', it will try to get this informati
588
588
 
589
589
  def retrieve_result_endtime(objResult):
590
590
  """
591
- Retrieve endtime infomration from given result object (TestSuite or TestCase).
591
+ Retrieve endtime information from given result object (TestSuite or TestCase).
592
592
  In case the endtime in given suite is 'N/A', it will try to get this information from its children suite/test.
593
593
 
594
594
  **Arguments:**
@@ -827,9 +827,9 @@ Process to the lowest suite level (test file):
827
827
  sSuiteStarttime = retrieve_result_starttime(suite)
828
828
  sSuiteEndtime = retrieve_result_endtime(suite)
829
829
  if not sSuiteStarttime:
830
- Logger.log_error(f"Could not retieve start time of suite '{suite.name}'.")
830
+ Logger.log_error(f"Could not retrieve start time of suite '{suite.name}'.")
831
831
  if not sSuiteEndtime:
832
- Logger.log_error(f"Could not retieve end time of suite '{suite.name}'.")
832
+ Logger.log_error(f"Could not retrieve end time of suite '{suite.name}'.")
833
833
  _tbl_file_time_start = format_time(sSuiteStarttime)
834
834
  _tbl_file_time_end = format_time(sSuiteEndtime)
835
835
 
@@ -18,5 +18,5 @@
18
18
  #
19
19
  # Version and date of RobotLog2DB
20
20
  #
21
- VERSION = "1.5.2"
22
- VERSION_DATE = "28.06.2024"
21
+ VERSION = "1.5.3"
22
+ VERSION_DATE = "21.11.2024"
@@ -1,10 +1,11 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="4">
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="5">
3
3
  <xs:annotation>
4
4
  <xs:documentation xml:lang="en">
5
5
  = Robot Framework output.xml schema =
6
6
 
7
- Compatible with Robot Framework 5.0 and newer. For more details see:
7
+ Compatible with Robot Framework 7.0 and newer. For more details and
8
+ for older versions, go to
8
9
  https://github.com/robotframework/robotframework/tree/master/doc/schema
9
10
 
10
11
  Due to XSD 1.1 not being widely adopted, this schema is XSD 1.0 compatible.
@@ -23,17 +24,20 @@
23
24
  <xs:element name="errors" type="Errors" minOccurs="0" />
24
25
  </xs:sequence>
25
26
  <xs:attribute name="generator" type="xs:string" />
26
- <xs:attribute name="generated" type="xs:string" />
27
+ <xs:attribute name="generated" type="GeneratedType" />
27
28
  <!-- True when executing tasks, false (default) when executing tests. -->
28
29
  <xs:attribute name="rpa" type="xs:boolean" />
29
30
  <!-- Version of the schema output.xml is compatible with. Must match
30
31
  the `version` attribute of the `xs:schema` root element. -->
31
32
  <xs:attribute name="schemaversion" type="SpecVersion" />
32
33
  </xs:complexType>
34
+ <xs:simpleType name="GeneratedType">
35
+ <xs:union memberTypes="xs:string xs:dateTime" />
36
+ </xs:simpleType>
33
37
  <xs:simpleType name="SpecVersion">
34
38
  <xs:restriction base="xs:integer">
35
39
  <xs:minInclusive value="2" />
36
- <xs:maxInclusive value="4" />
40
+ <xs:maxInclusive value="5" />
37
41
  </xs:restriction>
38
42
  </xs:simpleType>
39
43
  <xs:complexType name="Suite">
@@ -72,6 +76,7 @@
72
76
  <xs:element name="if" type="If" minOccurs="0" maxOccurs="unbounded" />
73
77
  <xs:element name="try" type="Try" minOccurs="0" maxOccurs="unbounded" />
74
78
  <xs:element name="while" type="While" minOccurs="0" maxOccurs="unbounded" />
79
+ <xs:element name="variable" type="Var" minOccurs="0" maxOccurs="unbounded" />
75
80
  <xs:element name="error" type="Error" minOccurs="0" maxOccurs="unbounded" />
76
81
  <xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
77
82
  <xs:element name="doc" type="xs:string" minOccurs="0" />
@@ -92,6 +97,7 @@
92
97
  <xs:element name="if" type="If" minOccurs="0" maxOccurs="unbounded" />
93
98
  <xs:element name="try" type="Try" minOccurs="0" maxOccurs="unbounded" />
94
99
  <xs:element name="while" type="While" minOccurs="0" maxOccurs="unbounded" />
100
+ <xs:element name="variable" type="Var" minOccurs="0" maxOccurs="unbounded" />
95
101
  <xs:element name="error" type="Error" minOccurs="0" maxOccurs="unbounded" />
96
102
  <xs:element name="return" type="Return" minOccurs="0" maxOccurs="unbounded" />
97
103
  <xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
@@ -100,15 +106,18 @@
100
106
  <xs:element name="doc" type="xs:string" minOccurs="0" />
101
107
  <xs:element name="tag" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
102
108
  <xs:element name="timeout" type="Timeout" minOccurs="0" />
103
- <xs:element name="status" type="BodyItemStatus" />
109
+ <xs:element name="status" type="Status" />
104
110
  </xs:choice>
105
111
  <xs:attribute name="name" type="xs:string" />
106
112
  <xs:attribute name="library" type="xs:string" />
107
- <xs:attribute name="sourcename" type="xs:string" /> <!-- Original name with embedded arguments. Not used otherwise. -->
108
- <xs:attribute name="type" type="KeywordType" /> <!-- Only used with setups and teardowns. -->
113
+ <xs:attribute name="sourcename" type="xs:string" />
114
+ <xs:attribute name="owner" type="xs:string" /> <!-- Library or resource file name. -->
115
+ <xs:attribute name="source_name" type="xs:string" /> <!-- Original name with embedded arguments. Not used otherwise. -->
116
+ <xs:attribute name="type" type="KeywordType" /> <!-- Only used with setups and teardowns. -->
109
117
  </xs:complexType>
110
118
  <xs:simpleType name="KeywordType">
111
119
  <xs:restriction base="xs:string">
120
+ <xs:enumeration value="KEYWORD" /> <!-- Default when the attribute is not set. -->
112
121
  <xs:enumeration value="SETUP" />
113
122
  <xs:enumeration value="TEARDOWN" />
114
123
  </xs:restriction>
@@ -120,8 +129,7 @@
120
129
  <xs:element name="iter" type="ForIteration" minOccurs="0" maxOccurs="unbounded" />
121
130
  <xs:element name="kw" type="Keyword" minOccurs="0" maxOccurs="unbounded" />
122
131
  <xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
123
- <xs:element name="doc" type="xs:string" minOccurs="0" />
124
- <xs:element name="status" type="BodyItemStatus" />
132
+ <xs:element name="status" type="Status" />
125
133
  </xs:choice>
126
134
  <xs:attribute name="flavor" type="ForFlavor" />
127
135
  <xs:attribute name="start" type="xs:string" /> <!-- Used if IN ENUMERATE has `start`. -->
@@ -145,13 +153,13 @@
145
153
  <xs:element name="if" type="If" minOccurs="0" maxOccurs="unbounded" />
146
154
  <xs:element name="try" type="Try" minOccurs="0" maxOccurs="unbounded" />
147
155
  <xs:element name="while" type="While" minOccurs="0" maxOccurs="unbounded" />
156
+ <xs:element name="variable" type="Var" minOccurs="0" maxOccurs="unbounded" />
148
157
  <xs:element name="return" type="Return" minOccurs="0" maxOccurs="unbounded" />
149
158
  <xs:element name="break" type="Break" minOccurs="0" maxOccurs="unbounded" />
150
159
  <xs:element name="continue" type="Continue" minOccurs="0" maxOccurs="unbounded" />
151
160
  <xs:element name="error" type="Error" minOccurs="0" maxOccurs="unbounded" />
152
161
  <xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
153
- <xs:element name="doc" type="xs:string" minOccurs="0" />
154
- <xs:element name="status" type="BodyItemStatus" />
162
+ <xs:element name="status" type="Status" />
155
163
  </xs:choice>
156
164
  </xs:complexType>
157
165
  <xs:complexType name="ForIterationVariable">
@@ -165,8 +173,7 @@
165
173
  <xs:choice maxOccurs="unbounded">
166
174
  <xs:element name="branch" type="IfBranch" minOccurs="0" maxOccurs="unbounded" />
167
175
  <xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
168
- <xs:element name="doc" type="xs:string" minOccurs="0" />
169
- <xs:element name="status" type="BodyItemStatus" />
176
+ <xs:element name="status" type="Status" />
170
177
  </xs:choice>
171
178
  </xs:complexType>
172
179
  <xs:complexType name="IfBranch">
@@ -176,13 +183,13 @@
176
183
  <xs:element name="if" type="If" minOccurs="0" maxOccurs="unbounded" />
177
184
  <xs:element name="try" type="Try" minOccurs="0" maxOccurs="unbounded" />
178
185
  <xs:element name="while" type="While" minOccurs="0" maxOccurs="unbounded" />
186
+ <xs:element name="variable" type="Var" minOccurs="0" maxOccurs="unbounded" />
179
187
  <xs:element name="return" type="Return" minOccurs="0" maxOccurs="unbounded" />
180
188
  <xs:element name="break" type="Break" minOccurs="0" maxOccurs="unbounded" />
181
189
  <xs:element name="continue" type="Continue" minOccurs="0" maxOccurs="unbounded" />
182
190
  <xs:element name="error" type="Error" minOccurs="0" maxOccurs="unbounded" />
183
191
  <xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
184
- <xs:element name="doc" type="xs:string" minOccurs="0" />
185
- <xs:element name="status" type="BodyItemStatus" />
192
+ <xs:element name="status" type="Status" />
186
193
  </xs:choice>
187
194
  <xs:attribute name="type" type="IfType" use="required" />
188
195
  <xs:attribute name="condition" type="xs:string" />
@@ -198,8 +205,7 @@
198
205
  <xs:choice maxOccurs="unbounded">
199
206
  <xs:element name="branch" type="TryBranch" minOccurs="0" maxOccurs="unbounded" />
200
207
  <xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
201
- <xs:element name="doc" type="xs:string" minOccurs="0" />
202
- <xs:element name="status" type="BodyItemStatus" />
208
+ <xs:element name="status" type="Status" />
203
209
  </xs:choice>
204
210
  </xs:complexType>
205
211
  <xs:complexType name="TryBranch">
@@ -210,17 +216,17 @@
210
216
  <xs:element name="if" type="If" minOccurs="0" maxOccurs="unbounded" />
211
217
  <xs:element name="try" type="Try" minOccurs="0" maxOccurs="unbounded" />
212
218
  <xs:element name="while" type="While" minOccurs="0" maxOccurs="unbounded" />
219
+ <xs:element name="variable" type="Var" minOccurs="0" maxOccurs="unbounded" />
213
220
  <xs:element name="return" type="Return" minOccurs="0" maxOccurs="unbounded" />
214
221
  <xs:element name="break" type="Break" minOccurs="0" maxOccurs="unbounded" />
215
222
  <xs:element name="continue" type="Continue" minOccurs="0" maxOccurs="unbounded" />
216
223
  <xs:element name="error" type="Error" minOccurs="0" maxOccurs="unbounded" />
217
224
  <xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
218
- <xs:element name="doc" type="xs:string" minOccurs="0" />
219
- <xs:element name="status" type="BodyItemStatus" />
225
+ <xs:element name="status" type="Status" />
220
226
  </xs:choice>
221
227
  <xs:attribute name="type" type="TryType" use="required" />
222
228
  <xs:attribute name="pattern_type" type="xs:string" />
223
- <xs:attribute name="variable" type="xs:string" />
229
+ <xs:attribute name="assign" type="xs:string" />
224
230
  </xs:complexType>
225
231
  <xs:simpleType name="TryType">
226
232
  <xs:restriction base="xs:string">
@@ -235,8 +241,7 @@
235
241
  <xs:element name="iter" type="WhileIteration" minOccurs="0" maxOccurs="unbounded" />
236
242
  <xs:element name="kw" type="Keyword" minOccurs="0" maxOccurs="unbounded" />
237
243
  <xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
238
- <xs:element name="doc" type="xs:string" minOccurs="0" />
239
- <xs:element name="status" type="BodyItemStatus" />
244
+ <xs:element name="status" type="Status" />
240
245
  </xs:choice>
241
246
  <xs:attribute name="condition" type="xs:string" />
242
247
  <xs:attribute name="limit" type="xs:string" />
@@ -250,46 +255,61 @@
250
255
  <xs:element name="if" type="If" minOccurs="0" maxOccurs="unbounded" />
251
256
  <xs:element name="try" type="Try" minOccurs="0" maxOccurs="unbounded" />
252
257
  <xs:element name="while" type="While" minOccurs="0" maxOccurs="unbounded" />
258
+ <xs:element name="variable" type="Var" minOccurs="0" maxOccurs="unbounded" />
253
259
  <xs:element name="return" type="Return" minOccurs="0" maxOccurs="unbounded" />
254
260
  <xs:element name="break" type="Break" minOccurs="0" maxOccurs="unbounded" />
255
261
  <xs:element name="continue" type="Continue" minOccurs="0" maxOccurs="unbounded" />
256
262
  <xs:element name="error" type="Error" minOccurs="0" maxOccurs="unbounded" />
257
263
  <xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
258
- <xs:element name="doc" type="xs:string" minOccurs="0" />
259
- <xs:element name="status" type="BodyItemStatus" />
264
+ <xs:element name="status" type="Status" />
260
265
  </xs:choice>
261
266
  </xs:complexType>
267
+ <xs:complexType name="Var">
268
+ <xs:choice maxOccurs="unbounded">
269
+ <xs:element name="var" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
270
+ <xs:element name="kw" type="Keyword" minOccurs="0" maxOccurs="unbounded" />
271
+ <xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
272
+ <xs:element name="status" type="Status" />
273
+ </xs:choice>
274
+ <xs:attribute name="name" type="xs:string" />
275
+ <xs:attribute name="scope" type="xs:string" />
276
+ <xs:attribute name="separator" type="xs:string" />
277
+ </xs:complexType>
262
278
  <xs:complexType name="Return">
263
279
  <xs:choice maxOccurs="unbounded">
264
280
  <xs:element name="value" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
265
281
  <xs:element name="kw" type="Keyword" minOccurs="0" maxOccurs="unbounded" />
266
282
  <xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
267
- <xs:element name="status" type="BodyItemStatus" />
283
+ <xs:element name="status" type="Status" />
268
284
  </xs:choice>
269
285
  </xs:complexType>
270
286
  <xs:complexType name="Break">
271
287
  <xs:choice maxOccurs="unbounded">
272
288
  <xs:element name="kw" type="Keyword" minOccurs="0" maxOccurs="unbounded" />
273
289
  <xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
274
- <xs:element name="status" type="BodyItemStatus" />
290
+ <xs:element name="status" type="Status" />
275
291
  </xs:choice>
276
292
  </xs:complexType>
277
293
  <xs:complexType name="Continue">
278
294
  <xs:choice maxOccurs="unbounded">
279
295
  <xs:element name="kw" type="Keyword" minOccurs="0" maxOccurs="unbounded" />
280
296
  <xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
281
- <xs:element name="status" type="BodyItemStatus" />
297
+ <xs:element name="status" type="Status" />
282
298
  </xs:choice>
283
299
  </xs:complexType>
284
- <xs:complexType name="Message">
300
+ <xs:complexType name="Message" xmlns:xs="http://www.w3.org/2001/XMLSchema">
285
301
  <xs:simpleContent>
286
302
  <xs:extension base="xs:string">
287
- <xs:attribute name="timestamp" type="xs:string" use="required" />
303
+ <xs:attribute name="timestamp" type="xs:string" />
304
+ <xs:attribute name="time" type="xs:dateTime" />
288
305
  <xs:attribute name="level" type="MessageLevel" use="required" />
289
306
  <xs:attribute name="html" type="xs:boolean" />
290
307
  </xs:extension>
291
308
  </xs:simpleContent>
292
309
  </xs:complexType>
310
+ <xs:simpleType name="TimeType">
311
+ <xs:union memberTypes="xs:string xs:dateTime" />
312
+ </xs:simpleType>
293
313
  <xs:simpleType name="MessageLevel">
294
314
  <xs:restriction base="xs:string">
295
315
  <xs:enumeration value="TRACE" />
@@ -309,8 +329,9 @@
309
329
  <xs:attribute name="status" type="StatusValue" use="required" />
310
330
  <xs:attribute name="starttime" type="xs:string" />
311
331
  <xs:attribute name="endtime" type="xs:string" />
312
- <!-- Not set if both `starttime` and `endtime` are defined. -->
313
332
  <xs:attribute name="elapsedtime" type="xs:string" />
333
+ <xs:attribute name="start" type="xs:dateTime" />
334
+ <xs:attribute name="elapsed" type="xs:float" />
314
335
  </xs:extension>
315
336
  </xs:simpleContent>
316
337
  </xs:complexType>
@@ -323,26 +344,6 @@
323
344
  <xs:enumeration value="UNKNOWN" />
324
345
  </xs:restriction>
325
346
  </xs:simpleType>
326
- <xs:complexType name="BodyItemStatus">
327
- <xs:simpleContent>
328
- <xs:extension base="xs:string">
329
- <xs:attribute name="status" type="BodyItemStatusValue" use="required" />
330
- <xs:attribute name="starttime" type="xs:string" />
331
- <xs:attribute name="endtime" type="xs:string" />
332
- <!-- Not set if both `starttime` and `endtime` are defined. -->
333
- <xs:attribute name="elapsedtime" type="xs:string" />
334
- </xs:extension>
335
- </xs:simpleContent>
336
- </xs:complexType>
337
- <xs:simpleType name="BodyItemStatusValue">
338
- <xs:restriction base="xs:string">
339
- <xs:enumeration value="PASS" />
340
- <xs:enumeration value="FAIL" />
341
- <xs:enumeration value="SKIP" />
342
- <xs:enumeration value="NOT RUN" />
343
- <xs:enumeration value="UNKNOWN" />
344
- </xs:restriction>
345
- </xs:simpleType>
346
347
  <xs:complexType name="Timeout">
347
348
  <xs:attribute name="value" type="xs:string" use="required" />
348
349
  </xs:complexType>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: robotframework-robotlog2db
3
- Version: 1.5.2
3
+ Version: 1.5.3
4
4
  Summary: Imports robot result(s) to TestResultWebApp database
5
5
  Home-page: https://github.com/test-fullautomation/robotframework-robotlog2db
6
6
  Author: Tran Duy Ngoan