# Is there an elegant way to handle suite-level preparation dependencies in Robot Framework?

**URL:** <https://forum.robotframework.org/t/is-there-an-elegant-way-to-handle-suite-level-preparation-dependencies-in-robot-framework/9467>\
**Category:** Uncategorized\
**Created:** [23 December 2025 10:28 UTC](https://forum.robotframework.org/t/is-there-an-elegant-way-to-handle-suite-level-preparation-dependencies-in-robot-framework/9467 "2025-12-23T10:28:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranitone](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@ranitone](https://forum.robotframework.org/u/ranitone)\
**Post date:** [23 December 2025 10:28 UTC](https://forum.robotframework.org/t/is-there-an-elegant-way-to-handle-suite-level-preparation-dependencies-in-robot-framework/9467/1 "2025-12-23T10:28:34Z")

</div>

Hi all,  
I’m working on a Robot Framework project with a structure like this:

`1.7.1 Suite 1 `

`├─ 1.7.1.1 Prepare`

`├─ 1.7.1.2 Test `

`└─ 1.7.1.4 Clean up `

`1.7.2 Suite 2 `

`├─ 1.7.2.1 Prepare `

`├─ 1.7.2.2 Test 2 `

`└─ 1.7.2.3 Clean_Up`

Each suite has its own **Prepare** sub-suite that sets up infrastructure before running tests. Currently, I use:

**Depends on suite 01 Prepare**

to enforce this dependency. The issue is that many suites share the same name (`01 Prepare`), which leads to ambiguous behavior and makes the setup fragile—especially when renaming or reorganizing folders.

**Question:**  
Is there an elegant, recommended way to achieve this in Robot Framework? Ideally:

- Avoid ambiguity when multiple suites have the same preparation name.

- Make the solution resilient to renames and folder changes.

- Keep the setup logic clean and maintainable for large projects.

Any advice or examples from your experience would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![vadurk](https://avatars.discourse-cdn.com/v4/letter/v/7993a0/32.png) [@vadurk](https://forum.robotframework.org/u/vadurk)\
**Post date:** [23 December 2025 14:42 UTC](https://forum.robotframework.org/t/is-there-an-elegant-way-to-handle-suite-level-preparation-dependencies-in-robot-framework/9467/2 "2025-12-23T14:42:51Z")

</div>

Hi,

I would suggest you reading about Suite initialization files in official robot framework user guide.

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [23 December 2025 15:02 UTC](https://forum.robotframework.org/t/is-there-an-elegant-way-to-handle-suite-level-preparation-dependencies-in-robot-framework/9467/3 "2025-12-23T15:02:36Z")

</div>

FYI - Here’s a link to the [Suite initialization files](https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#suite-initialization-files) that @vadurk mentioned.
