public void Cleanup()
 {
     if (Driver != null)
     {
         var passed = Equals(TestContext.CurrentContext.Result.Outcome, ResultState.Success);
         // log the result to SauceLabs
         SauceLabsStatusNotifier.NotifyStatus(Driver.GetSessionId(), passed);
         PrintSessionDetails();
         Driver.Quit();
     }
 }
예제 #2
0
 public void Cleanup()
 {
     if (Driver != null)
     {
         var passed = TestContext.CurrentContext.Result.Status == TestStatus.Passed;
         // log the result to SauceLabs
         SauceLabsStatusNotifier.NotifyStatus(Driver.GetSessionId(), passed);
         PrintSessionDetails();
         Driver.Quit();
     }
 }