public void TearDown() { if (TestContext.CurrentContext.Test.Name.Contains("1")) { ExtentBase.GetTargetTest().AssignCategory("Category1"); } else if (TestContext.CurrentContext.Test.Name.Contains("2")) { ExtentBase.GetTargetTest().AssignCategory("Category2"); } ExtentBase.FlushExtent(); }
public void methodTestExtent2() { Console.WriteLine("test Stared"); ExtentBase.GetTargetTest().Log(AventStack.ExtentReports.Status.Fail, "Loggers"); }