Skip to content

Breaks for robotframework version 7.0 #77

@masudparvez

Description

@masudparvez

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions