Cannot merge outputs containing different root suites

HI all,

haven’t found anything about merging outputs from different root suites - maybe someone can help.
So i want to do a rebot --merge and i have 2 xml files from 2 different root suites. Now i see this error

Cannot merge outputs containing different root suites

From the first xml file i have this:

<suite id="s1" name="Robotframework" source="/opt/robotframework">
<suite id="s1-s1" name="Tasks" source="/opt/robotframework/tasks">

and the second xml file have this:

<suite id="s1" name="Tf-Mq">
<suite id="s1-s1" name="Tf-Mq" source="/opt/tf-mq">

Any ideas how to solve this?

Btw: I still use RF 6.1.1

Br,
Camil

solved:

I have to use the
--name "put your name here"

into my robot command to set a common name for all my different suites

Br,
Camil

5 Likes

Hi,

well i asume you have multiple RF report files you want to merge using rebot - right?
First you need to add the --name “here-is-your-name” to the "robot … " calls and NOT to “rebot” call.
So you should do something like: robot --name “robotframework”

You should create for all your robot runs each an “xml” report file e.g. you should add ro your robot call this: --outputDir /opt/robotframework/reports --output test1.xml
For your second robot you add: --outputDir /opt/robotframework/reports --output test2.xml

Now having 2 xml files you can you can use rebot with --merge like this:

rebot -o /opt/robotframework/reports/output.xml -l /opt/robotframework/reports/log.html -r /opt/robotframework/reports/report.html --merge /opt/robotframework/reports/test1.xml /opt/robotframework/reports/test2.xml

So the --name is only needed for “robot” not for “rebot”

Br,
Camil