Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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));
            }
        }
Esempio n. 3
0
        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();
        }