TestNGの(f)は無視試験

パッケージcom.course.testng.suite。

輸入org.testng.annotations.Test; 

パブリック クラスIgnoreTest { 
    @Test 
    公共 ボイドIGNORE1(){ 
        のSystem.out.printlnは( "1つの执行を無視します" )。
    } 

    (有効@Test = 公共 ボイドignore2(){ 
        のSystem.out.printlnは( "無視します" )。
    } 

    @Test(有効 = 公共 ボイドignore3(){ 
        のSystem.out.printlnは、( "3执行を無視します" )。
    }

}

 

 

おすすめ

転載: www.cnblogs.com/dwdw/p/11404912.html