예제 #1
0
        public TestContext()
        {
            TestListConfiguration testListConfig = ( TestListConfiguration )System.Configuration.ConfigurationManager.GetSection("testListConfigurationGroup/testListConfiguration");
            List <string>         testCases      = new List <string>(testListConfig.TestData.TestIds);

            this.TestCases = this.TestCases = ParseAndVerifyTestIds(testCases);

            this.Configuration = TaskConfigurationFactory.GetConfiguration();

            this.DriversPerTestCase = new Dictionary <MethodInfo, List <DesiredCapabilities> >();
            foreach (var testcase in this.TestCases)
            {
                this.DriversPerTestCase[testcase] = new List <DesiredCapabilities> {
                    DriverFactory.GetChromeDriverCapabilities()
                };
            }
        }