public static void Init() { Maps.Version = "4"; HttpContext.Current = new HttpContext(new HttpRequest(null, "http://tempuri.org", null), new HttpResponse(null)); Maps.Instance.RemoveMap(ConfigStore.GetConfig().appname); }
private void OutputStatus() { Trace.WriteLine("CurrentKey " + ConfigStore.GetCurrentKey()); Trace.WriteLine("CurrentConfig " + JsonConvert.SerializeObject(ConfigStore.GetConfig())); Trace.WriteLine("GetEnvironmentVariables: "); foreach (DictionaryEntry de in Environment.GetEnvironmentVariables()) { Trace.WriteLine(string.Format(" {0} = {1}", de.Key, de.Value)); } }
public AutomationTestContext() { driver = new ChromeDriver(); tinyWait = new WebDriverWait(driver, new TimeSpan(0, 0, 60)); longWait = new WebDriverWait(driver, new TimeSpan(0, 5, 0)); //WebPage = "https://www.backand.com/apps/#/sign_up"; WebPage = GetWebPage(); hasIntercom = false; config = ConfigStore.GetConfig(); username = GetUserName(); AppName = GetAppName(); //logger = new Logger(); }