how to exclude a test in testng code example
Example: excluding test in testng
By adding the exclude tag in the testing.xml
<classes>
<class name="TestCaseName">
<methods>
<exclude name="TestMethodNameToExclude"/>
</methods>
</class>
</classes>