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

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

1 Like

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!

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.

See Jenkins Workflow supports what you want.

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.

1 Like