# Need to set dependencies between the test suites in a test collection where the test collection is set to parallel

**URL:** <https://forum.katalon.com/t/need-to-set-dependencies-between-the-test-suites-in-a-test-collection-where-the-test-collection-is-set-to-parallel/138673>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [July 26, 2024, 7:55am UTC](https://forum.katalon.com/t/need-to-set-dependencies-between-the-test-suites-in-a-test-collection-where-the-test-collection-is-set-to-parallel/138673 "2024-07-26T07:55:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![manisha.dixit](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/manisha.dixit/32/23869_2.png) [@manisha.dixit](https://forum.katalon.com/u/manisha.dixit)\
**Post date:** [July 26, 2024, 7:55am UTC](https://forum.katalon.com/t/need-to-set-dependencies-between-the-test-suites-in-a-test-collection-where-the-test-collection-is-set-to-parallel/138673/1 "2024-07-26T07:55:20Z")

</div>

Need to set dependencies between the test suites in a test collection where the test collection is set to parallel

I have 16 suites in a test collection where

6-11 test suites need to wait, till the 1-5 gets completed and 12-16 needs to wait till the 6-11 gets completed.

Note: the test collection is set to be in parallel mod

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/katalon/original/3X/d/5/d55596ab02785a255798e87ede769734747b30c4.svg) [@system](https://forum.katalon.com/u/system)\
**Post date:** [July 26, 2024, 7:55am UTC](https://forum.katalon.com/t/need-to-set-dependencies-between-the-test-suites-in-a-test-collection-where-the-test-collection-is-set-to-parallel/138673/2 "2024-07-26T07:55:21Z")

</div>

Hi there,

Thank you very much for your topic. Please note that it may take a little while before a member of our community or from Katalon team responds to you.

Thanks!

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [July 26, 2024, 8:44pm UTC](https://forum.katalon.com/t/need-to-set-dependencies-between-the-test-suites-in-a-test-collection-where-the-test-collection-is-set-to-parallel/138673/3 "2024-07-26T20:44:08Z")

</div>

> 6-11 test suites need to wait, till the 1-5 gets completed and 12-16 needs to wait till the 6-11 gets completed.

Test Suite Collection does not support it.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [July 26, 2024, 8:46pm UTC](https://forum.katalon.com/t/need-to-set-dependencies-between-the-test-suites-in-a-test-collection-where-the-test-collection-is-set-to-parallel/138673/4 "2024-07-26T20:46:42Z")

</div>

See Jenkins Workflow supports what you want.

> **[Running Stages in Parallel With Jenkins Workflow / Pipeline | Baeldung on Ops](https://www.baeldung.com/ops/running-stages-in-parallel-jenkins-workflow-pipeline)**
>
> Learn how to run multiple stages in parallel with a Jenkins workflow or pipeline job.

```auto
pipeline {
    agent ....
    stages {
        stage('First quater') {
            parallel {
                stage('Test1') {
                    steps {
                        sh ./katalonc -testSuitePath="Test Suites/TS1" -runMode=console -projectPath="/path/to/your/project.prj"...
                    }
                }
                stage('Test2') {
                    steps {
                        sh ./katalonc -testSuitePath="Test Suites/TS2" -runMode=console -projectPath="/path/to/your/project.prj"...
                    }
                }
                stage('Test3') {
                    steps {
                        sh ./katalonc -testSuitePath="Test Suites/TS3" -runMode=console -projectPath="/path/to/your/project.prj"...
                    }
                }
                stage('Test4') {
                    steps {
                        sh ./katalonc -testSuitePath="Test Suites/TS4" -runMode=console -projectPath="/path/to/your/project.prj"...
                    }
                }
                stage('Test5') {
                    steps {
                        sh ./katalonc -testSuitePath="Test Suites/TS5" -runMode=console -projectPath="/path/to/your/project.prj"...
                    }
                }
            }
        }
        stage('Interrude') {
            parallel {
                stage('Second quater') {
                    steps {
                        sh ./katalonc -testSuitePath="Test Suites/TS6" ...
                        sh ./katalonc -testSuitePath="Test Suites/TS7" ...
                        sh ./katalonc -testSuitePath="Test Suites/TS8" ...
                        sh ./katalonc -testSuitePath="Test Suites/TS9" ...
                    }
                }
                stage('Third quater') {
                    steps {
                        sh ./katalonc -testSuitePath="Test Suites/TS10" ...
                        sh ./katalonc -testSuitePath="Test Suites/TS11" ...
                    }
                }
            }
        }
        stage('Final quater') {
            steps {
                sh ./katalonc -testSuitePath="Test Suites/TS13" ...
                sh ./katalonc -testSuitePath="Test Suites/TS14" ...
                sh ./katalonc -testSuitePath="Test Suites/TS15" ...
                sh ./katalonc -testSuitePath="Test Suites/TS16" ...
                sh ./katalonc -testSuitePath="Test Suites/TS17" ...
            }
        }
    }
}

```

You want to use Jenkins, or some CI/CD servers of that sort. Of course, you need to purchace sufficient number of Kataln Runtime Engine.

> 6-11 test suites need to wait, till the 1-5 gets completed and 12-16 needs to wait till the 6-11 gets completed.

In the above sample code, you want at most 5 “sh ./katalonc” commands to run in parallel. Then, you need to purchase 5 KRE licenses at least.

* * *

I don’t know if Katalon offers any products (TestCloud? TestOps?) that can do the same as Jenkins.
