Skip to content

Support for Robot XML reports

I am not able to parse the sample xml(output.xml) file generated from Robot Framework.

I want to create an output.html file from the xml file above but getting the below error.

Running the below command from terminal. junit2html output.xml output.html

Here is the error snippet I am getting.

Traceback (most recent call last):
  File "/usr/local/bin/junit2html", line 8, in <module>
    sys.exit(start())
  File "/Library/Python/3.9/site-packages/junit2htmlreport/runner.py", line 103, in start
    run(sys.argv[1:])
  File "/Library/Python/3.9/site-packages/junit2htmlreport/runner.py", line 90, in run
    report = parser.Junit(args[0])
  File "/Library/Python/3.9/site-packages/junit2htmlreport/parser.py", line 340, in __init__
    self.process()
  File "/Library/Python/3.9/site-packages/junit2htmlreport/parser.py", line 376, in process
    raise ParserError("could not find test suites in results xml")
junit2htmlreport.parser.ParserError: could not find test suites in results xml

Here is my sample file which I'm trying to convert into simple human readable HTML. output.xml