testng:忽略特定测试的套件级别监听器?

时间:2014-03-01 20:51:16

标签: testng

我希望能够在套件级别指定一个监听器,但是告诉一些测试不要使用监听器。

如何做到这一点?感谢

Testng.xml文件

<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<suite name="Beta Tests" verbose="2" parallel="classes" thread-count="2">

<listeners>
<listener class-name="com.progr.util.WebDriverListener"></listener>
</listeners>
<tests>

我不想使用侦听器的示例测试

@Test(dataProvider = "DP_MVPLoanApprovedMediumAmount", groups = {
            "regression", "smoke"}, /*dependsOnMethods = {"MVP_LoanApprovedMediumAmount"},*/
     invocationCount = 1, priority = 26, enabled = true)
    public void MVP_CheckStatusInDB(String testNum, String ScenarioName) throws Exception {
        StringBuilder softAssertions = new StringBuilder();

0 个答案:

没有答案