Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaks for robotframework version 7.0 #77

Open
masudparvez opened this issue Feb 5, 2024 · 1 comment
Open

Breaks for robotframework version 7.0 #77

masudparvez opened this issue Feb 5, 2024 · 1 comment

Comments

@masudparvez
Copy link

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."

@BjornAhmark
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants