Is this possible to exclude classes in testng.xml?
I tried with
Add (groups = { "anyName"}) right after tests you don't want to run, so it will be look like:
@Test(groups = { "group1"})
public void methodTestName(){..
}
And than in your xml file add just after test name="..."
Methods with (groups = { "group1"}) wont be runned.
This way works for me. Remember that you can't exclude Class, only package, methods and runs. Good luck