public void ApproveInactiveStateOfCourseToActiveState()
        {
            //Select Course To Validate Inactive State To Active State
            Logger.LogMethodEntry("InstructorSearchCatalog",
                                  "ApproveInactiveStateOfCourseToActiveState",
                                  base.IsTakeScreenShotDuringEntryExit);
            //Create Page Class Object
            HEDGlobalHomePage hedGlobalHomepage = new HEDGlobalHomePage();

            //Approves Course in Active State
            hedGlobalHomepage.ApproveCoursePresentInAssignedToCopyState();
            Logger.LogMethodExit("InstructorSearchCatalog",
                                 "ApproveInactiveStateOfCourseToActiveState",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
示例#2
0
        public void DisplayOfEnrolledSectionInGlobalHomePage(Course.CourseTypeEnum courseTypeEnum)
        {
            //Section Display in Global Home Page
            Logger.LogMethodEntry("UserEnrollment",
                                  "DisplayOfEnrolledSectionInGlobalHomePage",
                                  base.IsTakeScreenShotDuringEntryExit);
            //Get Course From Memory
            Course course = Course.Get(courseTypeEnum);
            bool   isCourseVisibleInGlobalHomePage = new HEDGlobalHomePage().
                                                     GetCoursePresentInGlobalHomePage().Contains(course.SectionName);

            //Assert section displays in global home page
            Logger.LogAssertion("VerifySmsStudentEnrollInCourse", ScenarioContext.
                                Current.ScenarioInfo.Title, () => Assert.IsTrue(isCourseVisibleInGlobalHomePage));
            Logger.LogMethodExit("UserEnrollment",
                                 "DisplayOfEnrolledSectionInGlobalHomePage",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
示例#3
0
        public void VerifyTheCheckBoxStateOnUpgradePopup()
        {
            //Logger Enrty
            Logger.LogMethodEntry("GlobalHome", "VerifyTheCheckBoxStateOnUpgradePopup",
                                  base.IsTakeScreenShotDuringEntryExit);
            //Instance of HEDGlobalHomePage
            HEDGlobalHomePage hedGlobalHomePage = new HEDGlobalHomePage();

            //Assert the checkbox is enable on Upgrade Popup
            Logger.LogAssertion("VerifyOpenedPageTitle",
                                ScenarioContext.Current.ScenarioInfo.Title,
                                () => Assert.IsTrue(hedGlobalHomePage.
                                                    IsStatusOfKeepMeTestCourseCheckBoxEnabled()));
            //Close the popup window
            hedGlobalHomePage.CloseUpgradePopupWindow();
            //Logger Exit
            Logger.LogMethodExit("GlobalHome", "VerifyTheCheckBoxStateOnUpgradePopup",
                                 base.IsTakeScreenShotDuringEntryExit);
        }