Exemplo n.º 1
0
        public void Dispose()
        {
            if (!string.IsNullOrEmpty(TestContext.CurrentContext.Test.MethodName))
            {
                if (TestContext.CurrentContext.Result.Outcome != ResultState.Success)
                {
                    Screenshot();
                }
                else
                {
                    Reporting.TestPassed();
                }

                Selenium.Dispose();
            }
        }
Exemplo n.º 2
0
 public void TestFailed(string message)
 {
     Reporting.TestFailed(message, TakeScreenshot());
 }
Exemplo n.º 3
0
 public void StartUp()
 {
     Reporting.Setup();
     Reporting.CreateTest();
 }
Exemplo n.º 4
0
 public void StepPassScreenshot(string message)
 {
     Reporting.StepPassedWithScreenshot(message, TakeScreenshot());
 }