mercredi 5 juillet 2017

Is declaration order of test and suite-files preserved in TestNG during running?

I have a suite like this:

<suite name="mySuite">
    <test name="myTest">
        <classes>
            <class name="Test"/>
        </classes>
    </test>
    <suite-files>
        <suite-file path="x.xml"/>
    </suite-files>
</suite>

Is the order of execution always the declaration order?
Will my test always be executed before my suite-file?

What about using <suite name="mySuite" preserve-order="true">? Does it work for elements having different tag names (test vs suite-files)?

Aucun commentaire:

Enregistrer un commentaire