Is there currently a way to disable TestNG test based on a condition
I know you can currently disable test as so in TestNG:
@Test(en
A Third option also can be Assumption Assumptions for TestNG - When a assumption fails, TestNG will be instructed to ignore the test case and will thus not execute it.
You can use this example: example