Esempio n. 1
0
        public void VerifyTheActivityDetailsInActivityResultByStudentReport(string activityName,
                                                                            Course.CourseTypeEnum courseTypeEnum, string averageScore)
        {
            // Verify The Activity Details In Activity Result By Student Report
            Logger.LogMethodEntry("Reports",
                                  "VerifyTheActivityDetailsInActivityResultByStudentReport",
                                  base.IsTakeScreenShotDuringEntryExit);
            Course course = Course.Get(courseTypeEnum);

            //Verify Activity name
            Logger.LogAssertion("VerifyStudentName",
                                ScenarioContext.Current.ScenarioInfo.Title, () =>
                                Assert.AreEqual(activityName, new RptActivityResultByStudentPage().
                                                GetActivityDetailsInReport(1)));
            //Verify section name
            Logger.LogAssertion("VerifysectionName",
                                ScenarioContext.Current.ScenarioInfo.Title, () =>
                                Assert.AreEqual(course.SectionName, new RptActivityResultByStudentPage().
                                                GetSectionNameInInstructorReport()));
            //Verify average score
            Logger.LogAssertion("VerifyActivityAverageScore",
                                ScenarioContext.Current.ScenarioInfo.Title, () =>
                                Assert.AreEqual(averageScore, new RptActivityResultByStudentPage().
                                                GetAverageScoreInTheReport()));
            Logger.LogMethodExit("Reports",
                                 "VerifyTheActivityDetailsInActivityResultByStudentReport",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
        /// <summary>
        /// Enroll into Term and course.
        /// </summary>
        /// <param name="userTypeEnum">This is user type Enum.</param>
        /// <param name="courseTypeEnum">This is course type Enum./</param>
        public void EnrollUserToECollegeCourse(User.UserTypeEnum userTypeEnum,
                                               Course.CourseTypeEnum courseTypeEnum)
        {
            //Enroll ECollege user into Term and Course
            logger.LogMethodEntry("EnrollCourseTop", "EnrollUserToECollegeCourse",
                                  base.IsTakeScreenShotDuringEntryExit);
            try
            {
                //Switch to TopContentArea Frame
                this.SelectTopContentAreaFrame();
                //Select Term
                this.SelectTermFromDropDown();
                //Select User check box
                this.SelectUserCheckBox();
                //Click on Next button after select user
                this.ClickNextButtonOnSelectUserPage();
                //Select User role form dropdown
                this.SelectUserRole(userTypeEnum);
                //Select course checkbox element
                this.SelectCourseCheckBox(courseTypeEnum);
                //Click Enroll button
                this.ClickEnrollButton();
            }
            catch (Exception e)
            {
                ExceptionHandler.HandleException(e);
            }

            logger.LogMethodExit("EnrollCourseTop", "EnrollUserToECollegeCourse",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
Esempio n. 3
0
 public void EnterCourseIDAndClickSubmit(Course.CourseTypeEnum courseType)
 {
     Logger.LogMethodEntry("HomePage", "EnterCourseIDAndClickSubmit", base.IsTakeScreenShotDuringEntryExit);
     //Enter course ID to enroll the student
     new HEDGlobalHomePage().EnterCourseID(courseType);
     Logger.LogMethodExit("HomePage", "EnterCourseIDAndClickSubmit", base.IsTakeScreenShotDuringEntryExit);
 }
 /// <summary>
 /// Fetch And Store Course Workspace Id.
 /// </summary>
 /// <param name="courseTypeEnum">This is Course Type Enum.</param>
 public void FetchAndStoreCourseWorkspaceId(Course.CourseTypeEnum courseTypeEnum)
 {
     //Fetch And Store Course Workspace Id
     Logger.LogMethodEntry("ManageCoursesPage", "FetchAndStoreCourseWorkspaceId",
                           base.IsTakeScreenShotDuringEntryExit);
     try
     {
         //Initialize Variable
         string getWorkspaceId = string.Empty;
         //Select Course Enrollment Window.
         this.SelectCourseEnrollmentWindow();
         //Select Right Frame
         this.SelectIFrameRight();
         base.WaitForElement(By.XPath(ManageCoursesPageResource.
                                      ManageCourses_Page_Workspace_Id_Xpath_Locator));
         //Fetch Workspace Id
         getWorkspaceId = base.GetElementTextByXPath(ManageCoursesPageResource.
                                                     ManageCourses_Page_Workspace_Id_Xpath_Locator);
         //Store Workspace Id
         this.StoreWorkspaceId(courseTypeEnum, getWorkspaceId);
     }
     catch (Exception e)
     {
         ExceptionHandler.HandleException(e);
     }
     Logger.LogMethodExit("ManageCoursesPage", "FetchAndStoreCourseWorkspaceId",
                          base.IsTakeScreenShotDuringEntryExit);
 }
Esempio n. 5
0
 public void SelectCourseToCreateIcCourse(string btnName, Course.CourseTypeEnum courseType)
 {
     Logger.LogMethodEntry("HomePage", "SelectCourseToCreateIcCourse", base.IsTakeScreenShotDuringEntryExit);
     //Select course based on course ISBN
     new HEDGlobalHomePage().CreateICCourseByISBN(btnName, courseType);
     Logger.LogMethodExit("HomePage", "SelectCourseToCreateIcCourse", base.IsTakeScreenShotDuringEntryExit);
 }
        /// <summary>
        /// Get Searched Course Name.
        /// </summary>
        /// <returns>Course Name.</returns>
        public String GetSearchedCourse(
            Course.CourseTypeEnum courseTypeEnum)
        {
            //Get Searched Course Name
            Logger.LogMethodEntry("ManageCoursesPage", "GetSearchedCourse",
                                  base.IsTakeScreenShotDuringEntryExit);
            //Variable Declaration
            string getCourseName = string.Empty;

            try
            {
                //Select Default Window
                base.SelectWindow(ManageCoursesPageResource.
                                  ManageCourses_Page_Window_Name_CourseEnrollment);
                //Select IFrame
                this.SelectIFrameRight();

                if (courseTypeEnum.Equals(Course.CourseTypeEnum
                                          .CopiedDigitsAuthoredCourse))
                {
                    //Get The Searched Course Name


                    base.WaitForElement(By.XPath(ManageCoursesPageResource.
                                                 ManageCourses_Page_SearchedCourseNameCopied_Xpath_Locator));
                    //Get the Course Name
                    getCourseName = base.GetTitleAttributeValueByXPath
                                        (ManageCoursesPageResource.
                                        ManageCourses_Page_SearchedCourseNameCopied_Xpath_Locator);
                }
                else
                {
                    bool listPresent = base.IsElementPresent(By.XPath(ManageCoursesPageResource.
                                                                      ManageCourses_Page_SearchedCourseName_Xpath_Locator), 15);

                    if (!listPresent)
                    {
                    }
                    else
                    {
                        //Get The Searched Course Name
                        base.WaitForElement(By.XPath(ManageCoursesPageResource.
                                                     ManageCourses_Page_SearchedCourseName_Xpath_Locator));
                        //Get the Course Name
                        getCourseName = base.GetTitleAttributeValueByXPath(ManageCoursesPageResource.
                                                                           ManageCourses_Page_SearchedCourseName_Xpath_Locator);
                    }
                }

                //Switch To Default Page Content
                base.SwitchToDefaultPageContent();
            }
            catch (Exception e)
            {
                ExceptionHandler.HandleException(e);
            }
            Logger.LogMethodExit("ManageCoursesPage", "GetSearchedCourse",
                                 base.IsTakeScreenShotDuringEntryExit);
            return(getCourseName);
        }
Esempio n. 7
0
        public void VerifySectionNameAndAverageScoreInStudentReportByActivityByAdmin(
            Course.CourseTypeEnum courseTypeEnum, User.UserTypeEnum userTypeEnum, string averageScore)
        {
            //Verify the details of "Student report by activity" report generated
            Logger.LogMethodEntry("Reports",
                                  "VerifySectionNameAndAverageScoreInStudentReportByActivity",
                                  base.IsTakeScreenShotDuringEntryExit);
            string studentName = new RptStudentReportByActivityPage().
                                 GetStudentUsername(userTypeEnum);
            Course course = Course.Get(courseTypeEnum);
            User   user   = User.Get(userTypeEnum);

            //Verify student name
            Logger.LogAssertion("VerifyStudentName",
                                ScenarioContext.Current.ScenarioInfo.Title, () =>
                                Assert.AreEqual(studentName, new RptStudentReportByActivityPage().
                                                GetStudentAndSectionNameInReport(1)));
            //Verify section name
            Logger.LogAssertion("VerifysectionName",
                                ScenarioContext.Current.ScenarioInfo.Title, () =>
                                Assert.AreEqual(course.SectionName, new RptStudentReportByActivityPage().
                                                GetSectionNameInAdminReport()));
            //Verify Average score
            Logger.LogAssertion("VerifyStudentAveragescore",
                                ScenarioContext.Current.ScenarioInfo.Title, () =>
                                Assert.AreEqual(averageScore, new RptStudentReportByActivityPage().
                                                GetAverageScoreInReport()));
            Logger.LogMethodExit("Reports",
                                 "VerifySectionNameAndAverageScoreInStudentReportByActivity",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
Esempio n. 8
0
        public void VerifySectionNameandIDAfterEnterInsideSection(
            Course.CourseTypeEnum courseTypeEnum)
        {
            //Verify the Section Name and ID After Enter Inside the Section
            Logger.LogMethodEntry("ProgramAdmin",
                                  "VerifySectionNameandIDAfterEnterInsideSection"
                                  , base.IsTakeScreenShotDuringEntryExit);
            //Get course From Memory
            Course course = Course.Get(Course.CourseTypeEnum.ProgramCourse);
            //Get Section Name
            string sectionName = course.SectionName +
                                 (ProgramAdminResource.ProgramAdmin_Page_First_Section_Value);

            // Assert for display of section name after enter inside the section
            Logger.LogAssertion("VerifySectionNameAfterEnterInsideSection",
                                ScenarioContext.Current.ScenarioInfo.Title,
                                () => Assert.AreEqual(sectionName, new TodaysViewUxPage().GetCourseName()));
            // Assert for display of section ID after enter inside the section
            Logger.LogAssertion("VerifySectionIDAfterEnterInsideSection",
                                ScenarioContext.Current.ScenarioInfo.Title,
                                () => Assert.AreEqual(course.SectionId,
                                                      new TodaysViewUxPage().GetSectionIdAfterEnterInsideSection()));
            Logger.LogMethodExit("ProgramAdmin",
                                 "VerifySectionNameandIDAfterEnterInsideSection"
                                 , base.IsTakeScreenShotDuringEntryExit);
        }
Esempio n. 9
0
        public void EnterIntoD2LCourse(Course.CourseTypeEnum courseType, User.UserTypeEnum userType)
        {
            logger.LogMethodEntry("D2LCourseActions", "EnterIntoD2LCourse", base.IsTakeScreenShotDuringEntryExit);

            // Get the course name
            Course course     = Course.Get(courseType);
            string courseName = course.Name.ToString();

            // Based on user type click on the course
            switch (userType)
            {
            case User.UserTypeEnum.D2LDirectTeacher:
            case User.UserTypeEnum.D2LKioskTeacher1:
                this.D2LUserEnterIntoCourse(courseType);
                break;

            case User.UserTypeEnum.D2LDirectStudent:
            case User.UserTypeEnum.D2LKioskStudent1:
                // base.WaitUntilWindowLoads(base.GetPageTitle);

                //Select the course and Click
                base.WaitForElement(By.XPath(D2LCourseActionsResource.
                                             D2LCourseAction_Page_CourseSelector_Xpath_Value));
                base.ClickLinkByXPath(D2LCourseActionsResource.
                                      D2LCourseAction_Page_CourseSelector_Xpath_Value);

                base.WaitForElement(By.PartialLinkText(courseName));
                base.ClickLinkByPartialLinkText(courseName);
                break;
            }
            logger.LogMethodExit("D2LCourseActions", "EnterIntoD2LCourse", base.IsTakeScreenShotDuringEntryExit);
        }
        public void ValidateMasteryReportData(Class.ClassTypeEnum classTypeEnum, Course.CourseTypeEnum courseTypeEnum)
        {
            // Verify The Activity Details In Activity Result By Student Report
            Logger.LogMethodEntry("Reports",
                                  "ValidateMasteryReportData",
                                  base.IsTakeScreenShotDuringEntryExit);
            Course course    = Course.Get(courseTypeEnum);
            Class  className = Class.Get(classTypeEnum);

            //Verify Class name
            Logger.LogAssertion("VerifyStudentName",
                                ScenarioContext.Current.ScenarioInfo.Title, () =>
                                Assert.AreEqual(className.Name, new RptActivityResultByStudentPage().GetClassNameInMasteryReport()));
            //Verify Course name
            Logger.LogAssertion("VerifysectionName",
                                ScenarioContext.Current.ScenarioInfo.Title, () =>
                                Assert.AreEqual(course.Name, new RptActivityResultByStudentPage().GetCourseNameInMasteryReport()));
            //////Verify Graphexistance
            //Logger.LogAssertion("VerifyActivityAverageScore",
            // ScenarioContext.Current.ScenarioInfo.Title, () =>
            //  Assert.AreEqual(true, new RptActivityResultByStudentPage().
            //  GetGraphExistanceStatus()));
            Logger.LogMethodExit("Reports",
                                 "ValidateMasteryReportData",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
 /// <summary>
 /// Create ECollege Course.
 /// </summary>
 /// <param name="courseTypeEnum">This is course type enum.</param>
 public void CreateSingleCourseRequest(
     Course.CourseTypeEnum courseTypeEnum)
 {
     Logger.LogMethodEntry("SingleCrsCreationBottomPage",
                           "CreateSingleCourseRequest", base.IsTakeScreenShotDuringEntryExit);
     try
     {
         //Select Frame
         this.SelectBottomContentAreaFrame();
         //Select Enrollable Area Drop Down Value
         this.EnterCourseInformation();
         //Enter Course Code of ECollege Course
         this.EnterCoureCode();
         //Enter Display Course Code of ECollege Course
         this.EnterDisplayCourseCode();
         //Enter Course Tilte of ECollege Course
         String getCourseTitle = this.EnterCourseTitle();
         //Enter Course Credit Information
         this.EnterCourseCreditInformation();
         //Click On Next Button
         this.ClickNextCourseButton();
         //Submit The Course Information
         this.SubmitPreviewCourseInformation();
         //Strore Course Information In Memory
         this.StoreECollegeCourseInformationInMemory
             (getCourseTitle, courseTypeEnum);
     }
     catch (Exception ex)
     {
         ExceptionHandler.HandleException(ex);
     }
     Logger.LogMethodExit("SingleCrsCreationBottomPage",
                          "CreateSingleCourseRequest", base.IsTakeScreenShotDuringEntryExit);
 }
Esempio n. 12
0
        public void VerifyTheCourseForAssignedToCopyState(
            Course.CourseTypeEnum courseTypeEnum,
            string searchRadioButton, string dropdownOption)
        {
            //Check Course for Assigned To Copy State
            Logger.LogMethodEntry("CourseCopy",
                                  "VerifyTheCourseForAssignedToCopyState",
                                  base.IsTakeScreenShotDuringEntryExit);
            //Get The Copied Master Course Name Stored In Memory
            Course course = Course.Get(courseTypeEnum);

            //Search course
            new SearchCoursesPage().SearchCourse(
                (SearchCoursesPage.SearchRadioButtonEnum)Enum.Parse(typeof(
                                                                        SearchCoursesPage.SearchRadioButtonEnum),
                                                                    searchRadioButton), course.Name, dropdownOption);
            //Approve From [CourseForAssignedToCopy] State
            new ManageCoursesPage().ApproveAssignedToCopyState(
                (SearchCoursesPage.SearchRadioButtonEnum)Enum.Parse(
                    typeof(SearchCoursesPage.SearchRadioButtonEnum), searchRadioButton),
                course.Name, dropdownOption);
            Logger.LogMethodExit("CourseCopy",
                                 "VerifyTheCourseForAssignedToCopyState",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
Esempio n. 13
0
 /// <summary>
 /// Copy Master Course In Other Workspace.
 /// </summary>
 /// <param name="courseTypeEnum">This is course type emum.</param>
 public void CopyMasterCourseInDifferentWorkspace
     (Course.CourseTypeEnum courseTypeEnum, User.UserTypeEnum userTypeEnum)
 {
     //Copy Master Course In Different Workspace
     logger.LogMethodEntry("NewCoursePage", "CopyMasterCourseInDifferentWorkspace",
                           base.IsTakeScreenShotDuringEntryExit);
     try
     {
         //Select Window
         SelectCopyAsMasterCourseWindow();
         //Enter Course Name
         String courseName = this.GetCourseName("Another Workspace");
         //Select Option To Copy Course To Other WorkSpace
         this.SelectCopyToAnotherWorkspaceOption();
         //Select WorkSpace Name
         this.SelectWorkSpaceName(userTypeEnum);
         // Select Course Save Button
         this.ClickOnSaveCourseButton();
         // Store Course Information In Memory
         this.StoreCourseDetailsInMemory(courseName, courseTypeEnum);
     }
     catch (Exception e)
     {
         ExceptionHandler.HandleException(e);
     }
     logger.LogMethodExit("NewCoursePage", "CopyMasterCourseInDifferentWorkspace",
                          base.IsTakeScreenShotDuringEntryExit);
 }
Esempio n. 14
0
 /// <summary>
 /// Store Section Id.
 /// </summary>
 /// <param name="sectionName">This is section name.</param>
 /// <param name="courseTypeEnum">This is course type enum.</param>
 public void StoreSharedLibraryID(String sharedLibraryName, Course.CourseTypeEnum courseTypeEnum)
 {
     // store section details
     Logger.LogMethodEntry("ManageTemplatePage", "StoreSectionID",
                           base.IsTakeScreenShotDuringEntryExit);
     try
     {
         // search section
         SearchSection(sharedLibraryName);
         base.WaitForElement(By.Id(ManageTemplatePageResource.
                                   ManageTemplate_Page_TemplateSection_Grid_Id_Locator));
         this.SelectMiddleFrame();
         // get section id to store
         String getSharedLibraryID = base.GetElementTextByXPath(ManageTemplatePageResource.
                                                                ManageTemplate_Page_TemplateSectionGrid_XPath_Locator);
         WebDriver.SwitchTo().DefaultContent();
         // check section Id is not null
         if (getSharedLibraryID != null)
         {
             // store section Id
             StoreSectionNameInMemory(getSharedLibraryID, sharedLibraryName, courseTypeEnum);
         }
     }
     catch (Exception e)
     {
         ExceptionHandler.HandleException(e);
     }
     Logger.LogMethodExit("ManageTemplatePage", "StoreSectionID",
                          base.IsTakeScreenShotDuringEntryExit);
 }
Esempio n. 15
0
        public void UpdateTheIntegrationPointIdForCourse(
            Course.CourseTypeEnum mmndCourseType)
        {
            //Update the Integration Point Id
            Logger.LogMethodEntry("MMNDIntegration", "UpdateTheIntegrationPointIdForCourse",
                                  base.IsTakeScreenShotDuringEntryExit);
            switch (mmndCourseType)
            {
            case Course.CourseTypeEnum.MMNDCoOrdinate:
                new CourseToolSettingsViewPage().EnterECollegeCourseId(getMMNDCoOrdinateId);
                //Click On Tool Associated
                new CourseToolAssociationViewPage().ClickOnCourseToolAssociated();
                //Click On Next Button
                new CourseToolVersionAssociationViewPage().ClickOnNextButton();
                //Click On Edit Button
                new CourseToolSettingsUpdateViewPage().ClickOnEditButton();
                //Insert the Integration Point Id
                new ManageCourseToolSettingsViewPage().InsertIntegrationPointId(getInstructorParameterIdCOCO);
                break;

            case Course.CourseTypeEnum.MMNDNonCoOrdinate:
                new CourseToolSettingsViewPage().EnterECollegeCourseId(getMMNDNonCoOrdinateId);
                //Click On Tool Associated
                new CourseToolAssociationViewPage().ClickOnCourseToolAssociated();
                //Click On Next Button
                new CourseToolVersionAssociationViewPage().ClickOnNextButton();
                //Click On Edit Button
                new CourseToolSettingsUpdateViewPage().ClickOnEditButton();
                //Insert the Integration Point Id
                new ManageCourseToolSettingsViewPage().InsertIntegrationPointId(getInstructorParameterIdNONCOCO);
                break;
            }
            Logger.LogMethodExit("MMNDIntegration", "UpdateTheIntegrationPointIdForCourse",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
 public void EnterIntoTheMoodleKioskCourse(Course.CourseTypeEnum courseType)
 {
     // Enter into course
     Logger.LogMethodEntry("Moodle", "EnterIntoTheMoodleKioskCourse", base.IsTakeScreenShotDuringEntryExit);
     new MoodleCourseActions().EnterIntoMoodleKioskCourse(courseType);
     Logger.LogMethodExit("Moodle", "EnterIntoTheMoodleKioskCourse", base.IsTakeScreenShotDuringEntryExit);
 }
 /// <summary>
 /// Filter Template Using Parent Template Drop Down
 /// </summary>
 public void FilterTheTemplateUsingParentTemplateDD(Course.CourseTypeEnum courseTypeEnum)
 {
     //Filter Template Using Parent Template Drop Down
     Logger.LogMethodEntry("AddNewSectionPage", "FilterTheTemplateUsingParentTemplateDD",
                           base.IsTakeScreenShotDuringEntryExit);
     try
     {
         //Switch To IFrame
         this.SwitchToIFrame();
         //Wait for Parent Template DropDown
         base.WaitForElement(By.Id(AddNewSectionPageResource.
                                   AddNewSection_Page_ParentTemplate_DropDown_ID_Loator));
         // Get Course Details By Enum Value
         Course course = Course.Get(courseTypeEnum);
         //Select Parent Template DropDown
         base.SelectDropDownValueThroughTextByName(
             AddNewSectionPageResource.AddNewSection_Page_ParentTemplate_DropDown_ID_Loator,
             course.Name);
         //Switch To IFrame
         this.SwitchToIFrame();
     }
     catch (Exception e)
     {
         ExceptionHandler.HandleException(e);
     }
     Logger.LogMethodExit("AddNewSectionPage", "FilterTheTemplateUsingParentTemplateDD",
                          base.IsTakeScreenShotDuringEntryExit);
 }
        /// <summary>
        /// Fill the section count in text box to be created
        /// </summary>
        /// <param name="courseTypeEnum">This is course type enum.</param>
        private void EnterSectionCount(
            Course.CourseTypeEnum courseTypeEnum)
        {
            // Enter section count
            Logger.LogMethodEntry("AddNewSectionPage", "EnterSectionCount",
                                  base.IsTakeScreenShotDuringEntryExit);
            base.WaitForElement(By.Id(AddNewSectionPageResource.
                                      AddNewSection_Page_NoList_Id_Locator));
            switch (courseTypeEnum)
            {
            case Course.CourseTypeEnum.HedMilAcceptanceSIMProgramCourse:
            case Course.CourseTypeEnum.HedMilAcceptanceSIM5ProgramCourse:
            case Course.CourseTypeEnum.MyITLabForOffice2013Master:
            case Course.CourseTypeEnum.MyITLabForOffice2013MasterCourseCreation:
            case Course.CourseTypeEnum.HSSMyPsychLabMaster:
            case Course.CourseTypeEnum.MySpanishLabMaster:
            case Course.CourseTypeEnum.MyItLabSIM5MasterCourse:
            case Course.CourseTypeEnum.BadgingCourse:
                // Enter section count in Drop Down box
                base.FillTextBoxById(AddNewSectionPageResource.
                                     AddNewSection_Page_NoList_Id_Locator, AddNewSectionPageResource.
                                     AddNewSection_Page_MilCourse_Section_NoList_Value);
                break;

            case Course.CourseTypeEnum.GraderITSIM5Course:
                // Enter section count in Drop Down box
                base.FillTextBoxById(AddNewSectionPageResource.
                                     AddNewSection_Page_NoList_Id_Locator, AddNewSectionPageResource.
                                     AddNewSection_Page_CoreCourse_Section_NoList_Fill_Value);
                break;
            }
            Logger.LogMethodExit("AddNewSectionPage", "EnterSectionCount",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
 public void CopyCourseToAnotherWorkspace(String cmenuAction,
                                          Course.CourseTypeEnum courseTypeEnum, User.UserTypeEnum userTypeEnum)
 {
     //Click of CMenu Option
     new ManageCoursesPage().ClickCourseCMenuOption
         (cmenuAction);
     new NewCoursePage().CopyMasterCourseInDifferentWorkspace(courseTypeEnum, userTypeEnum);
 }
Esempio n. 20
0
        /// <summary>
        /// Enroll SMS Student In a Course.
        /// </summary>
        /// <param name="courseTypeEnum">This is Course by type enum.</param>
        public void SmsStudentEnrolledInCourse(
            Course.CourseTypeEnum courseTypeEnum)
        {
            // Enroll SMS Student In a Course
            Logger.LogMethodEntry("SelfEnrollmentPage", "SMSStudentEnrolledInCourse",
                                  base.IsTakeScreenShotDuringEntryExit);
            try
            {
                //Select Window
                this.SelectGlobalHomeWindow();
                //Get HTML properties of IFrame
                IWebElement frame = base.GetWebElementPropertiesByXPath(
                    SelfEnrollmentPageResource.SelfEnrollment_Page_Frame_Xpath_Locator);
                //Switching to Frame
                base.SwitchToIFrameByWebElement(frame);
                base.WaitForElement(By.Id(SelfEnrollmentPageResource.
                                          SelfEnrollment_Page_CourseID_TextBox_Id_Locator));
                base.ClearTextById(SelfEnrollmentPageResource.
                                   SelfEnrollment_Page_CourseID_TextBox_Id_Locator);
                //Get Course From Memory
                Course course = Course.Get(courseTypeEnum);
                // To Enroll student depending on the course
                switch (courseTypeEnum)
                {
                case Course.CourseTypeEnum.ProgramCourse:
                case Course.CourseTypeEnum.MyItLabProgramCourse:
                case Course.CourseTypeEnum.HedMilAcceptanceSIMProgramCourse:
                case Course.CourseTypeEnum.HedMilAcceptanceSIM5ProgramCourse:
                case Course.CourseTypeEnum.MyITLabOffice2013Program:
                case Course.CourseTypeEnum.HSSMyPsychLabProgram:
                case Course.CourseTypeEnum.MySpanishLabProgram:
                    // Enter section id in the Textfield
                    base.FillTextBoxById(SelfEnrollmentPageResource.
                                         SelfEnrollment_Page_CourseID_TextBox_Id_Locator,
                                         course.SectionId);
                    break;

                case Course.CourseTypeEnum.InstructorCourse:
                case Course.CourseTypeEnum.MyItLabInstructorCourse:
                case Course.CourseTypeEnum.MyTestInstructorCourse:
                    // Enter Instructor course id in the Text field
                    base.FillTextBoxById(SelfEnrollmentPageResource.
                                         SelfEnrollment_Page_CourseID_TextBox_Id_Locator,
                                         course.InstructorCourseId);
                    break;
                }
                this.EnrollSmsUserInCourse();
                //Store Enrollment Date
                course.EnrollmentDate = DateTime.Now;
                Thread.Sleep(5000);
            }
            catch (Exception e)
            {
                ExceptionHandler.HandleException(e);
            }
            Logger.LogMethodExit("SelfEnrollmentPage", "SMSStudentEnrolledInCourse",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
Esempio n. 21
0
 public void SelectCourseToCreateIcCourseByDiscipline(string btnName, Course.CourseTypeEnum courseType)
 {
     Logger.LogMethodEntry("AssignmentCalendar", "SelectCourseToCreateIcCourseByDiscipline",
                           base.IsTakeScreenShotDuringEntryExit);
     //Create IC course based on discipline
     new HEDGlobalHomePage().CreateCourseByDiscipline(btnName, courseType);
     Logger.LogMethodExit("AssignmentCalendar", "SelectCourseToCreateIcCourseByDiscipline",
                          base.IsTakeScreenShotDuringEntryExit);
 }
Esempio n. 22
0
 public void UpdateTheCourseName(string btnName, Course.CourseTypeEnum courseType)
 {
     Logger.LogMethodEntry("GlobalHomePage", "UpdateTheCourseName",
                           base.IsTakeScreenShotDuringEntryExit);
     //Update the course name on home page
     new HEDGlobalHomePage().UpdateCourseInfo(btnName, courseType);
     Logger.LogMethodExit("GlobalHomePage", "UpdateTheCourseName",
                          base.IsTakeScreenShotDuringEntryExit);
 }
Esempio n. 23
0
 public void UpdatedCourseNameOnHomePage(Course.CourseTypeEnum courseType)
 {
     Logger.LogMethodEntry("GlobalHomePage", "UpdatedCourseNameOnHomePage",
                           base.IsTakeScreenShotDuringEntryExit);
     //Validate the course information updated
     new HEDGlobalHomePage().DisplayOfUpdateCourseName(courseType);
     Logger.LogMethodExit("GlobalHomePage", "UpdatedCourseNameOnHomePage",
                          base.IsTakeScreenShotDuringEntryExit);
 }
        public void ClickExpandButtonInCustomContentView(Course.CourseTypeEnum courseName)
        {
            Logger.LogMethodEntry("GlobalHome", "ClickExpandButtonInCustomContentView", base.IsTakeScreenShotDuringEntryExit);
            Course course      = Course.Get(courseName);
            String courseTitle = course.Name.ToString();

            new CustomContentPage().ClickExpandIcon(courseTitle);
            Logger.LogMethodExit("GlobalHome", "ClickExpandButtonInCustomContentView", base.IsTakeScreenShotDuringEntryExit);
        }
Esempio n. 25
0
 public void CreateNewSectionWithCount(Course.CourseTypeEnum courseTypeEnum, int count)
 {
     Logger.LogMethodEntry("ProgramAdmin", "CreateNewSectionWithCount",
                           base.IsTakeScreenShotDuringEntryExit);
     //Create New Section
     new AddNewSectionPage().CreateNewSectionWithCount(courseTypeEnum, count);
     Logger.LogMethodExit("ProgramAdmin", "CreateNewSectionWithCount",
                          base.IsTakeScreenShotDuringEntryExit);
 }
        public void ClickLinkInCanvasCourseLandingPage(string linkName, Course.CourseTypeEnum courseTypeEnum, User.UserTypeEnum userType)
        {
            logger.LogMethodEntry("Canvas", "ClickLinkInCanvasCourseLandingPage", base.IsTakeScreenShotDuringEntryExit);
            Course course     = Course.Get(courseTypeEnum);
            string courseName = course.Name;

            new CanvasCourseActions().SelectTabInCourseLandingPage(linkName, courseName, userType);
            logger.LogMethodExit("Canvas", "ClickLinkInCanvasCourseLandingPage", base.IsTakeScreenShotDuringEntryExit);
        }
Esempio n. 27
0
 public void OpenCmenuOption(string cmenuOption, Course.CourseTypeEnum courseType, User.UserTypeEnum userType)
 {
     Logger.LogMethodEntry("GlobalHomePage", "OpenCmenuOption",
                           base.IsTakeScreenShotDuringEntryExit);
     //Open the cmenu option of the course on home page
     new HEDGlobalHomePage().CmenuOptionForCourse(cmenuOption, courseType, userType);
     Logger.LogMethodExit("GlobalHomePage", "OpenCmenuOption",
                          base.IsTakeScreenShotDuringEntryExit);
 }
Esempio n. 28
0
 public void BBInstructorEnterIntoCourse(Course.CourseTypeEnum courseType)
 {
     // Enter into blackboard course
     Logger.LogMethodEntry("Blackboard", "BBInstructorEnterIntoCourse",
                           base.IsTakeScreenShotDuringEntryExit);
     new BlackboardCourseAction().EnterIntoBBCourse(courseType);
     Logger.LogMethodExit("Blackboard", "BBInstructorEnterIntoCourse",
                          base.IsTakeScreenShotDuringEntryExit);
 }
        public void EnterIntoCanvasCourse(Course.CourseTypeEnum courseTypeEnum)
        {
            logger.LogMethodEntry("Canvas", "EnterIntoCanvasDirectCourse", base.IsTakeScreenShotDuringEntryExit);
            Course course     = Course.Get(courseTypeEnum);
            string courseName = course.Name;

            new CanvasUserLogin().CanvasUserEnterIntoCourse(courseName);
            logger.LogMethodExit("Canvas", "EnterIntoCanvasDirectCourse", base.IsTakeScreenShotDuringEntryExit);
        }
        public void InstructorAccessLink(Course.CourseTypeEnum courseTypeEnum)
        {
            logger.LogMethodEntry("D2LIntegration", "InstructorAccessLink",
                                  base.IsTakeScreenShotDuringEntryExit);

            new D2LCourseAction().SelectPegasusCourseFromD2LKiosk(courseTypeEnum);

            logger.LogMethodEntry("D2LIntegration", "InstructorAccessLink",
                                  base.IsTakeScreenShotDuringEntryExit);
        }