private void SetDefaultTestParameters() { TestParameters.CurrentScenario = this.GetType().Name; TestParameters.IterationMode = IterationOptions.RunAllIterations; string browser = ConfigurationManager.AppSettings["DefaultBrowser"].ToLower(); TestParameters.Browser = (Browser)Enum.Parse(typeof(Browser), browser); TestParameters.BrowserVersion = ConfigurationManager.AppSettings["DefaultBrowserVersion"]; TestParameters.Platform = PlatformFactory.GetPlatform(ConfigurationManager.AppSettings["DefaultPlatform"]); }
private void SetDefaultTestParameters() { string browser = ConfigurationManager.AppSettings["Browser"].ToLower(); testParameters.Browser = (Browser)Enum.Parse(typeof(Browser), browser); testParameters.BrowserVersion = ConfigurationManager.AppSettings["DefaultBrowserVersion"]; if (testParameters.IterationMode == null) { testParameters.IterationMode = IterationOptions.RunAllIterations; } //if (testParameters.Browser!=null) //{ // string browser = ConfigurationManager.AppSettings["Browser"].ToLower(); // testParameters.Browser = (Browser)Enum.Parse(typeof(Browser), browser); // testParameters.BrowserVersion = ConfigurationManager.AppSettings["DefaultBrowserVersion"]; //} if (testParameters.Platform == null) { testParameters.Platform = PlatformFactory.GetPlatform(ConfigurationManager.AppSettings["DefaultPlatform"]); } }