You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered the following error when attempting to archive my report after upgrading Robot Framework to version 7.0
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/pwuser/.local/lib/python3.8/site-packages/test_archiver/output_parser.py", line 867, in
main()
File "/home/pwuser/.local/lib/python3.8/site-packages/test_archiver/output_parser.py", line 861, in main
build_number_cache = parse_xml(output_file, args.format, connection, config, build_number_cache)
File "/home/pwuser/.local/lib/python3.8/site-packages/test_archiver/output_parser.py", line 795, in parse_xml
parser.feed(buffer)
File "/usr/lib/python3.8/xml/sax/expatreader.py", line 217, in feed
self._parser.Parse(data, isFinal)
File "../Modules/pyexpat.c", line 407, in StartElement
File "/usr/lib/python3.8/xml/sax/expatreader.py", line 333, in start_element
self._cont_handler.startElement(name, AttributesImpl(attrs))
File "/home/pwuser/.local/lib/python3.8/site-packages/test_archiver/output_parser.py", line 86, in startElement
self.archiver.begin_log_message(attrs.getValue('level'), attrs.getValue('timestamp'))
File "/usr/lib/python3.8/xml/sax/xmlreader.py", line 293, in getValue
return self._attrs[name]
KeyError: 'timestamp'
It worked fine with the previous version (6.1.1) of Robot Framework. It appears that in the latest version, they have replaced "timestamp" with "time."
The text was updated successfully, but these errors were encountered:
When you run your tests you should add the option --legacy-output to get the output file in a format that is acceptable for TestArchiver until RF 7.0 support is added to TestArchiver
I encountered the following error when attempting to archive my report after upgrading Robot Framework to version 7.0
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/pwuser/.local/lib/python3.8/site-packages/test_archiver/output_parser.py", line 867, in
main()
File "/home/pwuser/.local/lib/python3.8/site-packages/test_archiver/output_parser.py", line 861, in main
build_number_cache = parse_xml(output_file, args.format, connection, config, build_number_cache)
File "/home/pwuser/.local/lib/python3.8/site-packages/test_archiver/output_parser.py", line 795, in parse_xml
parser.feed(buffer)
File "/usr/lib/python3.8/xml/sax/expatreader.py", line 217, in feed
self._parser.Parse(data, isFinal)
File "../Modules/pyexpat.c", line 407, in StartElement
File "/usr/lib/python3.8/xml/sax/expatreader.py", line 333, in start_element
self._cont_handler.startElement(name, AttributesImpl(attrs))
File "/home/pwuser/.local/lib/python3.8/site-packages/test_archiver/output_parser.py", line 86, in startElement
self.archiver.begin_log_message(attrs.getValue('level'), attrs.getValue('timestamp'))
File "/usr/lib/python3.8/xml/sax/xmlreader.py", line 293, in getValue
return self._attrs[name]
KeyError: 'timestamp'
It worked fine with the previous version (6.1.1) of Robot Framework. It appears that in the latest version, they have replaced "timestamp" with "time."
The text was updated successfully, but these errors were encountered: