# How can I set just one Suite Teardown after all executions done?

**URL:** https://forum.robotframework.org/t/how-can-i-set-just-one-suite-teardown-after-all-executions-done/6135
**Category:** Pabot
**Created:** [30 August 2023 16:07 UTC](https://forum.robotframework.org/t/how-can-i-set-just-one-suite-teardown-after-all-executions-done/6135 "2023-08-30T16:07:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![hrnaltnts](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/hrnaltnts/32/1220_2.png) [@hrnaltnts](https://forum.robotframework.org/u/hrnaltnts)
#### Post date: [30 August 2023 16:07 UTC](https://forum.robotframework.org/t/how-can-i-set-just-one-suite-teardown-after-all-executions-done/6135/1 "2023-08-30T16:07:48Z")

</div>

Hello,  
I have executed a data-driven (5) scenario with Pabot in parallel. I would like to execute after all once suite teardown for merging custom Excel files. But, unfortunately suite teardown works for each scenario like test teardown. How can I handle that?

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

Thanks in advance!

---

<div class="post-metadata">

### Author: ![hrnaltnts](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/hrnaltnts/32/1220_2.png) [@hrnaltnts](https://forum.robotframework.org/u/hrnaltnts)
#### Post date: [30 August 2023 16:19 UTC](https://forum.robotframework.org/t/how-can-i-set-just-one-suite-teardown-after-all-executions-done/6135/2 "2023-08-30T16:19:12Z")

</div>

:))  
I have find the solution, pls check the [https://pabot.org/PabotLib.html#valuetransfer](https://Library)

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

```
Suite Teardown Run Teardown Only Once Merge Parallel Excel Reports

```

---

<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: [30 August 2023 16:29 UTC](https://forum.robotframework.org/t/how-can-i-set-just-one-suite-teardown-after-all-executions-done/6135/3 "2023-08-30T16:29:00Z")

</div>

pabotlib has “Run Only Once” … Havent used it but if you have suite teardown on all of your suites, that teardown has is executed only once after all the suites are done if the docs are correct.

However, as im writing this - for the past week ive been tackling exactly the same sort of issue; i have N amount of testsuites that should generate _single_ excel file.

I run pabot.pabot.main\_program() with correct arguments – after that, all my temporary “excel” files are in single output directory and then i run separate robot task suite with robot.run() to combine the files in the output directory of the pabot run…

All the “code” is still robot - only thing different with this sort of approach is that instead of running pabot or robot command, i run a python script that coordinates all of above steps in correct order with correct cli arguments…

---

<div class="post-metadata">

### Author: ![hrnaltnts](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/hrnaltnts/32/1220_2.png) [@hrnaltnts](https://forum.robotframework.org/u/hrnaltnts)
#### Post date: [31 August 2023 14:26 UTC](https://forum.robotframework.org/t/how-can-i-set-just-one-suite-teardown-after-all-executions-done/6135/4 "2023-08-31T14:26:35Z")

</div>

Thanks for info, this run only keyword work effective. You can try it, i have handle with this one.
