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(); } }
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(); } }