# Robot Framewrok Reporting

**URL:** <https://forum.robotframework.org/t/robot-framewrok-reporting/8650>\
**Category:** Robot Framework\
**Created:** [17 March 2025 04:11 UTC](https://forum.robotframework.org/t/robot-framewrok-reporting/8650 "2025-03-17T04:11:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GAURAV17](https://avatars.discourse-cdn.com/v4/letter/g/5daacb/32.png) [@GAURAV17](https://forum.robotframework.org/u/GAURAV17)\
**Post date:** [17 March 2025 04:11 UTC](https://forum.robotframework.org/t/robot-framewrok-reporting/8650/1 "2025-03-17T04:11:45Z")

</div>

Hi Team,

I am looking for help from community for one of My project tricky requirement given below.  
Is there any way we can create/generate separate log.html,Report.html for each scenario & also generate a consolidated report post all execution done.

Eg: TestFile.robot

_ **Test Cases** _

Scenario 1: Test case execution1  
Scenario 2: Test case execution2  
Scenario 3: Test case execution3

Once execution started , we should get reports as below.  
–Report one(Scenario 1)  
-------log.html  
-------report.html  
-------Screenshots.  
–Report two(Scenario 2)  
-------log.html  
-------report.html  
-------Screenshots.  
–Report three(Scenario 3)  
-------log.html  
-------report.html  
-------Screenshots.

Consolidated reports  
-log.html  
-report.html.  
-output.xml  
-screenshots.

Please let me know if anyone have any Solutions/Suggestion for above Thanks in Advance

Thanks,  
Gaurav

---

<div class="post-metadata">

**Author:** ![CharlieScene](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/charliescene/32/3484_2.png) [@CharlieScene](https://forum.robotframework.org/u/CharlieScene)\
**Post date:** [17 March 2025 05:45 UTC](https://forum.robotframework.org/t/robot-framewrok-reporting/8650/2 "2025-03-17T05:45:35Z")

</div>

Hi,

If you plan to execute all your suite/file with one robot command, the .xml and related files will be generated only at the end.

So a solution is to use rebot once execution is done to generate/split each report. For example based on test names or a tags you can add on each test.

If you really need each file during execution:

- Either run each test from a separate robot command, then _rebot --merge_ your files
- Or maybe use a listener to write real-time xml file but not sure about the possibilities.

Regards  
Charlie

---

<div class="post-metadata">

**Author:** ![GAURAV17](https://avatars.discourse-cdn.com/v4/letter/g/5daacb/32.png) [@GAURAV17](https://forum.robotframework.org/u/GAURAV17)\
**Post date:** [17 March 2025 06:48 UTC](https://forum.robotframework.org/t/robot-framewrok-reporting/8650/4 "2025-03-17T06:48:03Z")

</div>

Thanks @CharlieScene can you please help me with reboot command syntax which will help me to generate/split reports post all execution based on scenario/test name.

I have tried below one but no success  
Command:rebot --splitlog --outputdir ./logs --reportname scenario\_%{SCENARIO\_NAME}.html --logtitle “Scenario Log: %{SCENARIO\_NAME}” output.xml

---

<div class="post-metadata">

**Author:** ![rasjani](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@rasjani](https://forum.robotframework.org/u/rasjani)\
**Post date:** [17 March 2025 07:33 UTC](https://forum.robotframework.org/t/robot-framewrok-reporting/8650/5 "2025-03-17T07:33:28Z")

</div>

if one runs `rebot --help` - there’s following example:

```python
# Using options. Note that this is one long command split into multiple lines.
$ rebot --log smoke_log.html --report smoke_report.html --include smoke
        --ReportTitle "Smoke Tests" --ReportBackground green:yellow:red
        --TagStatCombine tag1ANDtag2 path/to/myoutput.xml

```

That sort of hints towards that you need to have unique **tags** for split.

So, add a uniq tag for each testcase and then run rebot for each tag against the original output.xml. eg, its the `--include smoke` that will add only tests/suites that have `smoke` as tag that will be included in the new report.
