# Exit robot execution in suite teardown in robot framework

**URL:** <https://forum.robotframework.org/t/exit-robot-execution-in-suite-teardown-in-robot-framework/4101>\
**Category:** Robot Framework\
**Created:** [29 June 2022 10:15 UTC](https://forum.robotframework.org/t/exit-robot-execution-in-suite-teardown-in-robot-framework/4101 "2022-06-29T10:15:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bk-user](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/bk-user/32/1446_2.png) [@bk-user](https://forum.robotframework.org/u/bk-user)\
**Post date:** [29 June 2022 10:15 UTC](https://forum.robotframework.org/t/exit-robot-execution-in-suite-teardown-in-robot-framework/4101/1 "2022-06-29T10:15:54Z")

</div>

HI,

I want to exit robot execution in suite teardown so that I can see log.html and report html saved in local directory. Below is my code. How should I quit execution so that log.html and report.html will be available. I have to send those html report from robot script from suite teardown or test teardown

Suite Cleanup  
Close All Browsers  
Log To Console ${SUITE\_STATUS}

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [29 June 2022 11:54 UTC](https://forum.robotframework.org/t/exit-robot-execution-in-suite-teardown-in-robot-framework/4101/2 "2022-06-29T11:54:20Z")

</div>

That is not possible, the log and report are produced only after the test run.  
What you can do is to have another script to be ran after the test. Or use `rebot` to produce the report and log (always after the output.xml) have been produced).

---

<div class="post-metadata">

**Author:** ![bk-user](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/bk-user/32/1446_2.png) [@bk-user](https://forum.robotframework.org/u/bk-user)\
**Post date:** [29 June 2022 12:11 UTC](https://forum.robotframework.org/t/exit-robot-execution-in-suite-teardown-in-robot-framework/4101/3 "2022-06-29T12:11:12Z")

</div>

@HelioGuilherme66 How to add dependent test cases in robot. Depends on test giving error to me.  
Successfully installed robotframework-dependencylibrary-3.0.1

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/0/019deb5f3f984238256291093fc10b432b90207c.png)

Test1  
Log The rest of the keywords in this test will run as normal.

Send\_Reports\_html\_to\_S3  
Depends on test Test1  
Log To Console Sending html report

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [29 June 2022 12:32 UTC](https://forum.robotframework.org/t/exit-robot-execution-in-suite-teardown-in-robot-framework/4101/4 "2022-06-29T12:32:15Z")

</div>

First time I see mention of that library.  
The error looks related to using old method to generate documentation (libdoc).  
That is only a problem on your IDE, and should not be a problem when running test.

---

<div class="post-metadata">

**Author:** ![bk-user](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/bk-user/32/1446_2.png) [@bk-user](https://forum.robotframework.org/u/bk-user)\
**Post date:** [30 June 2022 05:18 UTC](https://forum.robotframework.org/t/exit-robot-execution-in-suite-teardown-in-robot-framework/4101/5 "2022-06-30T05:18:43Z")

</div>

@HelioGuilherme66

I have created two test cases. Once my first test case is completed, I want to get log.html and report.html

How to get testcase results while execution is in progress?  
In short I should be able to get result of first test case in second test case.

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [30 June 2022 08:00 UTC](https://forum.robotframework.org/t/exit-robot-execution-in-suite-teardown-in-robot-framework/4101/6 "2022-06-30T08:00:02Z")

</div>

> [@bk-user](#):
>
> How to get testcase results while execution is in progress?

This is possible, but not in the final format of log.html and report.html. You have to have a listener to get the end test execution status and then call some other tool to obtain the log and report.

Maybe you need a different solution, like just having the xUnit.xml output and decide from it.
