# Shared Flows

The **Shared Flows** feature allows users to re-use test flows in different Test Suites and Test Plans.

The common use case for Shared Flows is when you have several login test flows. For example, the email/password login that should be used in some Test Suites and the login via a social media platform that should be used in others. To configure this in Loadmill:

* Navigate to **Shared Flows.**

![](https://684333474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LHDbUNdi3wPd9vSolzU%2Fuploads%2Fgit-blob-7f74db3383d13d6adf98378aed8b9416c995b764%2FScreenshot%20\(39\).png?alt=media)

* Click on the "+ NEW SHARED FLOW" button if you would like to create a login flow from scratch OR "IMPORT SHARED FLOW" in case you already have it in JSON format.
* We recommend using the "DRY RUN" option first to test your flow and then Publish it.
* Now you can go to the Test Suite where you would like to use it => the Login tab => click CHANGE LOGIN FLOW SOURCE and select your shared flow.

![](https://684333474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LHDbUNdi3wPd9vSolzU%2Fuploads%2Fgit-blob-dac399ff9aa133e2c844de044fd95de94af2c621%2FScreenshot%20\(41\).png?alt=media)

Thus, the shared flow will run before every test flow where the Login checkbox is checked.

Then, you can always track which Test Suites using your Shared Flows.

![](https://684333474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LHDbUNdi3wPd9vSolzU%2Fuploads%2Fgit-blob-0b234981d456d8906abf3440e82ef5302ef40433%2FScreenshot%20\(40\).png?alt=media)

The COLLABORATORS tab allows to manage access to the shared flow so that only specific team members will be able to edit it.

![](https://684333474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LHDbUNdi3wPd9vSolzU%2Fuploads%2Fgit-blob-3775c7fa8e654413f95bca08396f2f03172f811a%2FScreenshot%20\(100\).png?alt=media)

By the way, you can also use shared flows to define [Before & After](https://docs.loadmill.com/api-testing/test-suite-editor/before-and-after-hooks) hooks and [Setup Flow](https://docs.loadmill.com/api-testing/test-plan#test-plan-navigation-panel).
