Dear All,

I am trying to automate Selenium WebDriver TestNG and I am a beginner in this. I want to ensure that I am able to execute 15 test cases within a single .java class. I have annotated all the 15 required testcases as @Test. My objective is to skip one of the test cases which is according to the business requirement. I am trying to perform the same objective from @BeforeMethod and using SkipException. However I am unable to do so since using the skipexception all the required test cases are getting skipped instead of the one which I want it to be executed. Can you please suggest some innovative ways to resolve the issue ?

Wish you all a very happy new year.

Thanks and regards with best wishes