public void Dispose() { if (!string.IsNullOrEmpty(TestContext.CurrentContext.Test.MethodName)) { if (TestContext.CurrentContext.Result.Outcome != ResultState.Success) { Screenshot(); } else { Reporting.TestPassed(); } Selenium.Dispose(); } }
public void TestFailed(string message) { Reporting.TestFailed(message, TakeScreenshot()); }
public void StartUp() { Reporting.Setup(); Reporting.CreateTest(); }
public void StepPassScreenshot(string message) { Reporting.StepPassedWithScreenshot(message, TakeScreenshot()); }