要在使用TestNG完全执行套件后重新运行失败方法的类

时间:2018-08-08 07:32:10

标签: testng execution suite

任何人都可以帮助我找到一种方法,以便在执行一次套件后最后一起执行所有失败的测试类。

就像我有

    

<test name="Transaction Module" preserve-order="true" >
    <classes>
        <class name="com.uniteller.tests.ABC" />
        <class name="com.uniteller.tests.XYZ" />
    </classes>
</test>
<test name="Beneficiary Module" preserve-order="true" >
    <classes>
        <class name="com.uniteller.tests.PQR" />
        <class name="com.uniteller.tests.LMN" />
   </classes>
</test>

并且ABC和LMN类中存在故障,因此我想在执行一次套件后再次执行这两个类。

1 个答案:

答案 0 :(得分:0)

如果要在套件后使用testng-failed.xml执行所有失败的测试,请参见documentation

相关问题