コード例 #1
0
 public EventReportingDriver(IWebDriver parentDriver) : base(parentDriver)
 {
     report = ReportManager.Instance;
     this.ExceptionThrown      += ExceptionThrownHandler;
     this.ElementClicked       += ElementClickedHandler;
     this.ElementClicking      += ElementClickingHandler;
     this.FindElementCompleted += FindElementCompletedHandler;
 }
コード例 #2
0
        public void BeforeAll()
        {
            report = ReportManager.Instance;

            TestContext.TestAdapter testAdapter = TestContext.CurrentContext.Test;

            testInfo = new ReporterTestInfo();

            testInfo.TestName = testAdapter.Name;
            testInfo.FullyQualifiedTestClassName = testAdapter.FullName;

            testInfo.Status = DifidoTestStatus.success;

            testStopwatch = new Stopwatch();
            testStopwatch.Start();

            report.StartTest(testInfo);
        }