Exemplo n.º 1
0
        public static void BeforeAppiumTestFeature()
        {
            var browserName = ConfigurationManager.AppSettings["UI.Tests.Appium.capability.platformName"];

            objectRepoResource  = ConfigurationManager.AppSettings["UI.Tests.Object.Definitions.Path"];
            UiAutomationService = new AppiumUiAutomationServices();
            UiAutomationService.InitilizeTests(browserName, objectRepoResource);
        }
Exemplo n.º 2
0
        public static void BeforeSeleniumTestFeature()
        {
            var browserName = ConfigurationManager.AppSettings["UI.Tests.Target.Browser"];

            objectRepoResource  = ConfigurationManager.AppSettings["UI.Tests.Object.Definitions.Path"];
            UiAutomationService = new SeleniumUIAutomationService();
            var path      = Environment.GetEnvironmentVariable("PATH");
            var drivePath = ConfigurationManager.AppSettings["UI.Tests.Object.Drivers.Path"];

            if (!string.IsNullOrEmpty(drivePath))
            {
                Environment.SetEnvironmentVariable("PATH", path + ";" + drivePath);
            }
            UiAutomationService.InitilizeTests(browserName, objectRepoResource);
        }
Exemplo n.º 3
0
        public static void BeforeSeleniumTestFeature()
        {
            var browserName = ConfigurationManager.AppSettings["UI.Tests.Target.Browser"];

            objectRepoResource  = ConfigurationManager.AppSettings["UI.Tests.Object.Definitions.Path"];
            UiAutomationService = new SeleniumUIAutomationService();
            UiAutomationService.InitilizeTests(browserName, objectRepoResource);

            JObject currentFeature = new JObject();

            currentFeature["title"]                  = FeatureContext.Current.FeatureInfo.Title;
            currentFeature["description"]            = FeatureContext.Current.FeatureInfo.Description;
            currentFeature["tags"]                   = new JArray(FeatureContext.Current.FeatureInfo.Tags);
            currentFeature["scenarios"]              = new JArray();
            FeatureContext.Current["currentFeature"] = currentFeature;
            //System.IO.Directory.CreateDirectory(ConfigurationManager.AppSettings["UI.Tests.Reports.output.path"] + "\\videos\\");
        }
Exemplo n.º 4
0
 public static void BeforeSeleniumTestFeature()
 {
     var browserName = ConfigurationManager.AppSettings["UI.Tests.Target.Browser"];
     objectRepoResource = ConfigurationManager.AppSettings["UI.Tests.Object.Definitions.Path"];
     UiAutomationService = new SeleniumUIAutomationService();
     UiAutomationService.InitilizeTests(browserName, objectRepoResource);
 }
Exemplo n.º 5
0
 public static void BeforeAppiumTestFeature()
 {
     var browserName = ConfigurationManager.AppSettings["UI.Tests.Appium.capability.platformName"];
     objectRepoResource = ConfigurationManager.AppSettings["UI.Tests.Object.Definitions.Path"];
     UiAutomationService = new AppiumUiAutomationServices();
     UiAutomationService.InitilizeTests(browserName, objectRepoResource);
 }
Exemplo n.º 6
0
        public static void BeforeSeleniumTestFeature()
        {
            var browserName = ConfigurationManager.AppSettings["UI.Tests.Target.Browser"];
            objectRepoResource = ConfigurationManager.AppSettings["UI.Tests.Object.Definitions.Path"];
            UiAutomationService = new SeleniumUIAutomationService();
            UiAutomationService.InitilizeTests(browserName, objectRepoResource);

            JObject currentFeature = new JObject();
            currentFeature["title"] = FeatureContext.Current.FeatureInfo.Title;
            currentFeature["description"] = FeatureContext.Current.FeatureInfo.Description;
            currentFeature["tags"] = new JArray(FeatureContext.Current.FeatureInfo.Tags);
            currentFeature["scenarios"] = new JArray();
            FeatureContext.Current["currentFeature"] = currentFeature;
            //System.IO.Directory.CreateDirectory(ConfigurationManager.AppSettings["UI.Tests.Reports.output.path"] + "\\videos\\");
        }