Is this possible to exclude classes in testng.xml?
I tried with
If you are using a xml file (testng.xml) to define the a suite, and since TestNG 6.14.3, you cannot exclude classes in the XML tag, a way to exclude a specific class inside a package is the following:
Effectively, instead of excluding the class (dtd does not allow it), all the methods of the class are excluded.