Exemple #1
0
 public static void BeforeFeature1(
     TestThreadContext testThreadContext,
     FeatureContext featureContext)
 {
     testThreadContext.Set(new Stopwatch(), nameof(TestThreadStopWatch));
     testThreadContext.Get <Stopwatch>(nameof(TestThreadStopWatch)).Start();
 }
Exemple #2
0
        public static void BeforeFeature3(
            TestThreadContext testThreadContext,
            FeatureContext featureContext)
        {
            var driver = DriverInitializer.StartWebDriver(
                ExecutionMode.LOCAL,
                BrowserType.CHROME,
                new ChromeOptions(),
                Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location));

            testThreadContext.Set(driver, "Driver");
        }