Exemplo n.º 1
0
 public static void AfterScenario()
 {
     if (test.Status == Status.Pass)
     {
         test.Pass(ScenarioContext.Current.ScenarioInfo.Title + " has passed!");
     }
     else
     {
         test.Fail("!");
     }
     extent.Flush();
     ScreenShot.TakeScreenShot();
     Driver.Session.Quit();
 }
Exemplo n.º 2
0
 public static void AfterDataDrivenTest(string testName)
 {
     ScreenShot.TakeScreenShot(testName);
     Driver.Session.Quit();
 }