# "Suite Setup" is running for every test when pabot is used

**URL:** <https://forum.robotframework.org/t/suite-setup-is-running-for-every-test-when-pabot-is-used/6852>\
**Category:** Robot Framework\
**Created:** [16 February 2024 09:29 UTC](https://forum.robotframework.org/t/suite-setup-is-running-for-every-test-when-pabot-is-used/6852 "2024-02-16T09:29:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SubhaRobot](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@SubhaRobot](https://forum.robotframework.org/u/SubhaRobot)\
**Post date:** [16 February 2024 09:29 UTC](https://forum.robotframework.org/t/suite-setup-is-running-for-every-test-when-pabot-is-used/6852/1 "2024-02-16T09:29:03Z")

</div>

Hi,

I am trying to run multiple tests in parallel which are present inside a single robot file. Using pabot testlevelsplit for same.

I have used “Suite Setup” keyword which reads data from a json file.  
When i don’t use pabot “Suite Setup” run only once, but when i use pabot the Suite Setup is running for each test present inside the robot file.  
Is there any way i can make the Suite Setup to run only once?

Thanks!

---

<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:** [16 February 2024 10:32 UTC](https://forum.robotframework.org/t/suite-setup-is-running-for-every-test-when-pabot-is-used/6852/2 "2024-02-16T10:32:27Z")

</div>

Here’s a documentation for PabotLib:

[https://pabot.org/PabotLib.html](https://pabot.org/PabotLib.html)

> **Execution affecting keywords**  
> These allow control to when and where a keyword will be executed.  
> **Run Setup Only Once**  
> [keyword, \*args]  
> Runs a setup keyword with args only once at the first possible moment when an execution has gone through this step. The executions after that will skip this step. If the first execution fails, all others will also.  
> **Run Teardown Only Once**  
> [keyword, \*args]  
> Runs a teardown keyword with args only once after all executions have gone throught this step in the last possible moment. Note it is important to not have any conditions preventing from executing this step as that may prevent this keyword from working correctly.

so keyword `Run Setup Only Once` is the one you could be looking at.

---

<div class="post-metadata">

**Author:** ![SubhaRobot](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@SubhaRobot](https://forum.robotframework.org/u/SubhaRobot)\
**Post date:** [16 February 2024 11:56 UTC](https://forum.robotframework.org/t/suite-setup-is-running-for-every-test-when-pabot-is-used/6852/3 "2024-02-16T11:56:21Z")

</div>

Thanks @rasjani , will try this
