Ejemplo n.º 1
0
        public void Setup()
        {
            MyWebDriver driver = new MyWebDriver();

            driver.GetDriver();
            _driver          = driver;
            _testCaseHandler = new TestCaseHandler(_driver);
            report           = new BasicReport();
            report.StartReport();
            _screenShotGenerator = new ScreenshotGenerator(_driver);
        }
Ejemplo n.º 2
0
        public static void ForEachCase(TestCaseHandler handler)
        {
            var types = Assembly.GetExecutingAssembly().GetTypes();

            foreach (var type in types)
            {
                if (type.IsSubclassOf(typeof(TestCase)))
                {
                    var items = type.Name.Split('_');
                    handler(type, items[1], items[0]);
                }
            }
        }