Esempio n. 1
0
        public void House_E2E()
        {
            // Login as School Adminstrator
            SeleniumHelper.Login(SeleniumHelper.iSIMSUserType.SchoolAdministrator);
            Wait.WaitForDocumentReady();
            // Navigate to Manage Houses Screen
            AutomationSugar.NavigateMenu("Tasks", "School Groups", "Manage Houses");
            Wait.WaitForDocumentReady();
            //Adding New House
            var houseTriplet    = new ManageHouseTriplet();
            var houseDetailPage = houseTriplet.Create();

            houseDetailPage.HouseFullName  = "To Be Deleted House";
            houseDetailPage.HouseShortName = "HS_Name";
            //Saving new house
            houseDetailPage.Save();
            Assert.AreEqual(false, houseDetailPage.IsSuccessMessageDisplayed(), "House record saved");
            //Searching the House
            houseTriplet.SearchCriteria.SearchByHouseName = ("To Be Deleted House");
            var searchResult    = houseTriplet.SearchCriteria.Search().FirstOrDefault();
            var manageHousePage = searchResult.Click <ManageHouseDetailPage>();

            //Deleting the House
            houseTriplet.Delete();
        }
Esempio n. 2
0
        public void Add_House(string[] basicDetails)
        {
            // Login as School Adminstrator
            SeleniumHelper.Login(SeleniumHelper.iSIMSUserType.SchoolAdministrator);
            Wait.WaitForDocumentReady();
            // Navigate to Manage Houses Screen
            AutomationSugar.NavigateMenu("Tasks", "School Groups", "Manage Houses");
            Wait.WaitForDocumentReady();
            //Adding New House
            var houseTriplet    = new ManageHouseTriplet();
            var houseDetailPage = houseTriplet.Create();

            houseDetailPage.HouseFullName  = basicDetails[0];
            houseDetailPage.HouseShortName = basicDetails[1];
            houseDetailPage.HouseColour    = basicDetails[2];
            //Saving new house
            houseDetailPage.Save();
            Assert.AreEqual(false, houseDetailPage.IsSuccessMessageDisplayed(), "House record saved");
        }
Esempio n. 3
0
        public void House_FullName_Validation()
        {
            // Login as School Adminstrator
            SeleniumHelper.Login(SeleniumHelper.iSIMSUserType.SchoolAdministrator);
            Wait.WaitForDocumentReady();
            // Navigate to Manage Houses Screen
            AutomationSugar.NavigateMenu("Tasks", "School Groups", "Manage Houses");
            Wait.WaitForDocumentReady();
            //Adding New House
            var houseTriplet    = new ManageHouseTriplet();
            var houseDetailPage = houseTriplet.Create();

            houseDetailPage.HouseFullName  = "";
            houseDetailPage.HouseShortName = "HS_Name";
            //Saving new house
            houseDetailPage.Save();
            var ValidationWarning = SeleniumHelper.Get(ManageHouseDetailPage.ValidationWarning);

            Assert.IsTrue(ValidationWarning.Displayed, "Validation Warning");
        }