Ejemplo n.º 1
0
        public BaseTest(OneTimeSetupTearDownFixture testSuite, ITestOutputHelper output)
        {
            _output    = (TestOutputHelper)output;
            _testSuite = testSuite;

            testContainer = new TestResultContainer();

            var type       = _output.GetType();
            var testMember = type.GetField("test", BindingFlags.Instance | BindingFlags.NonPublic);
            var test       = (ITest)testMember.GetValue(_output);

            testContainer.uuid        = test.TestCase.UniqueID;
            testContainer.description = test.TestCase.UniqueID;

            _testSuite.lifeCycle.StartTestContainer(testContainer);

            _testSuite.driver.Manage().Window.Maximize();
        }