Merge html files issue using Rebot

Hi guys, I’m trying to merge the results from 2 xml output files (rebot --merge lst_output_01.xml lst_output_02.xml) but I get the follow issue:

Any idea how can I fix this?

With other xml files I also getting the follow issue:

Probably different versions of rebot?

Try:

python -m robot.rebot --merge lst_output_01.xml lst_output_02.xml

Not the case, I try your command but no success. Thanks

Hi,

Does a simple file rebot (with for example just another output.xml file) works?

rebot  --output test.xml your file.xml

And what is the RF version, and rebot as well?

Regards
Charlie

Hi Charlie
Your command not work, same error…
Seams that the issue is related with the xml file.
The RF version is 6.0.1 and I’m using Rebot from the RF version installed.
Thanks

output.xml has been changed between 6 and 7.0 releases. Check your output.xml files and there should be a xml tag at the top of the file which says something along the lines:

<robot generator="Robot 7.0.1 (Python 3.11.4 on win32)" generated="2024-09-02T13:52:29.896816" rpa="false" schemaversion="5">

generator attribute highlights which version of robot was used to to generate that file and also schemaversion plays into that.

Typically you would use the same version of rebot as the one that was used to generate the output.xml.

However, if you need to run newer robot, you can use --legacyoutput command line argument to robot itself so that the output.xml will be compatible with older robot/rebot. But as said, that needs to be decided before you run your tests/output.xml is generated.

Hi Rasjani
I have installed the follow versions


and version of output.xml is the follow:

<?xml version="1.0" encoding="UTF-8"?>

How can I run rebot to match with the output.xml file?

Thanks

Version of output.xml file:

Issue solved.
The problem was related with the version of Rebot that was not compatible with version of RF output.xml.
Thanks Rasjani for the support.

This means you have different installations, like I first suggested :slight_smile:

You are right Helio, my mistake. Thanks for the support.

1 Like