robotframework-logxml2chunks 1.0.0__py3-none-any.whl
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.
- LogXML2Chunks/LogXML2Chunks.py +400 -0
- LogXML2Chunks/__init__.py +13 -0
- LogXML2Chunks/cli.py +110 -0
- robotframework_logxml2chunks-1.0.0.dist-info/METADATA +192 -0
- robotframework_logxml2chunks-1.0.0.dist-info/RECORD +9 -0
- robotframework_logxml2chunks-1.0.0.dist-info/WHEEL +5 -0
- robotframework_logxml2chunks-1.0.0.dist-info/entry_points.txt +2 -0
- robotframework_logxml2chunks-1.0.0.dist-info/licenses/LICENSE +201 -0
- robotframework_logxml2chunks-1.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
# !/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Extract individual test cases from Robot Framework output.xml
|
|
4
|
+
and generate separate HTML reports for each test case.
|
|
5
|
+
|
|
6
|
+
Usage:
|
|
7
|
+
python extract_test_cases.py <output.xml> [output_directory]
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
import xml.etree.ElementTree as ET
|
|
11
|
+
import subprocess
|
|
12
|
+
import os
|
|
13
|
+
import sys
|
|
14
|
+
import copy
|
|
15
|
+
import re
|
|
16
|
+
from pathlib import Path
|
|
17
|
+
|
|
18
|
+
class LogXML2Chunks:
|
|
19
|
+
|
|
20
|
+
def _extract_steps_from_documentation(self, doc_text):
|
|
21
|
+
"""
|
|
22
|
+
Extract steps from test documentation.
|
|
23
|
+
|
|
24
|
+
Looks for sections marked as *Steps*, *Steps:*, or Steps: and extracts
|
|
25
|
+
the list items that follow (numbered or bulleted).
|
|
26
|
+
|
|
27
|
+
Steps can contain expected behavior after a '/' separator.
|
|
28
|
+
|
|
29
|
+
Args:
|
|
30
|
+
doc_text: The documentation text to parse
|
|
31
|
+
|
|
32
|
+
Returns:
|
|
33
|
+
Dictionary where keys are step names and values are expected behaviors.
|
|
34
|
+
If no expected behavior is specified (no '/'), the value will be 'pass'.
|
|
35
|
+
Returns empty dict if no steps found.
|
|
36
|
+
"""
|
|
37
|
+
if not doc_text:
|
|
38
|
+
return {}
|
|
39
|
+
|
|
40
|
+
steps = {}
|
|
41
|
+
|
|
42
|
+
# Pattern to find the Steps section (case-insensitive, with or without asterisks/colon)
|
|
43
|
+
# Match *Steps*, *Steps:*, *Steps / Expected*, etc.
|
|
44
|
+
steps_pattern = r'(?:\*)?Steps(?:\s*/\s*\w+)?(?:\*)?:?'
|
|
45
|
+
|
|
46
|
+
# Find the Steps section
|
|
47
|
+
match = re.search(steps_pattern, doc_text, re.IGNORECASE | re.MULTILINE)
|
|
48
|
+
if not match:
|
|
49
|
+
return {}
|
|
50
|
+
|
|
51
|
+
# Get text after the Steps marker
|
|
52
|
+
text_after_steps = doc_text[match.end():]
|
|
53
|
+
|
|
54
|
+
# Split into lines and process
|
|
55
|
+
lines = text_after_steps.split('\n')
|
|
56
|
+
|
|
57
|
+
for line in lines:
|
|
58
|
+
line = line.strip()
|
|
59
|
+
|
|
60
|
+
# Stop if we hit another section (starts with * and ends with *, or starts with * and contains :)
|
|
61
|
+
# This catches sections like *Expected*, *Results:*, etc.
|
|
62
|
+
if line.startswith('*'):
|
|
63
|
+
# Check if it's a section header (e.g., *Expected*, *Results:*, etc.)
|
|
64
|
+
if line.endswith('*') or ':' in line:
|
|
65
|
+
break
|
|
66
|
+
|
|
67
|
+
# Skip empty lines
|
|
68
|
+
if not line or line == '...':
|
|
69
|
+
continue
|
|
70
|
+
|
|
71
|
+
# Remove leading "..." from Robot Framework documentation
|
|
72
|
+
if line.startswith('...'):
|
|
73
|
+
line = line[3:].strip()
|
|
74
|
+
|
|
75
|
+
step_text = None
|
|
76
|
+
|
|
77
|
+
# Check for numbered list items (1. , 2. , etc.)
|
|
78
|
+
numbered_match = re.match(r'^\d+\.\s+(.+)$', line)
|
|
79
|
+
if numbered_match:
|
|
80
|
+
step_text = numbered_match.group(1).strip()
|
|
81
|
+
|
|
82
|
+
# Check for bulleted list items (- , * , etc.)
|
|
83
|
+
if not step_text:
|
|
84
|
+
bullet_match = re.match(r'^[-*]\s+(.+)$', line)
|
|
85
|
+
if bullet_match:
|
|
86
|
+
step_text = bullet_match.group(1).strip()
|
|
87
|
+
|
|
88
|
+
if step_text:
|
|
89
|
+
# Split by '/' to separate step name and expected behavior
|
|
90
|
+
if '/' in step_text:
|
|
91
|
+
parts = step_text.split('/', 1)
|
|
92
|
+
step_name = parts[0].strip()
|
|
93
|
+
expected_behavior = parts[1].strip() if len(parts) > 1 else 'pass'
|
|
94
|
+
else:
|
|
95
|
+
step_name = step_text
|
|
96
|
+
expected_behavior = 'pass'
|
|
97
|
+
|
|
98
|
+
steps[step_name] = expected_behavior
|
|
99
|
+
continue
|
|
100
|
+
|
|
101
|
+
# If we already have steps and this line doesn't match any pattern,
|
|
102
|
+
# it might be the end of the steps section
|
|
103
|
+
if steps and not line.startswith(('1', '2', '3', '4', '5', '6', '7', '8', '9', '-', '*')):
|
|
104
|
+
break
|
|
105
|
+
|
|
106
|
+
return steps
|
|
107
|
+
|
|
108
|
+
def get_data_from_chunk(self, xml_filepath):
|
|
109
|
+
"""
|
|
110
|
+
Extract and structure data from a test chunk XML file.
|
|
111
|
+
|
|
112
|
+
Args:
|
|
113
|
+
xml_filepath: Path to the XML file containing a single test case
|
|
114
|
+
|
|
115
|
+
Returns:
|
|
116
|
+
Dictionary with test case data, or None if parsing fails
|
|
117
|
+
"""
|
|
118
|
+
try:
|
|
119
|
+
# Parse the XML file
|
|
120
|
+
tree = ET.parse(xml_filepath)
|
|
121
|
+
root = tree.getroot()
|
|
122
|
+
|
|
123
|
+
# Find the suite element
|
|
124
|
+
suite = root.find('.//suite')
|
|
125
|
+
if suite is None:
|
|
126
|
+
return {
|
|
127
|
+
'xml_file': xml_filepath,
|
|
128
|
+
'success': False,
|
|
129
|
+
'error': 'No suite element found in XML'
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
# Find the test element
|
|
133
|
+
test = suite.find('test')
|
|
134
|
+
if test is None:
|
|
135
|
+
return {
|
|
136
|
+
'xml_file': xml_filepath,
|
|
137
|
+
'success': False,
|
|
138
|
+
'error': 'No test element found in XML'
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
# Extract test attributes
|
|
142
|
+
test_name = test.get('name', '')
|
|
143
|
+
test_id = test.get('id', '')
|
|
144
|
+
|
|
145
|
+
# Extract test documentation if it exists
|
|
146
|
+
test_doc_element = test.find('doc')
|
|
147
|
+
test_doc = test_doc_element.text if test_doc_element is not None and test_doc_element.text else ''
|
|
148
|
+
|
|
149
|
+
# Extract source path from suite if it exists
|
|
150
|
+
test_source = suite.get('source', '')
|
|
151
|
+
|
|
152
|
+
# Extract steps from documentation
|
|
153
|
+
test_steps = self._extract_steps_from_documentation(test_doc)
|
|
154
|
+
|
|
155
|
+
# Get test status
|
|
156
|
+
status_element = test.find('status')
|
|
157
|
+
test_status = status_element.get('status', 'UNKNOWN') if status_element is not None else 'UNKNOWN'
|
|
158
|
+
|
|
159
|
+
# Extract index from filename (format: idx_name_id.xml)
|
|
160
|
+
filename = Path(xml_filepath).name
|
|
161
|
+
idx_match = re.match(r'^(\d+)_', filename)
|
|
162
|
+
idx = int(idx_match.group(1)) if idx_match else 0
|
|
163
|
+
|
|
164
|
+
# Check if corresponding log file exists
|
|
165
|
+
log_filepath = None
|
|
166
|
+
xml_path = Path(xml_filepath)
|
|
167
|
+
log_filename = xml_path.stem + '_log.html'
|
|
168
|
+
potential_log = xml_path.parent / log_filename
|
|
169
|
+
if potential_log.exists():
|
|
170
|
+
log_filepath = str(potential_log)
|
|
171
|
+
|
|
172
|
+
# Build result dictionary
|
|
173
|
+
result = {
|
|
174
|
+
'index': idx,
|
|
175
|
+
'test_name': test_name,
|
|
176
|
+
'test_id': test_id,
|
|
177
|
+
'status': test_status,
|
|
178
|
+
'documentation': test_doc,
|
|
179
|
+
'steps': test_steps,
|
|
180
|
+
'source': test_source,
|
|
181
|
+
'xml_file': str(xml_filepath),
|
|
182
|
+
'success': True
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
# Add log file if it exists
|
|
186
|
+
if log_filepath:
|
|
187
|
+
result['log_file'] = log_filepath
|
|
188
|
+
|
|
189
|
+
return result
|
|
190
|
+
|
|
191
|
+
except ET.ParseError as e:
|
|
192
|
+
return {
|
|
193
|
+
'xml_file': str(xml_filepath),
|
|
194
|
+
'success': False,
|
|
195
|
+
'error': f'XML parsing error: {str(e)}'
|
|
196
|
+
}
|
|
197
|
+
except Exception as e:
|
|
198
|
+
return {
|
|
199
|
+
'xml_file': str(xml_filepath),
|
|
200
|
+
'success': False,
|
|
201
|
+
'error': f'Error reading chunk: {str(e)}'
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
def get_data_from_chunks(self, folder_path):
|
|
205
|
+
"""
|
|
206
|
+
Collect data from all XML chunk files in a folder.
|
|
207
|
+
|
|
208
|
+
This function scans a folder for XML files, calls get_data_from_chunk
|
|
209
|
+
for each file, and returns a list of all results.
|
|
210
|
+
|
|
211
|
+
Args:
|
|
212
|
+
folder_path: Path to the folder containing XML chunk files
|
|
213
|
+
|
|
214
|
+
Returns:
|
|
215
|
+
List of dictionaries, each containing data from one chunk XML file.
|
|
216
|
+
Returns empty list if folder doesn't exist or contains no XML files.
|
|
217
|
+
"""
|
|
218
|
+
results = []
|
|
219
|
+
|
|
220
|
+
# Convert to Path object
|
|
221
|
+
folder = Path(folder_path)
|
|
222
|
+
|
|
223
|
+
# Check if folder exists
|
|
224
|
+
if not folder.exists():
|
|
225
|
+
print(f"Error: Folder does not exist: {folder_path}")
|
|
226
|
+
return results
|
|
227
|
+
|
|
228
|
+
if not folder.is_dir():
|
|
229
|
+
print(f"Error: Path is not a directory: {folder_path}")
|
|
230
|
+
return results
|
|
231
|
+
|
|
232
|
+
# Find all XML files in the folder
|
|
233
|
+
xml_files = sorted(folder.glob('*.xml'))
|
|
234
|
+
|
|
235
|
+
if not xml_files:
|
|
236
|
+
print(f"Warning: No XML files found in {folder_path}")
|
|
237
|
+
return results
|
|
238
|
+
|
|
239
|
+
print(f"Found {len(xml_files)} XML files in {folder_path}")
|
|
240
|
+
|
|
241
|
+
# Process each XML file
|
|
242
|
+
for xml_file in xml_files:
|
|
243
|
+
print(f" Processing: {xml_file.name}")
|
|
244
|
+
chunk_data = self.get_data_from_chunk(str(xml_file))
|
|
245
|
+
results.append(chunk_data)
|
|
246
|
+
|
|
247
|
+
# Print status
|
|
248
|
+
if chunk_data.get('success', False):
|
|
249
|
+
print(f" ✓ {chunk_data.get('test_name', 'Unknown')} - {chunk_data.get('status', 'Unknown')}")
|
|
250
|
+
else:
|
|
251
|
+
print(f" ✗ Error: {chunk_data.get('error', 'Unknown error')}")
|
|
252
|
+
|
|
253
|
+
return results
|
|
254
|
+
|
|
255
|
+
def split_to_chunks(self, output_xml_path, output_dir="chunked_results"):
|
|
256
|
+
"""
|
|
257
|
+
Extract each test case from output.xml into separate XML files
|
|
258
|
+
and generate HTML reports using rebot.
|
|
259
|
+
|
|
260
|
+
Args:
|
|
261
|
+
output_xml_path: Path to the output.xml file
|
|
262
|
+
output_dir: Directory to store extracted test results
|
|
263
|
+
"""
|
|
264
|
+
# Create output directory if it doesn't exist
|
|
265
|
+
output_path = Path(output_dir)
|
|
266
|
+
output_path.mkdir(exist_ok=True)
|
|
267
|
+
|
|
268
|
+
# Parse the XML file
|
|
269
|
+
tree = ET.parse(output_xml_path)
|
|
270
|
+
root = tree.getroot()
|
|
271
|
+
|
|
272
|
+
# Find all test cases
|
|
273
|
+
test_cases = []
|
|
274
|
+
for suite in root.findall('.//suite'):
|
|
275
|
+
for test in suite.findall('test'):
|
|
276
|
+
test_cases.append((suite, test))
|
|
277
|
+
|
|
278
|
+
print(f"Found {len(test_cases)} test cases")
|
|
279
|
+
|
|
280
|
+
# Extract each test case
|
|
281
|
+
for idx, (suite, test) in enumerate(test_cases, 1):
|
|
282
|
+
test_name = test.get('name')
|
|
283
|
+
test_id = test.get('id')
|
|
284
|
+
|
|
285
|
+
# Create a safe filename
|
|
286
|
+
safe_name = test_name.replace(' ', '_').replace('/', '_').replace('\\', '_')
|
|
287
|
+
xml_filename = f"{idx}_{safe_name}_{test_id}.xml"
|
|
288
|
+
xml_filepath = output_path / xml_filename
|
|
289
|
+
|
|
290
|
+
print(f"\n[{idx}/{len(test_cases)}] Processing: {test_name}")
|
|
291
|
+
|
|
292
|
+
# Create a new XML document with only this test case
|
|
293
|
+
new_root = ET.Element('robot', root.attrib)
|
|
294
|
+
|
|
295
|
+
# Create a new suite element with the test case
|
|
296
|
+
new_suite = ET.SubElement(new_root, 'suite')
|
|
297
|
+
new_suite.attrib = suite.attrib.copy()
|
|
298
|
+
|
|
299
|
+
# Copy suite source if it exists
|
|
300
|
+
for source in suite.findall('source'):
|
|
301
|
+
new_suite.append(copy.deepcopy(source))
|
|
302
|
+
|
|
303
|
+
# Copy suite setup if exists (use deepcopy to avoid moving elements)
|
|
304
|
+
for setup in suite.findall('kw[@type="SETUP"]'):
|
|
305
|
+
new_suite.append(copy.deepcopy(setup))
|
|
306
|
+
|
|
307
|
+
# Add the test case (use deepcopy to avoid moving the element)
|
|
308
|
+
new_suite.append(copy.deepcopy(test))
|
|
309
|
+
|
|
310
|
+
# Copy suite teardown if exists (use deepcopy to avoid moving elements)
|
|
311
|
+
for teardown in suite.findall('kw[@type="TEARDOWN"]'):
|
|
312
|
+
new_suite.append(copy.deepcopy(teardown))
|
|
313
|
+
|
|
314
|
+
# Copy suite documentation if exists
|
|
315
|
+
for doc in suite.findall('doc'):
|
|
316
|
+
new_suite.append(copy.deepcopy(doc))
|
|
317
|
+
|
|
318
|
+
# Don't copy suite status - it will be recalculated by rebot based on test status
|
|
319
|
+
|
|
320
|
+
# Add statistics
|
|
321
|
+
stats = ET.SubElement(new_root, 'statistics')
|
|
322
|
+
|
|
323
|
+
# Total statistics
|
|
324
|
+
total = ET.SubElement(stats, 'total')
|
|
325
|
+
test_status = test.find('status').get('status')
|
|
326
|
+
pass_count = '1' if test_status == 'PASS' else '0'
|
|
327
|
+
fail_count = '1' if test_status == 'FAIL' else '0'
|
|
328
|
+
skip_count = '1' if test_status == 'SKIP' else '0'
|
|
329
|
+
|
|
330
|
+
ET.SubElement(total, 'stat', {
|
|
331
|
+
'pass': pass_count,
|
|
332
|
+
'fail': fail_count,
|
|
333
|
+
'skip': skip_count
|
|
334
|
+
}).text = 'All Tests'
|
|
335
|
+
|
|
336
|
+
# Tag statistics
|
|
337
|
+
tag_stats = ET.SubElement(stats, 'tag')
|
|
338
|
+
for tag in test.findall('tag'):
|
|
339
|
+
ET.SubElement(tag_stats, 'stat', {
|
|
340
|
+
'pass': pass_count,
|
|
341
|
+
'fail': fail_count,
|
|
342
|
+
'skip': skip_count
|
|
343
|
+
}).text = tag.text
|
|
344
|
+
|
|
345
|
+
# Suite statistics
|
|
346
|
+
suite_stats = ET.SubElement(stats, 'suite')
|
|
347
|
+
ET.SubElement(suite_stats, 'stat', {
|
|
348
|
+
'name': suite.get('name'),
|
|
349
|
+
'id': suite.get('id'),
|
|
350
|
+
'pass': pass_count,
|
|
351
|
+
'fail': fail_count,
|
|
352
|
+
'skip': skip_count
|
|
353
|
+
})
|
|
354
|
+
|
|
355
|
+
# Add errors element (empty)
|
|
356
|
+
ET.SubElement(new_root, 'errors')
|
|
357
|
+
|
|
358
|
+
# Write the XML file
|
|
359
|
+
new_tree = ET.ElementTree(new_root)
|
|
360
|
+
ET.indent(new_tree, space=' ')
|
|
361
|
+
new_tree.write(xml_filepath, encoding='UTF-8', xml_declaration=True)
|
|
362
|
+
|
|
363
|
+
print(f" ✓ Created XML: {xml_filepath}")
|
|
364
|
+
|
|
365
|
+
# Generate HTML report using rebot
|
|
366
|
+
# html_filename = f"{safe_name}_{test_id}.html"
|
|
367
|
+
log_filename = f"{idx}_{safe_name}_{test_id}_log.html"
|
|
368
|
+
# html_filepath = output_path / html_filename
|
|
369
|
+
log_filepath = output_path / log_filename
|
|
370
|
+
|
|
371
|
+
try:
|
|
372
|
+
cmd = [
|
|
373
|
+
'rebot',
|
|
374
|
+
'--output', 'NONE',
|
|
375
|
+
'--log', str(log_filepath),
|
|
376
|
+
'--name', test_name,
|
|
377
|
+
'--NoStatusRC', # Don't set return code based on test status
|
|
378
|
+
str(xml_filepath)
|
|
379
|
+
]
|
|
380
|
+
|
|
381
|
+
result = subprocess.run(
|
|
382
|
+
cmd,
|
|
383
|
+
capture_output=True,
|
|
384
|
+
text=True,
|
|
385
|
+
check=False
|
|
386
|
+
)
|
|
387
|
+
|
|
388
|
+
# With --NoStatusRC, rebot returns 0 on success regardless of test results
|
|
389
|
+
# Only non-zero codes indicate actual errors (invalid data, missing files, etc.)
|
|
390
|
+
if result.returncode == 0:
|
|
391
|
+
print(f" ✓ Generated log: {log_filepath}")
|
|
392
|
+
else:
|
|
393
|
+
print(f" ✗ Failed to generate report (exit code: {result.returncode})")
|
|
394
|
+
if result.stderr:
|
|
395
|
+
print(f" Error: {result.stderr}")
|
|
396
|
+
|
|
397
|
+
except FileNotFoundError:
|
|
398
|
+
print(f" ✗ Error: rebot command not found. Please install robotframework.")
|
|
399
|
+
except Exception as e:
|
|
400
|
+
print(f" ✗ Error generating report: {str(e)}, index number = {idx}")
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""
|
|
2
|
+
robotframework-LogXML2Chunks
|
|
3
|
+
|
|
4
|
+
A library for extracting individual test cases from Robot Framework output.xml
|
|
5
|
+
into separate chunks with individual HTML reports.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from .LogXML2Chunks import LogXML2Chunks
|
|
9
|
+
|
|
10
|
+
__version__ = '1.0.0'
|
|
11
|
+
__author__ = 'Artur Jadach'
|
|
12
|
+
|
|
13
|
+
__all__ = ['LogXML2Chunks']
|
LogXML2Chunks/cli.py
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Command-line interface for robotframework-LogXML2Chunks.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import argparse
|
|
7
|
+
import sys
|
|
8
|
+
from pathlib import Path
|
|
9
|
+
from .LogXML2Chunks import LogXML2Chunks
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def main():
|
|
13
|
+
"""Main entry point for the command-line interface."""
|
|
14
|
+
parser = argparse.ArgumentParser(
|
|
15
|
+
description='Extract individual test cases from Robot Framework output.xml',
|
|
16
|
+
formatter_class=argparse.RawDescriptionHelpFormatter,
|
|
17
|
+
epilog="""
|
|
18
|
+
Examples:
|
|
19
|
+
# Basic usage
|
|
20
|
+
%(prog)s output.xml
|
|
21
|
+
|
|
22
|
+
# Specify output directory
|
|
23
|
+
%(prog)s output.xml --output-dir my_chunks
|
|
24
|
+
|
|
25
|
+
# Show version
|
|
26
|
+
%(prog)s --version
|
|
27
|
+
"""
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
parser.add_argument(
|
|
31
|
+
'input_xml',
|
|
32
|
+
type=str,
|
|
33
|
+
help='Path to Robot Framework output.xml file'
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
parser.add_argument(
|
|
37
|
+
'-o', '--output-dir',
|
|
38
|
+
type=str,
|
|
39
|
+
default='chunked_results',
|
|
40
|
+
help='Output directory for chunked results (default: chunked_results)'
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
parser.add_argument(
|
|
44
|
+
'-v', '--version',
|
|
45
|
+
action='version',
|
|
46
|
+
version='%(prog)s 1.0.0'
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
parser.add_argument(
|
|
50
|
+
'--verbose',
|
|
51
|
+
action='store_true',
|
|
52
|
+
help='Enable verbose output'
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
args = parser.parse_args()
|
|
56
|
+
|
|
57
|
+
# Validate input file exists
|
|
58
|
+
input_path = Path(args.input_xml)
|
|
59
|
+
if not input_path.exists():
|
|
60
|
+
print(f"Error: Input file '{args.input_xml}' not found.", file=sys.stderr)
|
|
61
|
+
sys.exit(1)
|
|
62
|
+
|
|
63
|
+
if not input_path.is_file():
|
|
64
|
+
print(f"Error: '{args.input_xml}' is not a file.", file=sys.stderr)
|
|
65
|
+
sys.exit(1)
|
|
66
|
+
|
|
67
|
+
# Initialize chunker and process
|
|
68
|
+
try:
|
|
69
|
+
chunker = LogXML2Chunks()
|
|
70
|
+
results = chunker.split_to_chunks(
|
|
71
|
+
output_xml_path=str(input_path),
|
|
72
|
+
output_dir=args.output_dir
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
# Summary
|
|
76
|
+
print(f"\n{'='*70}")
|
|
77
|
+
print(f"Summary:")
|
|
78
|
+
print(f"{'='*70}")
|
|
79
|
+
print(f"Total test cases: {len(results)}")
|
|
80
|
+
|
|
81
|
+
successful = sum(1 for r in results if r['success'])
|
|
82
|
+
failed = len(results) - successful
|
|
83
|
+
|
|
84
|
+
print(f"Successfully processed: {successful}")
|
|
85
|
+
if failed > 0:
|
|
86
|
+
print(f"Failed: {failed}")
|
|
87
|
+
|
|
88
|
+
print(f"Output directory: {Path(args.output_dir).absolute()}")
|
|
89
|
+
|
|
90
|
+
if args.verbose:
|
|
91
|
+
print(f"\nDetailed Results:")
|
|
92
|
+
for result in results:
|
|
93
|
+
status_icon = "✓" if result['success'] else "✗"
|
|
94
|
+
print(f" {status_icon} [{result['index']}] {result['test_name']} - {result['status']}")
|
|
95
|
+
if not result['success']:
|
|
96
|
+
print(f" Error: {result.get('error', 'Unknown error')}")
|
|
97
|
+
|
|
98
|
+
# Exit with error code if any failed
|
|
99
|
+
sys.exit(0 if failed == 0 else 1)
|
|
100
|
+
|
|
101
|
+
except Exception as e:
|
|
102
|
+
print(f"Error: {str(e)}", file=sys.stderr)
|
|
103
|
+
if args.verbose:
|
|
104
|
+
import traceback
|
|
105
|
+
traceback.print_exc()
|
|
106
|
+
sys.exit(1)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
if __name__ == '__main__':
|
|
110
|
+
main()
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: robotframework-logxml2chunks
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Extract individual test cases from Robot Framework output.xml into separate chunks
|
|
5
|
+
Home-page: https://github.com/ajadach/robotframework-LogXML2Chunks
|
|
6
|
+
Author: Artur Jadach
|
|
7
|
+
Author-email: artur.k.ziolkowski@example.com
|
|
8
|
+
Keywords: robotframework testing automation xml log chunks
|
|
9
|
+
Classifier: Development Status :: 4 - Beta
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Topic :: Software Development :: Testing
|
|
12
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Framework :: Robot Framework
|
|
20
|
+
Classifier: Framework :: Robot Framework :: Library
|
|
21
|
+
Requires-Python: >=3.7
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
License-File: LICENSE
|
|
24
|
+
Requires-Dist: robotframework>=4.0
|
|
25
|
+
Provides-Extra: dev
|
|
26
|
+
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
27
|
+
Requires-Dist: pytest-cov>=4.0; extra == "dev"
|
|
28
|
+
Dynamic: author
|
|
29
|
+
Dynamic: author-email
|
|
30
|
+
Dynamic: classifier
|
|
31
|
+
Dynamic: description
|
|
32
|
+
Dynamic: description-content-type
|
|
33
|
+
Dynamic: home-page
|
|
34
|
+
Dynamic: keywords
|
|
35
|
+
Dynamic: license-file
|
|
36
|
+
Dynamic: provides-extra
|
|
37
|
+
Dynamic: requires-dist
|
|
38
|
+
Dynamic: requires-python
|
|
39
|
+
Dynamic: summary
|
|
40
|
+
|
|
41
|
+
# robotframework-LogXML2Chunks
|
|
42
|
+
|
|
43
|
+
A Python library for extracting individual test cases from Robot Framework output.xml files into separate chunks with individual HTML reports.
|
|
44
|
+
|
|
45
|
+
## Features
|
|
46
|
+
|
|
47
|
+
- 📦 Split large Robot Framework output.xml into individual test case chunks
|
|
48
|
+
- 📊 Generate separate HTML log reports for each test case
|
|
49
|
+
- 🔍 Extract test documentation and structured steps
|
|
50
|
+
- 📝 Preserve test metadata (index, test_name, test_id, status, documentation, steps, source, xml_file, success)
|
|
51
|
+
- 🎯 Data collected from XML files can be made available to reporting systems such as Polarion, qTest, Jira, etc.
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## Installation
|
|
55
|
+
|
|
56
|
+
### From PyPI (when published)
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
pip install robotframework-logxml2chunks
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### From source
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
git clone https://github.com/ajadach/robotframework-LogXML2Chunks.git
|
|
66
|
+
cd robotframework-LogXML2Chunks
|
|
67
|
+
pip install -e .
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Usage
|
|
71
|
+
|
|
72
|
+
### As a Python Library
|
|
73
|
+
|
|
74
|
+
```python
|
|
75
|
+
from LogXML2Chunks import LogXML2Chunks
|
|
76
|
+
|
|
77
|
+
# Initialize the chunker
|
|
78
|
+
chunker = LogXML2Chunks()
|
|
79
|
+
|
|
80
|
+
# Split output.xml into chunks
|
|
81
|
+
chunker.split_to_chunks(
|
|
82
|
+
output_xml_path='output.xml',
|
|
83
|
+
output_dir='chunked_results'
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
# Read data from chunks XML
|
|
87
|
+
from pathlib import Path
|
|
88
|
+
chunks_folder = Path(__file__).parent / 'chunks'
|
|
89
|
+
data = chunker.get_data_from_chunks(chunks_folder)
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### As a Command Line Tool
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
# Basic usage
|
|
96
|
+
logxml2chunks output.xml
|
|
97
|
+
|
|
98
|
+
# Specify output directory
|
|
99
|
+
logxml2chunks output.xml --output-dir my_chunks
|
|
100
|
+
|
|
101
|
+
# Show help
|
|
102
|
+
logxml2chunks --help
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Output Structure
|
|
106
|
+
|
|
107
|
+
Each test case generates:
|
|
108
|
+
- `{index}_{test_name}_{test_id}.xml` - Individual test XML file
|
|
109
|
+
- `{index}_{test_name}_{test_id}_log.html` - HTML log report
|
|
110
|
+
|
|
111
|
+
The `split_to_chunks()` method returns a list of dictionaries with:
|
|
112
|
+
```python
|
|
113
|
+
{
|
|
114
|
+
'index': 1, # Test case index
|
|
115
|
+
'test_name': 'My Test Case', # Test name
|
|
116
|
+
'test_id': 's1-t1', # Test ID
|
|
117
|
+
'status': 'PASS', # Test status (PASS/FAIL/SKIP)
|
|
118
|
+
'documentation': '...', # Full documentation text
|
|
119
|
+
'steps': {...}, # Extracted steps dictionary
|
|
120
|
+
'source': '/path/to/test.robot', # Source file path
|
|
121
|
+
'xml_file': Path('...'), # Generated XML file path
|
|
122
|
+
'log_file': Path('...'), # Generated log file path
|
|
123
|
+
'success': True, # Whether generation succeeded
|
|
124
|
+
'error': None # Error message if failed
|
|
125
|
+
}
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Step Extraction
|
|
129
|
+
|
|
130
|
+
The library automatically extracts steps from test documentation that follow this format:
|
|
131
|
+
|
|
132
|
+
```robot
|
|
133
|
+
*** Test Cases ***
|
|
134
|
+
My Test Case
|
|
135
|
+
[Documentation] Test description
|
|
136
|
+
...
|
|
137
|
+
... *Steps*:
|
|
138
|
+
... 1. First step / Expected result
|
|
139
|
+
... 2. Second step / Expected result
|
|
140
|
+
...
|
|
141
|
+
... Summary Documentation
|
|
142
|
+
Log Test execution
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
Extracted steps format:
|
|
146
|
+
```python
|
|
147
|
+
{
|
|
148
|
+
'First step': 'Expected result',
|
|
149
|
+
'Second step': 'Expected result',
|
|
150
|
+
}
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
## Requirements
|
|
154
|
+
|
|
155
|
+
- Python >= 3.7
|
|
156
|
+
- robotframework >= 4.0
|
|
157
|
+
|
|
158
|
+
## Development
|
|
159
|
+
|
|
160
|
+
### Setup Development Environment
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
# Clone repository
|
|
164
|
+
git clone https://github.com/ajadach/robotframework-LogXML2Chunks.git
|
|
165
|
+
cd robotframework-LogXML2Chunks
|
|
166
|
+
|
|
167
|
+
# Install in development mode with dev dependencies
|
|
168
|
+
pip install -e ".[dev]"
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
### Run Tests
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
pytest tests/
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
## License
|
|
178
|
+
|
|
179
|
+
MIT License - see LICENSE file for details
|
|
180
|
+
|
|
181
|
+
## Contributing
|
|
182
|
+
|
|
183
|
+
Contributions are welcome! Please feel free to submit a Pull Request.
|
|
184
|
+
|
|
185
|
+
## Author
|
|
186
|
+
|
|
187
|
+
Artur Jadach
|
|
188
|
+
|
|
189
|
+
## Links
|
|
190
|
+
|
|
191
|
+
- GitHub: https://github.com/ajadach/robotframework-LogXML2Chunks
|
|
192
|
+
- Issues: https://github.com/ajadach/robotframework-LogXML2Chunks/issues
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
LogXML2Chunks/LogXML2Chunks.py,sha256=-xl8H5TP__ea-QN_iBqpeYR8OTQeMF-Yw238q8j0gUs,14743
|
|
2
|
+
LogXML2Chunks/__init__.py,sha256=2LlPvDiqK7uiK6T62mZ726BORbvN5X-E9zDyIRxmr9E,290
|
|
3
|
+
LogXML2Chunks/cli.py,sha256=AiPsRXnxAGyP2JCwCDO6mT6eDhGamC5S6i3ZFtU_14g,3030
|
|
4
|
+
robotframework_logxml2chunks-1.0.0.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
|
5
|
+
robotframework_logxml2chunks-1.0.0.dist-info/METADATA,sha256=i9OAbjf-z4gkjZM9NrqqvRemKVe-10DuVbUN5RHbzQo,5103
|
|
6
|
+
robotframework_logxml2chunks-1.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
7
|
+
robotframework_logxml2chunks-1.0.0.dist-info/entry_points.txt,sha256=XyZOgBE55TWZ3dwhnYJ5fkOE14jKbsYaEiAPfGG9xcY,57
|
|
8
|
+
robotframework_logxml2chunks-1.0.0.dist-info/top_level.txt,sha256=wHMKrGvH4bHbdqKiMgxMqjlZWLXMkQ15j-bnqWrXn6U,14
|
|
9
|
+
robotframework_logxml2chunks-1.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
LogXML2Chunks
|