示例#1
0
        public void CheckTimeCalc3()

        {
            SaveButton("Unapprove").Clicks(); WaitforIt(Properties.InactivePhase);

            SaveButton("Save").Clicks(); SavedElement.WaitUntil();

            Assert.That(SavedElement, Is.Not.Null); Assert.That(PlanStatus("New").Displayed);

            LogOut.Clicks(); WaitforIt(Properties.InactivePhase); Login("automationuser1", "eMos123!");

            RePlanLog(); WaitforIt(Properties.InactivePhase);

            EnterVolume2("600");

            PlanApprove("automationuser1");

            Assert.Multiple((() =>
            {
                Assert.That(TotalPLanT1.Text.Equals("2"));

                Assert.That(TotalPlanV1.Text.Equals("1600"));
            }
                             ));

            AddBtn.WaitUntil();

            VolumeEntry(.005, "Wondez", 1).WaitUntil();

            VolumeEntry(.005, "Wondez", 1).EnterText("200");

            VolumeEntry(.005, "Arroyo", 2).WaitUntil();

            VolumeEntry(.005, "Arroyo", 2).EnterText("300");
        }
示例#2
0
        public void PlanSave()
        {
            SaveButton("Save").Clicks(); WaitforIt(Properties.InactivePhase);

            SavedElement.WaitUntil();

            Assert.That(SavedElement, Is.Not.Null);

            Assert.That(PlanStatus("New").Displayed);

            LogOut.Clicks(); WaitforIt(Properties.InactivePhase);

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

            RePlanLog(); WaitforIt(Properties.InactivePhase); //WaitforIt(Properties.InactivePhase);
        }
示例#3
0
        public void LogApprove()

        {
            WaitforIt(Properties.InactivePhase); SaveButton("Approve Log").WaitUntil();

            SaveButton("Approve Log").Clicks();

            SavedElement.WaitUntil();

            Assert.That(SavedElement, Is.Not.Null);

            Assert.That(PlanStatus("Log Approved").Displayed);

            LogOut.Clicks(); WaitforIt(Properties.InactivePhase);

            Login("automationuser3", "eMos123!");

            RePlanLog(); WaitforIt(Properties.InactivePhase);
        }
示例#4
0
        public void PlanApprove(string userName)

        {
            WaitforIt(Properties.InactivePhase); SaveButton("Approve").WaitUntil();

            SaveButton("Approve").Clicks();

            SavedElement.WaitUntil();

            Assert.That(SavedElement, Is.Not.Null);

            Assert.That(PlanStatus("Plan Approved").Displayed);

            LogOut.Clicks(); WaitforIt(Properties.InactivePhase);

            Login(userName, "eMos123!");

            RePlanLog(); WaitforIt(Properties.InactivePhase);
        }
示例#5
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();
        }