How to run TestNG Suites/suite-files in sequential in kubernetes pods

3/19/2020

I want to run multiple suits together but one after the other. Like for below TestNG testsuite, in a kubernetes pod both A and B are triggered in parallel but I want A to finish first and only then should B run. Because running in parallel alter the asserts at run time as both use common database table.

<suite name="ABC Tests" thread-count="1" verbose="2">
    <suite-files>
        <suite-file path="A.xml"></suite-file>
        <suite-file path="B.xml"></suite-file>
    </suite-files>
</suite>

Could not find something like depends-on for suite-files. So looking for expertise here.

-- san
kubernetes-pod
testing
testng

0 Answers