How to exclude class in TestNG?

后端 未结 8 1225
囚心锁ツ
囚心锁ツ 2020-12-30 05:17

Is this possible to exclude classes in testng.xml?

I tried with


    

         


        
8条回答
  •  孤独总比滥情好
    2020-12-30 06:00

    I had the same issue ! Anyway, the solution i found is using the tag classes instead of packages this is my testng.xml file :

        
            
    
        
    

    in this case, only the class BrmsServicesFactoryTest tests are executed, the other class tests not executed !

    I hope this could help you !

提交回复
热议问题