Exemple #1
0
        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);
        }
Exemple #2
0
 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();
 }