package com.aventstack.extentreports.testng.components; import org.testng.Assert; import org.testng.Reporter; import org.testng.SkipException; import org.testng.annotations.Test; import com.aventstack.extentreports.Status; public class ParallelTest1 extends ExtentTestNGReportBuilder { @Test(groups = "pass") public void passTest1() { Reporter.log("Started passTest"); try { Thread.sleep(2000); } catch(Exception e) { } Assert.assertEquals(Status.PASS, Status.PASS); } @Test(expectedExceptions = SkipException.class, groups = "skip") public void skipTest1() { try { Thread.sleep(2000); } catch(Exception e) { } throw new SkipException("Intentionally skipped test."); } @Test(expectedExceptions = RuntimeException.class, groups = "fail") public void failTest1() { try { Thread.sleep(2000); } catch(Exception e) { } throw new RuntimeException("Intentionally failed test."); } }