Exemple #1
0
        public BaseTest()
        {
            FluentSession.EnableStickySession();
            Config.WaitUntilTimeout(TimeSpan.FromMilliseconds(1000));

            // Create Page Objects
            this.InputsPage    = new Pages.InputsPage(this);
            this.AlertsPage    = new Pages.AlertsPage(this);
            this.ScrollingPage = new Pages.ScrollingPage(this);
            this.TextPage      = new Pages.TextPage(this);
            this.DragPage      = new Pages.DragPage(this);
            this.SwitchPage    = new Pages.SwitchPage(this);

            // Default tests use chrome and load the site
            //FluentAutomation.SeleniumWebDriver.Bootstrap(SeleniumWebDriver.Browser.Chrome); //, SeleniumWebDriver.Browser.InternetExplorer, SeleniumWebDriver.Browser.Firefox);

            // Test browserstack local
            //WbTstr.Configure()
            //    .EnableDebug()
            //    .UseBrowserStackAsRemoteDriver()
            //    .SetBrowserStackBuildIdentifier(buildResultKey)
            //    .EnableBrowserStackLocal()
            //    .PreferedBrowser().IsChrome()
            //    .PreferedOperatingSystem().IsWindows()
            //    .PreferedScreenResolution().IsAny();

            WbTstr.Bootstrap();

            FluentSession.DisableStickySession();
            I.Open(SiteUrl);
        }
        public BaseTest()
        {
            FluentSession.EnableStickySession();
            Config.WaitUntilTimeout(TimeSpan.FromMilliseconds(1000));

            // Create Page Objects
            this.InputsPage    = new Pages.InputsPage(this);
            this.AlertsPage    = new Pages.AlertsPage(this);
            this.ScrollingPage = new Pages.ScrollingPage(this);
            this.TextPage      = new Pages.TextPage(this);
            this.DragPage      = new Pages.DragPage(this);
            this.SwitchPage    = new Pages.SwitchPage(this);

            // Default tests use chrome and load the site
            FluentAutomation.SeleniumWebDriver.Bootstrap(SeleniumWebDriver.Browser.Chrome);//, SeleniumWebDriver.Browser.InternetExplorer, SeleniumWebDriver.Browser.Firefox);
            I.Open(SiteUrl);
        }
Exemple #3
0
 public void Delete(int id)
 {
     FluentSession.GetCurrentSession().Delete(Find(id));
 }
Exemple #4
0
 public int Update(Beer beer)
 {
     FluentSession.GetCurrentSession().Update(beer);
     return(beer.Id);
 }
Exemple #5
0
 public int Create(Beer beer)
 {
     FluentSession.GetCurrentSession().Save(beer);
     return(beer.Id);
 }
Exemple #6
0
 public Beer Find(int id)
 {
     return(FluentSession.GetCurrentSession().Get <Beer>(id));
 }
Exemple #7
0
 public IList <Beer> FindAll()
 {
     return(FluentSession.GetCurrentSession().CreateCriteria <Beer>().SetCacheable(true).SetCacheMode(CacheMode.Normal).List <Beer>());
 }
 public FluentSkillRequest()
 {
     Session = new FluentSession(this);
     Context = new FluentContext(this);
 }
 public static void Cleanup()
 {
     FluentSession.DisableStickySession();
 }
 public static void Setup(TestContext context)
 {
     FluentAutomation.SeleniumWebDriver.Bootstrap(SeleniumWebDriver.Browser.Chrome, SeleniumWebDriver.Browser.InternetExplorer, SeleniumWebDriver.Browser.Firefox);
     FluentSession.EnableStickySession();
 }
Exemple #11
0
 public void Setup()
 {
     FluentSession.EnableStickySession();
     SeleniumWebDriver.Bootstrap(Browser.Chrome);
     Config.WaitUntilTimeout(TimeSpan.FromMilliseconds(1000));
 }
Exemple #12
0
 static NHibernateSessionPerRequest()
 {
     _sessionFactory = FluentSession.CreateSessionFactory();
 }