private void ExecuteSauceCleanupSteps() { var isPassed = TestContext.CurrentContext.Result.Outcome.Status == TestStatus.Passed; SauceReporter.LogTestStatus(isPassed); //SetTestStatusUsingApi(isPassed); SauceReporter.LogMessage("Test finished execution"); SauceReporter.LogMessage(TestContext.CurrentContext.Result.Message); }
public void CleanUpAfterEveryTestMethod() { if (_isUsingSauceLabs) { var isPassed = TestContext.CurrentContext.Result.Outcome.Status == TestStatus.Passed; SauceReporter.LogTestStatus(isPassed); SauceReporter.LogMessage("Test finished execution"); SauceReporter.LogMessage(TestContext.CurrentContext.Result.Message); } Driver?.Quit(); }