예제 #1
0
 public static IntegrationContext Load()
 {
     IntegrationContext context = new IntegrationContext
       {
     Url = "http://localhost:4944",
     AdminUser = "******",
     KnownUsers = new StringDictionary {{ "admin", "password"}},
     AuthConnectionString = "Data Source=(localdb)\\v11.0;Initial Catalog=devdb;Persist Security Info=True;Integrated Security=true",
     DataConnectionString = "Data Source=(localdb)\\v11.0;Initial Catalog=devdb;Persist Security Info=True;Integrated Security=true;MultipleActiveResultSets=true"
       };
       return context;
 }
예제 #2
0
        public virtual void FixtureSetup()
        {
            this.context = IntegrationContext.Load();
            this.d       = new FirefoxDriver();
            d.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(30));

            d.Url = context.Url + "/account/login";
            d.FindElement(By.Id("username")).SendKeys(context.AdminUser);
            d.FindElement(By.Id("password")).SendKeys(context.KnownUsers[context.AdminUser]);
            d.FindElement(By.Id("login")).Click();
            mainWindow = d.CurrentWindowHandle;
        }
예제 #3
0
        public static IntegrationContext Load()
        {
            IntegrationContext context = new IntegrationContext
            {
                Url        = "http://localhost:4944",
                AdminUser  = "******",
                KnownUsers = new StringDictionary {
                    { "admin", "password" }
                },
                AuthConnectionString = "Data Source=(localdb)\\v11.0;Initial Catalog=devdb;Persist Security Info=True;Integrated Security=true",
                DataConnectionString = "Data Source=(localdb)\\v11.0;Initial Catalog=devdb;Persist Security Info=True;Integrated Security=true;MultipleActiveResultSets=true"
            };

            return(context);
        }