mardi 25 juin 2019

Test suite result dependency in testNG

I have test suite xml file that contains other test suites in the following format:

<suite-files>
    <suite-file path="debug1.xml" />
    <suite-file path="debug2.xml"/>

</suite-files>

Is there a way to add a dependency between the two sub suites? Meaning if debug1.xml fails, then debug2.xml should not be executed at all. TestNG does not provide any dependency on the <suite-files> level. Can this be done, perhaps, through some listener?

Aucun commentaire:

Enregistrer un commentaire