예제 #1
0
 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();
 }
예제 #2
0
 public void methodTestExtent2()
 {
     Console.WriteLine("test Stared");
     ExtentBase.GetTargetTest().Log(AventStack.ExtentReports.Status.Fail, "Loggers");
 }