Exemplo n.º 1
0
        public void PARENT_MGT_UNLOCK_04()
        {
            // To lock this user
            bool flag = Pages.LoginPage.LockUserWith10TimesInvalidPasswordInput(driver, "*****@*****.**",
                                                                                "123", "Input Valid username and Invalid Password");

            // To login with Admin rights
            if (flag)
            {
                Pages.LoginPage.LoginAimy(driver, GlobalVariable.sloginUsername, GlobalVariable.sloginPassword);
                // To goto Parent Management Page
                ChromeBrowser.Goto("Parent/Management");
                if (Pages.ParentManagementPage.IsParentLocked(driver, "Attendance B, Hana"))
                {
                    Assert.AreEqual(true, Pages.ParentManagementPage.IsParentUnlocked(driver, "Attendance B, Hana"));
                }
            }
            Thread.Sleep(3000);
            Pages.ParentManagementPage.GoToEditLoginDetailPage(driver, "Attendance B, Hana");
            Pages.EditLoginPage.IsLoginEdited(driver, "12341234");
            Thread.Sleep(3000);
            Pages.ParentManagementPage.LogoutAdminPort(driver);
            Assert.AreEqual(true,
                            Pages.ParentManagementPage.LoginParentPortalDefault(driver, "*****@*****.**", true, "12341234"));
        }
 public void SpecialDay_Booking_01_For_One_Child_One_Day()
 {
     Pages.LoginPage.LoginAimy(driver, GlobalVariable.sloginUsername, GlobalVariable.sloginPassword);
     Common.TitleValidation(driver, "Validate Aimy Home Title", "Home - aimy plus");
     ChromeBrowser.Goto("Parent/Management");
     Common.TitleValidation(driver, "Validate Parent Management Title", "Parent Management - aimy plus");
     Pages.ParentManagementPage.FindTheParent(driver, "ema su");
     Common.WaitBySleeping(GlobalVariable.iShortWait);
     Pages.ParentManagementPage.GoToBookingInYourChildPage(driver);
     Assert.AreEqual(0, Common.TitleValidation(driver, "Validate Book In Your Child Title", "Booking - aimy plus"));
     Assert.AreEqual(true, Pages.SpecailDayBookingPage.SpecailDayBookingWizard(driver));
     Assert.AreEqual(true, Pages.BookingManagerPage.ValidationPendingBookingExist(driver, "ema1 ch"));
 }
Exemplo n.º 3
0
 public void Class_Booking_02_For_Two_Children_One_Day_Each_Class()
 {
     Pages.LoginPage.LoginAimy(driver, "*****@*****.**", "123123");
     Common.TitleValidation(driver, "Validate Aimy Home Title", "Home - aimy plus");
     ChromeBrowser.Goto("Parent/Management");
     Common.TitleValidation(driver, "Validate Parent Management Title", "Parent Management - aimy plus");
     Pages.ParentManagementPage.FindTheParent(driver, "*****@*****.**");
     Common.WaitBySleeping(GlobalVariable.iShortWait);
     Pages.ParentManagementPage.GoToBookingInYourChildPage(driver);
     Assert.AreEqual(0, Common.TitleValidation(driver, "Validate Book In Your Child Title", "Booking - aimy plus"));
     Pages.ClassBookingPage.ClassBookingWizard(driver, new string[] { "2016-10-17" }, true, true);
     Common.WaitBySleeping(GlobalVariable.iShortWait);
     Assert.AreEqual(true, Pages.BookingManagerPage.ValidationPendingBookingExist(driver, "Test Aimy"));
 }
Exemplo n.º 4
0
        public void PARENT_MGT_UNLOCK_02()
        {
            // To lock this user
            bool flag = Pages.LoginPage.LockUserWith10TimesInvalidPasswordInput(driver, "*****@*****.**",
                                                                                "123", "Input Valid username and Invalid Password");

            // To login with Admin rights
            if (flag)
            {
                Pages.LoginPage.LoginAimy(driver, GlobalVariable.sloginUsername, GlobalVariable.sloginPassword);
                // To goto Parent Management Page
                ChromeBrowser.Goto("Parent/Management");
                Assert.AreEqual(true, Pages.ParentManagementPage.IsParentLocked(driver, "Attendance B, Hana"));
            }
        }
        public void A_REG_PARENT_01()
        {
            var lib = new RegisteringParentPage_1();

            Pages.LoginPage.LoginAimy(driver, "*****@*****.**", "123123");
            Common.TitleValidation(driver, "Validate Aimy Home Title", "Home - aimy plus");
            //Parent Management --> http://uat.aimy.co.nz/Parent/Management
            ChromeBrowser.Goto("Parent/Management");
            Common.TitleValidation(driver, "Validate Parent Management Title", "Parent Management - aimy plus");

            //Register New Parent --> http://uat.aimy.co.nz/Parent/RegisterFromAdmin


            // Contact Details http://uat.aimy.co.nz/Parent/EditParentContact/30307?Wizard=False



            //lib.TC_CRE_PARENT_01_1_FillInformation();
            //lib.TC_CRE_PARENT_UI_01_1_Data_Required_Validation();
        }