YahooNewsTest.java
------------------------
public class YahooNewsTest {
@BeforeTest
public void xyz()
{
System.out.println("Before Executing Yahoo News test");
throw new SkipException("Skiping this test case because of some reason"); //To Skip Test case.
}
Result.
---------------
Before Executing Yahoo News test
SKIPPED CONFIGURATION: @BeforeTest xyz
SKIPPED: testnews
===============================================
Default test
Tests run: 1, Failures: 0, Skips: 1
Configuration Failures: 0, Skips: 1
===============================================
===============================================
Default suite
Total tests run: 1, Failures: 0, Skips: 1
Configuration Failures: 0, Skips: 1
[quote:11xio0u7]Is it suppose to be displayed in to report for any test case which is skipped by user ?
[/quote:11xio0u7]
yes it is supposed to show it in reports.