package TestNG;
import org.testng.Assert;
import org.testng.SkipException;
import org.testng.annotations.*;
import org.testng.asserts.*;
// Pass Fail Skip Test Example
public class FailPassSkipTest {
@Test
public void Test1() {
System.out.println("Test - 1");
//Assert.assertEquals("Test1", "Shahnawaz");
//Assert.assertEquals(1, 2);
//Assert.assertTrue(4<1);
Assert.assertFalse(4<1);
}
@Test
public void Test2() {
System.out.println("Test - 2");
throw new SkipException("Test 2 is not configured");
}
@Test
public void Test3() {
System.out.println("Test - 3");
}
}
Thank you very much
ReplyDelete