Example #1
0
            public void Plan_Log()
            {
                WebDriverWait wait = new WebDriverWait(Properties.Driver, TimeSpan.FromSeconds(10));

                PlanLogTestAutomation automate = new PlanLogTestAutomation();

                //automate.Login("admin", "eMos123!");

                automate.Login("automationuser1", "eMos123!");

                automate.PlanLog();
            }
Example #2
0
            //[Test, Order(0)]


            public void Dashboard()
            {
                DashboardTestAutomation auto = new DashboardTestAutomation();

                PlanLogTestAutomation automate = new PlanLogTestAutomation();

                automate.Login("admin", "eMos123!");

                //operation.StoreSnap();

                //operation.ReStoreSnap();

                //automate.Login("superuser", "Ru55el.");

                //automate.Login("teammember1", "Ru55el.");

                //auto.ChangeDate("31", "August", "2016");
            }
Example #3
0
        public void DashboardShare()

        {
            ComplianceHeatMap(); WaitforIt(Properties.LittlePause);

            DashboardGear.Clicks(); AdminSettings.Clicks(); WaitforIt(Properties.LittlePause);

            CopyfromAdmin("Shared", "share").Clicks(); WaitforIt(Properties.LittlePause);

            DahsboardSelect("Shared").Clicks();

            SelectUser.SelectDropdown("Automation User 2");

            AddUser.Clicks(); SaveShare.Clicks();

            LogOut.Clicks();

            PlanLog.Login("automationuser2", "eMos123!"); WaitforIt(Properties.LittlePause);

            DashboardTab.Clicks();
        }
Example #4
0
            public void Initialize()
            {
                var options = new ChromeOptions();

                options.AddArgument("--start-maximized");

                options.AddUserProfilePreference("credentials_enable_service", false);

                options.AddUserProfilePreference("profile.password_manager_enabled", false);

                Properties.Driver = new ChromeDriver(options)
                {
                    Url = ConfigurationManager.AppSettings["local-url"]
                };

                //Properties.Driver = new ChromeDriver(options) { Url = ConfigurationManager.AppSettings["live-url"] };

                //Properties.driver = new ChromeDriver(options) {Url = "http://dashboard.emos.io"};

                PlanLogTestAutomation automate = new PlanLogTestAutomation();

                automate.Login("admin", "eMos123!");
            }