1.

How To Skip A @test Method From Execution In Testng?

Answer»

By using throw new SkipException()

Once SkipException() THROWN, remaining part of that test METHOD will not be executed and CONTROL will goes directly to NEXT test method execution.

  1. throw new SkipException("SKIPPING - This is not ready for testing ");

By using throw new SkipException()

Once SkipException() thrown, remaining part of that test method will not be executed and control will goes directly to next test method execution.



Discussion

No Comment Found