public void tc_63421_Classroom_Attendance_and_progress_Multi_Event_with_no_Items_in_gradebook()
        {
            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "_TC63421");
            ManageClassroomCoursePage.Clicktab("Sections");
            ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
            ManageClassroomCoursePage.CreateSection.TitleAs("Section with Recurring");
            ManageClassroomCoursePage.setRecurence("Daily");
            ManageClassroomCoursePage.CreateSection.SetEnrollmentStartsDate(1);
            _test.Log(Status.Info, "Set enrollment Start date to one day less from current date");
            ManageClassroomCoursePage.EnterMaximum("2");
            ManageClassroomCoursePage.SelectWaitListasYes();
            ManageClassroomCoursePage.CreateSection.Create();
            _test.Log(Status.Info, "Clcik create button");
            Assert.IsTrue(SectionDetailsPage.isGradebookAndAttendanceTabDisplay());
            _test.Log(Status.Pass, "Verify Gradebook and Attendance tab display");
            Assert.IsTrue(ManageClassroomCoursePage.Enrollment());
            ManageClassroomCoursePage.ClickEnrollmentTab();
            ManageClassroomCoursePage.Enrollmenttab.ClickEnroll();
            ManageClassroomCoursePage.BatchEnrollUserModal.EnrollUser("somnath");
            _test.Log(Status.Pass, "User Enrolled into select course successfully ");
            SectionDetailsPage.ClickGradebookTab();
            Assert.IsFalse(SectionDetailsPage.GradebookTab.isGradesSubTabDisplay());
            _test.Log(Status.Pass, "Verify Grades Sub Tab is not display in Gradebook and Attendance tab");
            Assert.IsTrue(SectionDetailsPage.GradebookTab.UserListGrid.Verify_ColumnHeaderforRecevent());

            Assert.IsTrue(SectionDetailsPage.GradebookTab.isPaginationdisplay());
            _test.Log(Status.Pass, "Verify is Pagination display");
        }
 public void tc_63420_Classroom_Attendance_and_progress_Single_Event_Admin()
 {
     ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "_TC63420");
     ManageClassroomCoursePage.Clicktab("Sections");
     ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
     ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
     ManageClassroomCoursePage.SelectAddDayEventCheckbox();
     ManageClassroomCoursePage.CreateSection.SetEnrollmentStartsDate(1);
     _test.Log(Status.Info, "Set enrollment Start date to one day less from current date");
     ManageClassroomCoursePage.EnterMaximum("2");
     ManageClassroomCoursePage.SelectWaitListasYes();
     ManageClassroomCoursePage.CreateSection.Create();
     _test.Log(Status.Info, "Clcik create button");
     Assert.IsTrue(SectionDetailsPage.isGradebookAndAttendanceTabDisplay());
     _test.Log(Status.Pass, "Verify Gradebook and Attendance tab display");
     Assert.IsTrue(ManageClassroomCoursePage.Enrollment());
     ManageClassroomCoursePage.ClickEnrollmentTab();
     ManageClassroomCoursePage.Enrollmenttab.ClickEnroll();
     ManageClassroomCoursePage.BatchEnrollUserModal.EnrollUser("somnath");
     _test.Log(Status.Pass, "User Enrolled into select course successfully ");
     SectionDetailsPage.ClickGradebookTab();
     Assert.IsFalse(SectionDetailsPage.GradebookTab.isGradesSubTabDisplay());
     _test.Log(Status.Pass, "Verify Grades Sub Tab is not display in Gradebook and Attendance tab");
     Assert.IsTrue(SectionDetailsPage.GradebookTab.UserListGrid.Verify_ColumnHeader());
     Assert.IsTrue(SectionDetailsPage.GradebookTab.UserListGrid.Verify_AttendanceSubTab("All Attended", " All Absent"));
     _test.Log(Status.Pass, "Verify All Attended and all Absent link display in Attendace culumn header");
     SectionDetailsPage.GradebookTab.UserListGrid.ClickAllAttended();
     Assert.IsTrue(Driver.comparePartialString("Success The information was updated.×", driver.getSuccessMessage()));
     _test.Log(Status.Pass, "Successful message matched ");
     SectionDetailsPage.GradebookTab.UserListGrid.ClickAllAbsent();
     Assert.IsTrue(Driver.comparePartialString("Success The information was updated.×", driver.getSuccessMessage()));
     _test.Log(Status.Pass, "Successful message matched ");
 }
Beispiel #3
0
 public void A03_Manage_Content_Page_Redesign_34133()
 {
     #region Creating a Classroom Course Section With Tag
     ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "TC34133");
     _test.Log(Status.Pass, "New Classroom Course Created");
     string expectedtagname = ManageClassroomCoursePage.CreateTags(tagname);
     _test.Log(Status.Info, "Tag Created");
     StringAssert.AreEqualIgnoringCase(tagname, expectedtagname);
     _test.Log(Status.Info, "Assertion Pass as Tag Has been created successfully.");
     ManageClassroomCoursePage.Clicktab("Sections");
     _test.Log(Status.Info, "Clcik on Sections Tab");
     ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
     _test.Log(Status.Info, "Click on Add New section");
     ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
     ManageClassroomCoursePage.CreateSection.SectionMaxCapacity("1");
     ManageClassroomCoursePage.SelectWaitListasYes();
     ManageClassroomCoursePage.CreateSection.Create();
     _test.Log(Status.Info, "Click on Create button");
     Assert.IsTrue(ClassroomCoursePage.GetNewCreatedSectionLink("Section1"));
     _test.Log(Status.Pass, "Verify Section1 is created");
     #endregion
     CommonSection.Manage.Training();
     ManageContentPage.allSearch();
     _test.Log(Status.Info, "Blank Search in Manage Content Page From Portlet");
     Assert.IsTrue(ManageContentPage.search_WithingManageContentPage(classroomcoursetitle + "TC34133"));
     _test.Log(Status.Pass, "Assertion Pass as Content search within Manage Content is Working Fine");
     string pagetitle = ManageContentPage.verifyElements();
     _test.Log(Status.Pass, "Assertion Pass as Manage Content Elements have been verified");
     StringAssert.AreEqualIgnoringCase("Manage Content", pagetitle);
     _test.Log(Status.Pass, "Assertion Pass as Manage Content Page Title Verified");
     TC_34132 = true;
 }
        public void a08_As_an_admin_managing_equivalencies_I_want_to_find_content_to_add_as_a_new_equivalency_for_Classroom_52247()
        {
            CommonSection.CreateLink.ClassroomCourse();
            _test.Log(Status.Info, "Naviagte to Cretae Classroom Course page");
            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "_TC52247");
            _test.Log(Status.Info, "A new Classroom Course Created");

            ContentDetailsPage.Click_EditEquivalencies();
            _test.Log(Status.Info, "Click Edit button for Equivalencies portlet");
            Assert.IsTrue(EquivalenciesPage.isExestingEquvalencyContentdisplay("No"));
            _test.Log(Status.Pass, "Verify is any existing content display");
            EquivalenciesPage.ClickAddEquivalencyButton();
            _test.Log(Status.Info, "Click Add Equivalency Button");
            Assert.IsTrue(EquivalenciesPage.isAddEquvalenciesModalDisplay());
            _test.Log(Status.Pass, "Verify is Add Equvalencies Modal display");
            Assert.IsTrue(EquivalenciesPage.AddEquvalenciesModal.VerifymodalComponets("Search", "ResultGrid", "InactiveCheckbox", "Cancel", "Add"));
            _test.Log(Status.Pass, "Verify componets on Modal");
            EquivalenciesPage.AddEquvalenciesModal.ClickSearch();
            _test.Log(Status.Info, "Performed a blank search");
            string EquivalencyName = EquivalenciesPage.AddEquvalenciesModal.FistrecordTitle();

            EquivalenciesPage.AddEquvalenciesModal.SelectandAddFirstrecord();
            _test.Log(Status.Info, "Select the first record and click add button");
            Assert.IsTrue(EquivalenciesPage.isEquivalenciesadded());
            _test.Log(Status.Pass, "Verify selected content added as Equivalencies");
            Assert.IsTrue(EquivalenciesPage.Resultgrid.isRelationship("2-way"));
            _test.Log(Status.Pass, "Verify added Equivalencies get 2-way relationship");
//           DocumentPage.ClickButton_CheckIn();
        }
        public void a01_Copy_Section_Including_Section_Content_and_Gradebook_34724()
        {
            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "TC34724");
            _test.Log(Status.Info, "New Classroom Course Created");
            ManageClassroomCoursePage.Clicktab("Sections");
            ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
            ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
            ManageClassroomCoursePage.CreateSection.SetEnrollmentStartsDate(1);
            //ManageClassroomCoursePage.SelectWaitListasYes();
            ManageClassroomCoursePage.CreateSection.Create();
            _test.Log(Status.Info, "Click on Create Button on Create Section Page");
            ManageClassroomCoursePage.Sectiontab.ClickManageEnrollment();
            SectionDetailsPage.ClickContentTab();
            SectionDetailsPage.ContentTab.SelectAddAssignmentAddContentdropdown("Add Assignment");
            _test.Log(Status.Info, "Select Add Note from Add Content Dropdown");
            SectionDetailsPage.ContentTab.AddAssignmentAs("Graded Assignment");
            Assert.IsTrue(ManageClassroomCoursePage.Click_Gradebook());
            _test.Log(Status.Pass, "Assertion Pass Gradebook is Visible from Section Detail Page");
            Assert.IsTrue(GradebookPage.GradebookTab.VerifyGradedContent());
            _test.Log(Status.Pass, "User able to grade test");
            SectionsPage.SelectCopySectionformActionDropdown();
            Assert.IsTrue(SectionsPage.CopySectionModal.VerifyCopySectionModalComponets());
            _test.Log(Status.Pass, "Verify Modal Title, Section Start date, Section title and timezone");
            SectionsPage.CopySectionModal.CopywithGradebooktoggle("Yes");
            _test.Log(Status.Info, "Copy new section with Include section content and gradebook toggle option as Yes");
            Assert.IsTrue(Driver.comparePartialString("The classroom section was copied.", SectionsPage.GetFeedbackMessage()));
            _test.Log(Status.Pass, "Verify Successful messasge");

            SectionsPage.ClickSectionTitle("Section1-Copy");
            ManageClassroomCoursePage.Click_Gradebook();
            Assert.IsTrue(GradebookPage.GradebookTab.VerifyGradedContent());
            _test.Log(Status.Pass, "Assertion Pass Gradebook are Available for new section");
        }
        public void tc_63319_As_admin_verify_the_Timeline_Schedule_and_Content_tab_Non_Recurring_Events()
        {
            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "_TC63319");
            ManageClassroomCoursePage.Clicktab("Sections");
            ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
            ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
            ManageClassroomCoursePage.SelectAddDayEventCheckbox();
            ManageClassroomCoursePage.CreateSection.SetEnrollmentStartsDate(1);
            _test.Log(Status.Info, "Set enrollment Start date to one day less from current date");
            ManageClassroomCoursePage.EnterMaximum("2");
            ManageClassroomCoursePage.SelectWaitListasYes();
            ManageClassroomCoursePage.CreateSection.Create();
            _test.Log(Status.Info, "Clcik create button");
            Assert.IsTrue(SectionDetailsPage.isScheduleandContentTabDisplay());
            _test.Log(Status.Pass, "Verify Schedule and Content tab display");
            SectionDetailsPage.ClickScheduleandContentTab();
            Assert.IsTrue(SectionDetailsPage.ScheduleandContentTab.EventCount() >= 1);
            _test.Log(Status.Pass, "Verify Event count should be 1 or more than that");
            Assert.IsTrue(SectionDetailsPage.ScheduleandContentTab.CommitmentDisplay());
            _test.Log(Status.Pass, "Verify Commitment Display in Schedule and Content tab");
            Assert.IsTrue(SectionDetailsPage.ScheduleandContentTab.Commitment.StartandEndDateDisplay());
            _test.Log(Status.Pass, "Verify Commitment Display in Schedule and Content tab");
            SectionDetailsPage.ClickContentTab();
            SectionDetailsPage.ContentTab.SelectAddAssignmentAddContentdropdown("Add Assignment");
            _test.Log(Status.Info, "Select Add Note from Add Content Dropdown");
            SectionDetailsPage.ContentTab.AddAssignmentAs("Graded Assignment");
            Assert.IsTrue(ManageClassroomCoursePage.Click_Gradebook());
            _test.Log(Status.Pass, "Assertion Pass Gradebook is Visible from Section Detail Page");

            SectionDetailsPage.ClickScheduleandContentTab();
            Assert.IsTrue(SectionDetailsPage.ScheduleandContentTab.isPossiblePointdisplay());
            _test.Log(Status.Pass, "Verify Possible Point Display in Schedule and Content tab");
            Assert.IsTrue(SectionDetailsPage.ScheduleandContentTab.isGradedItemsDisplay());
            _test.Log(Status.Pass, "Verify Graded Items Display in Schedule and Content tab");
        }
Beispiel #7
0
        public void a22_Enroll_User_In_A_Paid_Section_33597()
        {
            #region Create A Paid Classroom Course Section

            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "TC33597");
            _test.Log(Status.Pass, "New Classroom Course Created");
            Assert.IsTrue(Driver.comparePartialString("The item was created.", ClassroomCoursePage.GetSuccessMessage()));
            ManageClassroomCoursePage.Clicktab("Sections");
            ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
            // ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
            ManageClassroomCoursePage.CreateSection.SetEnrollmentStartsDate(3);
            ManageClassroomCoursePage.CreateSection.SectionMaxCapacity("30");
            ManageClassroomCoursePage.CreateSection.TitleAs("Section1");

            ManageClassroomCoursePage.CreateSection.Create();
            Assert.IsTrue(ClassroomCoursePage.GetNewCreatedSectionLink("Section1"));
            _test.Log(Status.Pass, "Create New Course Section and Event");
            ManageClassroomCoursePage.Sectiontab.ClickManageEnrollment();
            ManageClassroomCoursePage.SectionDetailTab();
            ManageClassroomCoursePage.setCostForSection();
            #endregion

            ManageClassroomCoursePage.SearchForContent(classroomcoursetitle + "TC33597");
            _test.Log(Status.Pass, "Search For Classroom Course");
            ClassroomCourseDetailsPage.addToCart();
            _test.Log(Status.Pass, "User Purchasing The Classroom Course");
            ManageClassroomCoursePage.SearchForContent(classroomcoursetitle + "TC33597");
            Assert.IsTrue(ClassroomCourseDetailsPage.verifyEnrollment());
            _test.Log(Status.Pass, "Assertion Pass : User Successfully Purchased Classroom Course and Enrolled");
            ClassroomCoursePage.DeleteClassroomCourse(classroomcoursetitle + "TC33597");
        }
Beispiel #8
0
        public void tc_63322_As_Domain_Admin_I_want_to_review_notification_for_Classroom_sections()
        {
            #region Create a classroom course and add multiple section having cost without cost
            //CommonSection.CreateLink.ClassroomCourse();
            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "_TC63322");
            ManageClassroomCoursePage.Clicktab("Sections");
            ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
            ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
            ManageClassroomCoursePage.SelectAddDayEventCheckbox();
            ManageClassroomCoursePage.CreateSection.SetEnrollmentStartsDate(1);
            _test.Log(Status.Info, "Set enrollment Start date to one day less from current date");
            ManageClassroomCoursePage.ClickSelectInstructorButton();
            ManageClassroomCoursePage.SelectInstructorModal.SearchInstructor("Somnath1");
            _test.Log(Status.Info, "Search any instructor in Select Instructor Modal");
            ManageClassroomCoursePage.SelectInstructorModal.SelectandClickSet();
            _test.Log(Status.Info, "Select searched instructor and Click on Set");
            ManageClassroomCoursePage.EnterMaximum("2");
            ManageClassroomCoursePage.SelectWaitListasYes();
            ManageClassroomCoursePage.CreateSection.Create();
            _test.Log(Status.Info, "Clcik create button");
            #endregion

            Assert.IsTrue(SectionDetailsPage.isNotificationTabDisplay());
            _test.Log(Status.Pass, "Verify Notification tab is display");
            SectionDetailsPage.ClickNotificationTab();
            _test.Log(Status.Info, "Click Notification tab");
            Assert.IsTrue(SectionDetailsPage.NotificationTab.isEmailTabledisplay());
            _test.Log(Status.Pass, "Verify Email table display in Notification tab");
            Assert.IsTrue(SectionDetailsPage.NotificationTab.EmailTable.inactiveEmailDisplay());
            _test.Log(Status.Pass, "Verify inactive Email are not visible here");
            Assert.IsTrue(SectionDetailsPage.NotificationTab.EmailTable.Columnheader("Email Title", "Trigger", "On/Off", "Action", "Info"));
            _test.Log(Status.Pass, "Verify Email Table column headers");
            TC63268 = true;
        }
Beispiel #9
0
        public void a24_User_Views_Notes_from_Section_Details_33601()
        {
            #region Create New Course And Section And Read Notes

            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "TC33601");
            _test.Log(Status.Pass, "New Classroom Course Created");
            Assert.IsTrue(Driver.comparePartialString("The item was created.", ClassroomCoursePage.GetSuccessMessage()));
            ManageClassroomCoursePage.Clicktab("Sections");
            ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
            ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
            ManageClassroomCoursePage.CreateSection.SectionMaxCapacity("1");
            ManageClassroomCoursePage.EnterNotes("Testing Notes");
            ManageClassroomCoursePage.SelectWaitListasYes();
            ManageClassroomCoursePage.CreateSection.Create();
            Assert.IsTrue(ClassroomCoursePage.GetNewCreatedSectionLink("Section1"));
            _test.Log(Status.Pass, "Create New Course Section and Event");
            ManageClassroomCoursePage.Sectiontab.ClickManageEnrollment();
            Assert.IsTrue(ManageClassroomCoursePage.ScheduleTab());
            ManageClassroomCoursePage.ClickReadNotesButton();
            _test.Log(Status.Pass, "Read Notes Popup Open.");
            ManageClassroomCoursePage.ClickCloseReadNotePopup();
            _test.Log(Status.Pass, "Read Notes Popup Closed.");
            ClassroomCoursePage.DeleteClassroomCourse(classroomcoursetitle + "TC33601");
            #endregion
        }
Beispiel #10
0
        public void a23_Admin_User_Search_For_Learner_From_Section_Enrollment_Tab_33599()
        {
            #region Create A Classroom Course Section And Enroll Multiple Users Into It

            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "TC33599");
            _test.Log(Status.Pass, "New Classroom Course Created");
            Assert.IsTrue(Driver.comparePartialString("The item was created.", ClassroomCoursePage.GetSuccessMessage()));
            ManageClassroomCoursePage.Clicktab("Sections");
            ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
            ManageClassroomCoursePage.CreateSection.SetEnrollmentStartsDate(3);
            ManageClassroomCoursePage.CreateSection.SectionMaxCapacity("30");
            ManageClassroomCoursePage.SelectWaitListasYes();
            ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
            ManageClassroomCoursePage.CreateSection.Create();
            #endregion
            Assert.IsTrue(ClassroomCoursePage.GetNewCreatedSectionLink("Section1"));
            _test.Log(Status.Pass, "Create New Course Section and Event");
            ManageClassroomCoursePage.Sectiontab.ClickManageEnrollment();
            Assert.IsTrue(ManageClassroomCoursePage.Enrollment());
            ManageClassroomCoursePage.Enrollmenttab.ClickEnroll();
            ManageClassroomCoursePage.BatchEnrollUserModal.EnrollUser("Site Administrator");
            //Assert.IsTrue(Driver.comparePartialString("Success", ManageClassroomCoursePage.GetUpdatedSuccessMessage()));
            _test.Log(Status.Pass, "User Enrolled into select course successfully ");
            string enrolleduserName = ManageClassroomCoursePage.Enrollmenttab.EnrolledUserName();
            ManageClassroomCoursePage.Enrollmenttab.ClickEnroll();
            ManageClassroomCoursePage.SelectMultipleUsers();

            Assert.IsTrue(ManageClassroomCoursePage.SearchForEnrolledUser("Site Administrator")); //"Regression0403012001people"
            _test.Log(Status.Pass, "Search Result Displayed");
            ClassroomCoursePage.DeleteClassroomCourse(classroomcoursetitle + "TC33599");
        }
        public void a11_User_views_event_date_time_recurrence_format_on_Catalog_Expanded_Classroom_Course_where_section_with_Multiple_Events_34754()
        {
            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "TC34754");
            _test.Log(Status.Info, "New Classroom Course Created");
            ManageClassroomCoursePage.Clicktab("Sections");
            ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
            ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
            ManageClassroomCoursePage.setRecurence("MonthlySDR");
            ManageClassroomCoursePage.CreateSection.SetEnrollmentStartsDate(1);
            // ManageClassroomCoursePage.SelectWaitListasYes();
            ManageClassroomCoursePage.CreateSection.Create();
            _test.Log(Status.Info, "Click on Create Button on Create Section Page");
            ManageClassroomCoursePage.ClickSectionTab();
            ManageClassroomCoursePage.ClickSectionTitle("Section1");
            SectionDetailsPage.ClickScehduleTab();
            _test.Log(Status.Info, "Click on Schedule tab page");
            SectionDetailsPage.ScheduleTab.ClickCreateNewEvent();
            CreateNewEvent.ScheduleTab.CreateNewEvent("Dally");
            CommonSection.CatalogSearchText('"' + classroomcoursetitle + "TC34754" + '"');

            SearchResultsPage.ListofSearchResults.ExpandSections();
            Assert.IsTrue(SearchResultsPage.ListofSearchResults.VerifyTextonEventPortlet("MultipleEvents"));
            _test.Log(Status.Pass, "Verify event start date, end date, recurrence type");
            SearchResultsPage.ClickCourseTitle(classroomcoursetitle + "TC34754");
            Assert.IsTrue(ContentDetailsPage.ScheduledCourse.VerifyMiddleColumnText("MultipleEvents"));
            _test.Log(Status.Pass, "Verify event start date, end date, recurrence type");
            ContentDetailsPage.ScheduledCourse.ClickExpandRowicon();
            Assert.IsTrue(ContentDetailsPage.ExpandedScheduledCourse.VerifyEventScheduleText("MultipleEvents"));
            _test.Log(Status.Pass, "Verify event start date, end date, recurrence type");
        }
 public void a03_User_views_event_date_time_recurrence_format_on_Catalog_Expanded_Classroom_Course_where_section_has_All_Day_Event_without_Recurrence_34745()
 {
     ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "TC34745");
     _test.Log(Status.Info, "New Classroom Course Created");
     ManageClassroomCoursePage.Clicktab("Sections");
     ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
     CreateNewCourseSectionAndEventPage.SectionTitleAs("Section1");
     ManageClassroomCoursePage.SelectAddDayEventCheckbox();
     //CreateNewCourseSectionAndEventPage.SchedulePortlet.AllDayevent("Yes");
     _test.Log(Status.Info, "Set All day event toggle as Yes");
     // ManageClassroomCoursePage.CreateSection.SetEnrollmentStartsDate(1);
     ManageClassroomCoursePage.SelectWaitListasYes();
     ManageClassroomCoursePage.CreateSection.Create();
     _test.Log(Status.Info, "Click on Create Button on Create Section Page");
     CommonSection.CatalogSearchText('"' + classroomcoursetitle + "TC34745" + '"');
     SearchResultsPage.ListofSearchResults.ExpandSections();
     Assert.IsTrue(SearchResultsPage.ListofSearchResults.VerifyTextonEventPortlet("AllDay"));
     _test.Log(Status.Pass, "Verify event start date, end date, recurrence type");
     SearchResultsPage.ClickCourseTitle(classroomcoursetitle + "TC34745");
     Assert.IsTrue(ContentDetailsPage.ScheduledCourse.VerifyMiddleColumnText("AllDay"));
     _test.Log(Status.Pass, "Verify event start date, end date, recurrence type");
     ContentDetailsPage.ScheduledCourse.ClickExpandRowicon();
     Assert.IsTrue(ContentDetailsPage.ExpandedScheduledCourse.VerifyEventScheduleText("AllDay"));
     _test.Log(Status.Pass, "Verify event start date, end date, recurrence type");
     ManageClassroomCoursePage.DeleteContent(classroomcoursetitle + "TC34745");
 }
Beispiel #13
0
        public void tc_57593_As_an_admin_I_want_to_attach_an_Evaluation_for_Classroom_course()
        {
            CommonSection.CreateLink.ClassroomCourse();
            _test.Log(Status.Info, "Naviagte to Cretae Classroom Course page");
            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "_TC57593");
            _test.Log(Status.Info, "A new Classroom Course Created");

            Assert.IsTrue(ContentDetailsPage.isSurveyAccordiandisplayed());
            _test.Log(Status.Info, "Verify Survey and Evaluations accordian display on RHS side");
            ContentDetailsPage.Accordians.ClickManage_Survey();
            _test.Log(Status.Info, "Click Survey Manage button");
            Assert.IsTrue(SurveysPage.IsSurveyPageCompenetsarepresent("Add btn", "resultgrid"));
            _test.Log(Status.Info, "Verify Survey page has Add Surveys button and result grid has no record");
            SurveysPage.ClickAssignSurveysnew();
            _test.Log(Status.Info, "Click on Assign Surveys Button");
            Assert.IsTrue(SurveysPage.isAddSurveyandEvaluationsModalDisplay());
            Assert.IsTrue(SurveysPage.AddSurveyModal.IsSearchfieldsDisplayed());
            _test.Log(Status.Pass, "Verify Search, Result grid, Add button on Add survey Modal");
            SurveysPage.AddSurveyModal.ClickAllTypedropdown();
            Assert.IsTrue(SurveysPage.AddSurveyModal.AllTypedropdown.isEvaluationdisplay());
            _test.Log(Status.Pass, "Verify Evaluation display in alltype dropdown");
            SurveysPage.AddSurveyModal.AllTypedropdown.ClickEvaluations();
            SurveysPage.AddSurveyModal.clickSearchicon();
            Assert.IsTrue(SurveysPage.AddSurveyModal.ResultGrid.isEvaluationsDisplay());
            _test.Log(Status.Pass, "Verify Evaluations are display in Result grid");
            Assert.IsTrue(SurveysPage.AddSurveyModal.ResultGrid.isRequiredChangeble());
            _test.Log(Status.Pass, "Verifyis Require is changeable");
            Assert.IsTrue(SurveysPage.AddSurveyModal.ResultGrid.isAvailableChangeble());
            _test.Log(Status.Pass, "Verify Available is changeable");

            ContentDetailsPage.DeleteContent();
        }
        public void P20_1_tc_57847_Curriculum__User_navigates_to_Content_Details_page_of_Classroom()
        {
            CommonSection.CreateLink.ClassroomCourse();
            _test.Log(Status.Info, "Naviagte to Cretae Classroom Course page");
            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "_TC57847");
            CommonSection.CreteNewCurriculumn(curriculamtitle + "TC57847");
            _test.Log(Status.Info, "Create Curriculum");
            ContentDetailsPage.ClickCurriculumContentEditButton();
            _test.Log(Status.Info, "Click Edit Content for Curriculum");
            ContentDetailsPage.ClickAddCurriculumBlock();
            _test.Log(Status.Info, "Click Curriculum content Block");

            CurriculumContentPage.AddCurriculumBlock.AddBlockAs_OrderedType("ak_1");
            _test.Log(Status.Info, "Add Curriculum Block");

            CurriculumContentPage.AddTrainingActivities_UnOrdered(classroomcoursetitle + "_TC57847");
            _test.Log(Status.Info, "Add training Activities");

            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check In button");
            AdminContentDetailsPage.DropDownToggle.ViewAsLearner();
            _test.Log(Status.Info, "Click view as learner");
            ContentDetailsPage.EnrollinCurriculum();
            Assert.IsTrue(ContentDetailsPage.ContentTab.CurriculumBlock.iscontentdisplay(classroomcoursetitle + "_TC57847"));
            ContentDetailsPage.ContentTab.CurriculumBlock.ClickContenttitle(classroomcoursetitle + "_TC57847");
            Assert.IsTrue(Driver.Instance.Url.Contains("contentdetails"));
            ContentDetailsPage.ClickBreadCrumb(curriculamtitle + "TC57847");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(curriculamtitle + "TC57847"));
        }
        public void tc_33782_User_Views_Gradebook_via_Teaching_Schedule_Tab_33782()
        {
            #region create new course and Access The Gradebook From Teaching Schedule
            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "TC33782");
            _test.Log(Status.Pass, "New Classroom Course Created");

            Assert.IsTrue(Driver.comparePartialString("The item was created.", ClassroomCoursePage.GetSuccessMessage()));
            ManageClassroomCoursePage.Clicktab("Sections");
            ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
            ManageClassroomCoursePage.CreateSection.TitleAs(SectionTitle + "TC33782");
            ManageClassroomCoursePage.CreateSection.SectionMaxCapacity("1");
            ManageClassroomCoursePage.SelectUseWaitlist("");
            ManageClassroomCoursePage.SelectInstructor();
            ManageClassroomCoursePage.CreateSection.Create();
            Assert.IsTrue(ClassroomCoursePage.GetNewCreatedSectionLink(SectionTitle + "TC33782"));
            _test.Log(Status.Pass, "Create New Course Section and Event");

            #endregion
            CommonSection.Manage.Training();
            CommonSection.Manage.TrainingPage.InstructorTool();
            Assert.IsTrue(InstructorsPage.Expand_SectionDetail());
            _test.Log(Status.Pass, "Assertion Pass Manage Gradebook Button is Visible");

            Assert.IsTrue(SectionDetailsPage.isGradebookAndAttendanceTabDisplay());
            _test.Log(Status.Pass, "Verify Gradebook and Attendance tab display");
            Assert.IsFalse(SectionDetailsPage.GradebookTab.isGradesSubTabDisplay());
            _test.Log(Status.Pass, "Verify Grades Sub Tab display in Gradebook and Attendance tab");
            //Assert.IsTrue(ManageClassroomCoursePage.Verify_GradebookGrid());
            //_test.Log(Status.Pass, "Assertion Pass Gradebook accessible Available from Instructor Tool Training Schedule");
        }
Beispiel #16
0
        public void tc_63932_As_a_siteadmin_I_want_to_edit_an_email_notification()
        {
            CommonSection.Logout();
            LoginPage.LoginAs("").WithPassword("").Login();
            CommonSection.Administer.System.DomainsandURLS.Domains();
            _test.Log(Status.Info, "As an Admin navigate to System >> Domains");
            DomainsPage.ClickDomainLink("Meridian Global");
            EditSummaryPage.ClickOptionsTab();
            _test.Log(Status.Info, "Navigate to option tab");
            Assert.IsTrue(EditConfigurationOptionsPage.EditConfigurationTab.isEnablecontentleveleditingforsystememailsDisplay());
            _test.Log(Status.Pass, "Verify Enable content-level editing for system emails option is Display");
            Assert.IsTrue(EditConfigurationOptionsPage.EditConfigurationTab.isContentleveleditingforsystememailsisOn());

            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "_TC63932");
            ManageClassroomCoursePage.Clicktab("Sections");
            ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
            ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
            ManageClassroomCoursePage.SelectAddDayEventCheckbox();
            ManageClassroomCoursePage.CreateSection.SetEnrollmentStartsDate(1);
            _test.Log(Status.Info, "Set enrollment Start date to one day less from current date");
            ManageClassroomCoursePage.EnterMaximum("2");
            ManageClassroomCoursePage.SelectWaitListasYes();
            ManageClassroomCoursePage.CreateSection.Create();
            _test.Log(Status.Info, "Clcik create button");

            Assert.IsTrue(SectionDetailsPage.isNotificationTabDisplay());
            _test.Log(Status.Pass, "Verify Notification tab is display");
            SectionDetailsPage.ClickNotificationTab();
            _test.Log(Status.Info, "Click Notification tab");
            Assert.IsTrue(SectionDetailsPage.NotificationTab.isEmailTabledisplay());
            _test.Log(Status.Pass, "Verify Email table display in Notification tab");
            SectionDetailsPage.NotificationTab.Action.ClickEdit("FirstRecord");
            Assert.IsTrue(Driver.checkTitle("Edit Email"));
            _test.Log(Status.Pass, "Verify Edit Email page display");
            Assert.IsTrue(EditEmailPage.isPreviewButtondisplay());
            string actualEmailTitle = EditEmailPage.getEmailTitle();

            EditEmailPage.UpdateEmailTitle(actualEmailTitle + "test");
            string Actualsubject = EditEmailPage.getSubjectText();

            EditEmailPage.UpdateSubject(Actualsubject + "test");
            EditEmailPage.ClickSave();
            _test.Log(Status.Info, "Click Save");
            EditEmailPage.clickBreadcrumb("Notifications");
            Assert.IsTrue(SectionDetailsPage.NotificationTab.isEmailTabledisplay());
            _test.Log(Status.Pass, "Verify Email table display in Notification tab");
            SectionDetailsPage.NotificationTab.Action.ClickEdit("FirstRecord");
            Assert.IsTrue(Driver.checkTitle("Edit Email"));
            _test.Log(Status.Pass, "Verify Edit Email page display");
            Assert.IsTrue(EditEmailPage.getEmailTitle().Equals(actualEmailTitle + "test"));
            Assert.IsTrue(EditEmailPage.getSubjectText().Equals(Actualsubject + "test"));
            _test.Log(Status.Pass, "Verify Changes are retained");
            TC63930 = true;
        }
 public void a17_User_views_event_date_time_recurrence_format_Correctly_from_Course_SectionTab_51573()
 {
     ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "TC51573");
     _test.Log(Status.Info, "New Classroom Course Created");
     ManageClassroomCoursePage.Clicktab("Sections");
     ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
     ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
     ManageClassroomCoursePage.setRecurence("Every Weekday");
     ManageClassroomCoursePage.CreateSection.SetEnrollmentStartsDate(1);
     // ManageClassroomCoursePage.SelectWaitListasYes();
     ManageClassroomCoursePage.CreateSection.Create();
     _test.Log(Status.Info, "Click on Create Button on Create Section Page");
     Assert.IsTrue(ClassroomCoursePage.GetNewCreatedSectionLink("Section1"));
     Assert.IsTrue(ManageClassroomCoursePage.Sectiontab.VerifyEventScheduleTextforSection("Every Weekday"));
     _test.Log(Status.Pass, "Verify event start date, end date, recurrence type");
 }
Beispiel #18
0
        public void a17_Self_Enroll_in_Classroom_Course_14432()
        {
            CommonSection.Logout();
            LoginPage.LoginAs("siteadmin").WithPassword("").Login();
            #region create new course, add section to it and enroll
            CommonSection.CreateLink.ClassroomCourse();
            _test.Log(Status.Info, "Opened Create Classroom Course Page");
            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "_TC14432");
            _test.Log(Status.Info, "New Classroom Course Created");
            Assert.IsTrue(Driver.comparePartialString("The item was created.", ClassroomCoursePage.GetSuccessMessage()));
            _test.Log(Status.Pass, "Verify successful message");
            ManageClassroomCoursePage.Clicktab("Sections");
            _test.Log(Status.Info, "Click on Sections Tab");
            ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
            _test.Log(Status.Info, "Click on Add new Section Button");
            ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
            _test.Log(Status.Info, "Filled Title as Section1");
            ManageClassroomCoursePage.CreateSection.SetEnrollmentStartsDate(1);
            // ManageClassroomCoursePage.CreateSection.SectionEndTime("");

            ManageClassroomCoursePage.CreateSection.SectionMaxCapacity("1");
            _test.Log(Status.Info, "Filled Max Capacity to 11");
            ManageClassroomCoursePage.SelectWaitListasYes();
            ManageClassroomCoursePage.CreateSection.Create();
            _test.Log(Status.Info, "Click on Create button");
            Assert.IsTrue(ClassroomCoursePage.GetNewCreatedSectionLink("Section1"));
            _test.Log(Status.Pass, "New Classroom Course CreatedVerify Section1 link is present on screen");
            //Assert.IsTrue(Driver.comparePartialString("Success", ClassroomCoursePage.GetUpdatedSuccessMessage()));
            // _test.Log(Status.Pass, "Create New Course Section and Event");
            CommonSection.Logout();
            #endregion
            #region Login with a Learner, search classroom course and enroll
            LoginPage.LoginAs("userreg_0403012001people1").WithPassword("").Login();
            _test.Log(Status.Pass, "Login as a Learner");
            CommonSection.Learner.CurrentTraining();
            _test.Log(Status.Info, "Open Current trainging Page");
            CommonSection.SearchCatalog('"' + classroomcoursetitle + "_TC14432" + '"');
            _test.Log(Status.Info, "Search course name as" + classroomcoursetitle + "_TC14432");
            CatalogPage.ClickonSearchedCatalog(classroomcoursetitle + "_TC14432");
            _test.Log(Status.Info, "Click on Course title");
            CatalogPage.EnrollinClassroomCourse();
            _test.Log(Status.Info, "Click Enroll button");
            //Assert.IsTrue(CatalogPage.GetCurrentEnrolledTraining(classroomcoursetitle+ "_TC14432"));
            _test.Log(Status.Pass, "Enrolled classroom course is displaying");
            #endregion
        }
Beispiel #19
0
        public void a21_Add_Enrollment_Cancelation_Deadline_While_Creating_Section_33513()
        {
            #region Create New Course And Section With Enrollment Cancellation Date

            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "TC33513");
            _test.Log(Status.Pass, "New Classroom Course Created");
            Assert.IsTrue(Driver.comparePartialString("The item was created.", ClassroomCoursePage.GetSuccessMessage()));
            ManageClassroomCoursePage.Clicktab("Sections");
            ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
            ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
            ManageClassroomCoursePage.CreateSection.SectionMaxCapacity("1");
            ManageClassroomCoursePage.SetEnrollmentCancellationDate();
            ManageClassroomCoursePage.CreateSection.Create();
            Assert.IsTrue(ClassroomCoursePage.GetNewCreatedSectionLink("Section1"));
            _test.Log(Status.Pass, "Create New Course Section and Event with Enrollment Cancellation Date");
            ClassroomCoursePage.DeleteClassroomCourse(classroomcoursetitle + "TC33513");
            #endregion
        }
        public void z02_Classroom_Section_Copy_With_Manual_Enrollment_Start_Date_35669()

        {
            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "TC35669");
            _test.Log(Status.Info, "New Classroom Course Created");
            ManageClassroomCoursePage.Clicktab("Sections");
            ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
            ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
            // ManageClassroomCoursePage.CreateSection.SetEnrollmentStartsDate(1);
            ManageClassroomCoursePage.CreateSection.Create();
            _test.Log(Status.Info, "Click on Create Button on Create Section Page");
            //  ManageClassroomCoursePage.Sectiontab.ClickManageEnrollment();
            // ManageClassroomCoursePage.Sectiontab.ClickDetails("Section1");
            // string EnrollStartDate = ManageClassroomCoursePage.Sectiontab.SectionDetails.EnrollmentStartDate();
            SectionStartDate = SectionsPage.SectionStartDate();
            // ManageClassroomCoursePage.Sectionsdropdown.CopySection();



            SectionsPage.SelectCopySectionformActionDropdown();
            _test.Log(Status.Info, "Select Copy Section from Mange Enrollment Dropdown Toggle");
            //Assert.IsTrue(SectionsPage.CopySectionModal.VerifyCopySectionModalComponets());
            //_test.Log(Status.Pass, "Verify Modal Title, Section Start date, Section title and timezone");
            Assert.IsTrue(SectionsPage.CopySectionModal.VerifyModalEnrollmentDate(SectionStartDate));
            _test.Log(Status.Pass, "Verify Enrollment Start Date is defaulted to Section Start Date");
            SectionsPage.CopySectionModal.EditSectionTitle("Section2");
            _test.Log(Status.Pass, "Change the Section Title to Section2");
            //SectionsPage.CopySectionModal.EnrollmentStartsToggle("Override");
            Assert.IsTrue(SectionsPage.CopySectionModal.EnrollmentStartsToggle("Override"));
            _test.Log(Status.Info, "Change the Enrollment Start Toggle to Override");
            SectionsPage.CopySectionModal.ChangeEnrollmentStartsDate(1);
            _test.Log(Status.Info, "Change the Enrollment Start Date to before Section Start Date");
            SectionsPage.CopySectionModal.ClickCopy();
            _test.Log(Status.Info, "Click on Copy Button on Copy Section Modal");
            //Assert.IsTrue(Driver.comparePartialString("The classroom section was copied.", SectionsPage.GetFeedbackMessage()));
            //_test.Log(Status.Pass, "Verify Successful messasge");
            ManageClassroomCoursePage.Sectiontab.ClickDetails("Section2");
            Assert.IsTrue(ManageClassroomCoursePage.Sectiontab.VerifySection2Expanded());
            _test.Log(Status.Pass, "Verify Section2 is Expanded");
            SectionStartDate = SectionsPage.CopiedSectionStartDate();

            Assert.IsTrue(ManageClassroomCoursePage.Sectiontab.VerifySection2EnrollmentAndSectionDatesDifferent(SectionStartDate));
            _test.Log(Status.Pass, "Verify Section2 the Enrollment Start Date before the Section Start Date");
        }
Beispiel #21
0
        public void tc_63431_As_an_admin_I_want_to_turn_an_email_notification_On_Off()
        {
            CommonSection.Logout();
            LoginPage.LoginAs("").WithPassword("").Login();
            CommonSection.Administer.System.DomainsandURLS.Domains();
            _test.Log(Status.Info, "As an Admin navigate to System >> Domains");
            DomainsPage.ClickDomainLink("Meridian Global");
            EditSummaryPage.ClickOptionsTab();
            _test.Log(Status.Info, "Navigate to option tab");
            Assert.IsTrue(EditConfigurationOptionsPage.EditConfigurationTab.isEnablecontentleveleditingforsystememailsDisplay());
            _test.Log(Status.Pass, "Verify Enable content-level editing for system emails option is Display");
            Assert.IsTrue(EditConfigurationOptionsPage.EditConfigurationTab.isContentleveleditingforsystememailsisOn());

            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "_TC63431");
            ManageClassroomCoursePage.Clicktab("Sections");
            ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
            ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
            ManageClassroomCoursePage.SelectAddDayEventCheckbox();
            ManageClassroomCoursePage.CreateSection.SetEnrollmentStartsDate(1);
            _test.Log(Status.Info, "Set enrollment Start date to one day less from current date");
            ManageClassroomCoursePage.ClickSelectInstructorButton();
            ManageClassroomCoursePage.SelectInstructorModal.SearchInstructor("Somnath1");
            _test.Log(Status.Info, "Search any instructor in Select Instructor Modal");
            ManageClassroomCoursePage.SelectInstructorModal.SelectandClickSet();
            _test.Log(Status.Info, "Select searched instructor and Click on Set");
            ManageClassroomCoursePage.EnterMaximum("2");
            ManageClassroomCoursePage.SelectWaitListasYes();
            ManageClassroomCoursePage.CreateSection.Create();
            _test.Log(Status.Info, "Clcik create button");


            Assert.IsTrue(SectionDetailsPage.isNotificationTabDisplay());
            _test.Log(Status.Pass, "Verify Notification tab is display");
            SectionDetailsPage.ClickNotificationTab();
            _test.Log(Status.Info, "Click Notification tab");
            Assert.IsTrue(SectionDetailsPage.NotificationTab.isEmailTabledisplay());
            _test.Log(Status.Pass, "Verify Email table display in Notification tab");
            SectionDetailsPage.NotificationTab.EmailTable.TurnoffFirstEmail();
            Assert.IsTrue(Driver.comparePartialString("Success The changes were saved.×", driver.getSuccessMessage()));
            _test.Log(Status.Pass, "Successful message matched ");
            TC63433 = true;
        }
Beispiel #22
0
        public void a14_ENrolluserfromClassroomSection_33230()
        {
            #region create new course, add section to it and enroll

            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "TC33230");
            _test.Log(Status.Pass, "New Classroom Course Created");
            Assert.IsTrue(Driver.comparePartialString("The item was created.", ClassroomCoursePage.GetSuccessMessage()));
            ManageClassroomCoursePage.Clicktab("Sections");
            ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
            // ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
            //ManageClassroomCoursePage.CreateSection.SectionStartTime("");
            // ManageClassroomCoursePage.CreateSection.SectionEndTime("");

            // ManageClassroomCoursePage.CreateSection.SectionMaxCapacity("1");
            ManageClassroomCoursePage.SelectWaitListasYes();
            _test.Log(Status.Info, "Click Waitlist as Yes");
            CreateNewCourseSectionAndEventPage.CreateSection("Section1", DateTime.Now.AddDays(2).ToString("MM/dd/yyyy"), DateTime.Now.AddDays(2).ToString("MM/dd/yyyy"));
            // ManageClassroomCoursePage.CreateSection.Create();
            Assert.IsTrue(ClassroomCoursePage.GetNewCreatedSectionLink("Section1"));
            //Assert.IsTrue(Driver.comparePartialString("Success", ClassroomCoursePage.GetUpdatedSuccessMessage()));
            _test.Log(Status.Pass, "Create New Course Section and Event");
            ManageClassroomCoursePage.Sectiontab.ClickManageEnrollment();
            Assert.IsTrue(ManageClassroomCoursePage.Enrollment());
            ManageClassroomCoursePage.Enrollmenttab.ClickEnroll();
            ManageClassroomCoursePage.BatchEnrollUserModal.EnrollUser("saiflearner");
            //Assert.IsTrue(Driver.comparePartialString("Success", ManageClassroomCoursePage.GetUpdatedSuccessMessage()));
            _test.Log(Status.Pass, "User Enrolled into select course successfully ");
            CommonSection.Logout();
            _test.Log(Status.Pass, "Admin user logged out successfully");
            #endregion

            #region Login with a Learner search created classroom course and enroll
            LoginPage.LoginAs("saiflearner").WithPassword("").Login();
            _test.Log(Status.Pass, "Login as a Learner");
            CommonSection.Learner.CurrentTraining();
            CommonSection.SearchCatalog('"' + classroomcoursetitle + "TC33230" + '"');
            CatalogPage.ClickonSearchedCatalog(classroomcoursetitle + "TC33230");

            Assert.IsTrue(CatalogPage.GetCurrentEnrolledTraining(classroomcoursetitle + "TC33230"));
            _test.Log(Status.Pass, "Enrolled classroom course is displaying");
            #endregion
        }
 public void a16_User_views_event_date_time_recurrence_format_Correctly_from_Manage_Training_Expanded_Course_51578()
 {
     ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "TC51578");
     _test.Log(Status.Info, "New Classroom Course Created");
     ManageClassroomCoursePage.Clicktab("Sections");
     ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
     ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
     ManageClassroomCoursePage.setRecurence("Every Weekday");
     ManageClassroomCoursePage.CreateSection.SetEnrollmentStartsDate(1);
     // ManageClassroomCoursePage.SelectWaitListasYes();
     ManageClassroomCoursePage.CreateSection.Create();
     _test.Log(Status.Info, "Click on Create Button on Create Section Page");
     CommonSection.Manage.Training();
     _test.Log(Status.Info, "navigate to Manage Training page");
     TrainingPage.ManageContentPortlet.SearchForContent(classroomcoursetitle + "TC51578");
     _test.Log(Status.Info, "Search the classroom content from Manage Content portlet");
     Assert.IsTrue(ManageContentPage.ResultGrid.isSeaarchedContentDisplay(classroomcoursetitle + "TC51578"));
     ManageContentPage.ResultGrid.ClickCourseExpander(classroomcoursetitle + "TC51578");
     Assert.IsTrue(ManageContentPage.ExpandedSectiondetails.VerifyEventScheduleText("Every Weekday"));
     _test.Log(Status.Pass, "Verify event start date, end date, recurrence type");
 }
Beispiel #24
0
        public void P20_1_a15_Self_Waitlist_in_Classroom_Course_14509()
        {
            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "TC14509");
            _test.Log(Status.Pass, "New Classroom Course Created");
            ManageClassroomCoursePage.Clicktab("Sections");
            ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
            ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
            ManageClassroomCoursePage.SelectAddDayEventCheckbox();
            ManageClassroomCoursePage.CreateSection.SetEnrollmentStartsDate(1);
            _test.Log(Status.Info, "Set enrollment Start date to one day less from current date");
            ManageClassroomCoursePage.SelectWaitListasYes();
            ManageClassroomCoursePage.CreateSection.Create();
            _test.Log(Status.Info, "Clcik create button");

            ManageClassroomCoursePage.Sectiontab.ClickManageEnrollment();
            Assert.IsTrue(ManageClassroomCoursePage.Enrollment());
            ManageClassroomCoursePage.Enrollmenttab.ClickEnroll();
            ManageClassroomCoursePage.BatchEnrollUserModal.EnrollUser("user");
            _test.Log(Status.Info, "Enrollment one user to section");

            CommonSection.Logout();
            LoginPage.LoginAs("userreg_0210112911anybrowser").WithPassword("").Login();
            _test.Log(Status.Info, "Login with a learner");
            CommonSection.SearchCatalog('"' + classroomcoursetitle + "TC14509" + '"');
            _test.Log(Status.Info, "Search created Classroom Course from Catalog");
            SearchResultsPage.ClickCourseTitle(classroomcoursetitle + "TC14509");
            _test.Log(Status.Info, "Click searched Classroom course title");
            ContentDetailsPage.ContentBanner.Click_ScheduleButton();
            _test.Log(Status.Info, "Click at schedule tab");
            //Assert.IsTrue(ContentDetailsPage.ScheduledCourse.IsWaitlistbuttonDisplay());
            _test.Log(Status.Pass, "Verify Waitlist button Display for section");
            Assert.IsTrue(ContentDetailsPage.ScheduleTab.SectionPortlet.IsWaitlistbuttonDisplay());
            ContentDetailsPage.ScheduledCourse.ClickWaitlistButton();
            _test.Log(Status.Info, "Click Waitlist button");
            // Assert.IsTrue(ContentDetailsPage.ScheduledCourse.IsCancelWaitlistbuttonDisplay());
            Assert.IsTrue(ContentDetailsPage.ScheduleTab.SectionPortlet.IsCancelWaitlistbuttonDisplay());
            _test.Log(Status.Pass, "Verify Cancel Waitlist button Display for section");
        }
        public void P20_1_Z19_Admin_User_Delete_Events_From_Section_Detail_Page_34041()
        {
            #region create new course and Access The Section Detail From Gradebook Page
            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "TC34041");
            _test.Log(Status.Pass, "New Classroom Course Created");

            Assert.IsTrue(Driver.comparePartialString("The item was created.", ClassroomCoursePage.GetSuccessMessage()));
            ManageClassroomCoursePage.Clicktab("Sections");
            ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
            ManageClassroomCoursePage.CreateSection.TitleAs(SectionTitle + "TC34041");
            ManageClassroomCoursePage.CreateSection.SectionMaxCapacity("1");
            ManageClassroomCoursePage.SelectUseWaitlist("");
            ManageClassroomCoursePage.CreateSection.Create();
            Assert.IsTrue(ClassroomCoursePage.GetNewCreatedSectionLink(SectionTitle + "TC34041"));

            _test.Log(Status.Pass, "Create New Course Section and Event");

            ManageClassroomCoursePage.Sectiontab.ClickManageEnrollment();
            ManageClassroomCoursePage.ScheduleTab();
            Assert.IsTrue(ManageClassroomCoursePage.Remove_Event(SectionTitle + "TC34041"));
            _test.Log(Status.Pass, "Assertion Pass as Event has been removed");
            #endregion
        }
        public void P20_1_a04_Create_New_Section_with_New_Hybrid_Event_Future_Date_33494()
        {
            #region Create New Course, Add Section with Future Date

            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "TC33494");
            _test.Log(Status.Pass, "New Classroom Course Created");
            Assert.IsTrue(Driver.comparePartialString("The item was created.", ClassroomCoursePage.GetSuccessMessage()));
            ManageClassroomCoursePage.Clicktab("Sections");
            ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
            ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
            Driver.Instance.GetElement(By.XPath("//input[@id='startDate']")).Clear();
            Driver.Instance.GetElement(By.XPath("//input[@id='startDate']")).SendKeys("10/15/2019 5:30 PM");
            Driver.Instance.GetElement(By.XPath("//input[@id='endDate']")).Clear();
            Driver.Instance.GetElement(By.XPath("//input[@id='endDate']")).SendKeys("10/15/2019 6:30 PM");
            IWebElement webElement = Driver.Instance.GetElement(By.XPath("//button[@id='location_0']"));//You can use xpath, ID or name whatever you like
            webElement.SendKeys(Keys.Tab);
            ManageClassroomCoursePage.CreateSection.Create();

            _test.Log(Status.Pass, "Click on Create Button");
            Assert.IsTrue(Driver.existsElement(By.XPath("//a[contains(.,'Section1')]")));
            _test.Log(Status.Pass, "Assertion Pass as Section Has been created and visible with future date");
            #endregion
        }
Beispiel #27
0
        public void tc_63927_As_an_admin_I_want_to_preview_an_email_for_Classroom_sections()
        {
            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "_TC63927");
            ManageClassroomCoursePage.Clicktab("Sections");
            ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
            ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
            ManageClassroomCoursePage.SelectAddDayEventCheckbox();
            ManageClassroomCoursePage.CreateSection.SetEnrollmentStartsDate(1);
            _test.Log(Status.Info, "Set enrollment Start date to one day less from current date");
            ManageClassroomCoursePage.EnterMaximum("2");
            ManageClassroomCoursePage.SelectWaitListasYes();
            ManageClassroomCoursePage.CreateSection.Create();
            _test.Log(Status.Info, "Clcik create button");
            Assert.IsTrue(SectionDetailsPage.isNotificationTabDisplay());
            _test.Log(Status.Pass, "Verify Notification tab is display");
            SectionDetailsPage.ClickNotificationTab();
            _test.Log(Status.Info, "Click Notification tab");
            Assert.IsTrue(SectionDetailsPage.NotificationTab.isEmailTabledisplay());
            _test.Log(Status.Pass, "Verify Email table display in Notification tab");
            SectionDetailsPage.NotificationTab.Action.ClickEdit("FirstRecord");
            Assert.IsTrue(Driver.checkTitle("Edit Email"));
            _test.Log(Status.Pass, "Verify Edit Email page display");
            Assert.IsTrue(EditEmailPage.isPreviewButtondisplay());
            EditEmailPage.ClickPreviewbutton();
            Assert.IsTrue(EditEmailPage.isPreviewEmailModalOpen());
            Assert.IsTrue(EditEmailPage.PreviewEmailModal.isEmailTiteldisplay());
            EditEmailPage.PreviewEmailModal.ClickClose();
            Assert.IsFalse(EditEmailPage.isPreviewButtondisplay());
            _test.Log(Status.Pass, "Verify Preview Email Modal is Closed");

            EditEmailPage.clickBreadcrumb(classroomcoursetitle + "_TC63927");
            ContentDetailsPage.Accordians.ClickEdit_Permissions();
            EditPermissionsPage.clickAssignPermission();
            _test.Log(Status.Info, "Click Assign Permission");
            EditPermissionsPage.AssignPermissionTo("somnath course manager");
            TC63929 = true;
        }
Beispiel #28
0
        public void a15_Enrollment_Set_Individual_Cancellation_33232()
        {
            CommonSection.Logout();
            LoginPage.LoginAs("").WithPassword("").Login();

            #region verify Attendance Required Status For EnrolledUser

            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "TC33232");
            _test.Log(Status.Pass, "New Classroom Course Created");
            Assert.IsTrue(Driver.comparePartialString("The item was created.", ClassroomCoursePage.GetSuccessMessage()));
            ManageClassroomCoursePage.Clicktab("Sections");
            ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
            ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
            //ManageClassroomCoursePage.CreateSection.SectionStartTime("");
            // ManageClassroomCoursePage.CreateSection.SectionEndTime("");
            ManageClassroomCoursePage.CreateSection.SetEnrollmentStartsDate(3);
            ManageClassroomCoursePage.CreateSection.SectionMaxCapacity("1");
            ManageClassroomCoursePage.SelectWaitListasYes();
            _test.Log(Status.Info, "Click Waitlist as Yes");
            ManageClassroomCoursePage.CreateSection.Create();
            // ManageClassroomCoursePage.CreateSection.Create();
            Assert.IsTrue(ClassroomCoursePage.GetNewCreatedSectionLink("Section1"));
            //Assert.IsTrue(Driver.comparePartialString("Success", ClassroomCoursePage.GetUpdatedSuccessMessage()));
            _test.Log(Status.Pass, "Create New Course Section and Event");
            ManageClassroomCoursePage.Sectiontab.ClickManageEnrollment();
            Assert.IsTrue(ManageClassroomCoursePage.Enrollment());
            ManageClassroomCoursePage.Enrollmenttab.ClickEnroll();
            ManageClassroomCoursePage.BatchEnrollUserModal.EnrollUser("ak_learner");
            //ManageClassroomCoursePage.Sectiontab.ClickManageEnrollment();
            //_test.Log(Status.Info, "Click Manage Enrollment action menu");
            //ManageClassroomCoursePage.Enrollmenttab.SearchEnrolledUser("userreg_0403012001people1");
            Assert.AreEqual("No", ManageClassroomCoursePage.Enrollmenttab.AttendanceRequiredStatusForEnrolledUser());
            _test.Log(Status.Pass, "Verify attandance required value is No");
            CommonSection.Logout();
            #endregion

            #region Login with learner and verify Cancel Enrollment under action
            LoginPage.LoginAs("ak_learner").WithPassword("").Login();
            _test.Log(Status.Pass, "Login as a Learner");
            CommonSection.Learner.CurrentTraining();
            CommonSection.SearchCatalog('"' + classroomcoursetitle + "TC33232" + '"');               // ('"' + classroomcoursetitle + '"');
            CatalogPage.ClickonSearchedCatalog(classroomcoursetitle + "TC33232");                    //("ClassRoomCourseTitle2011472447");//
            Assert.IsTrue(CatalogPage.GetCurrentEnrolledTraining(classroomcoursetitle + "TC33232")); // (classroomcoursetitle));
            _test.Log(Status.Pass, "Enrolled classroom course is displaying");
            //CurrentTrainings.ClickAction();

            Assert.AreEqual("Cancel Enrollment", CurrentTrainings.GetActionStatus());
            _test.Log(Status.Pass, "Cancel Enrollment is display in Action section");
            CommonSection.Logout();
            #endregion

            #region Login as admin and update Attendance Required Status For EnrolledUser from No to Yes
            LoginPage.LoginAs("").WithPassword("").Login();
            _test.Log(Status.Pass, "Login as a Admin");
            CommonSection.CatalogSearchText('"' + classroomcoursetitle + "TC33232" + '"'); //('"' + classroomcoursetitle + '"');
            CatalogPage.ClickonSearchedCatalog(classroomcoursetitle + "TC33232");          // (classroomcoursetitle);
            _test.Log(Status.Pass, "Search Catalog");
            CatalogPage.ClickEditContent();
            _test.Log(Status.Info, "Click Edit Content");
            ManageClassroomCoursePage.Clicktab("Sections");
            _test.Log(Status.Info, "Click on Sections Tab");
            ManageClassroomCoursePage.Sectiontab.ClickManageEnrollment();
            _test.Log(Status.Info, "Click Manage Enrollment action menu");
            ManageClassroomCoursePage.Enrollmenttab.ClickEnroll();
            ManageClassroomCoursePage.BatchEnrollUserModal.EnrollUser("ak_learner");

            ManageClassroomCoursePage.Enrollmenttab.SearchEnrolledUser("ak_learner");
            ManageClassroomCoursePage.Enrollmenttab.UpdateAttendanceRequiredfromNotoYes();
            _test.Log(Status.Info, "Update Attendance Required from No to Yes");
            Assert.AreEqual("Yes", ManageClassroomCoursePage.Enrollmenttab.AttendanceRequiredStatusForEnrolledUser());
            //Assert.IsTrue(Driver.comparePartialString("Success", ManageClassroomCoursePage.GetUpdatedSuccessMessage()));
            CommonSection.Logout();
            #endregion

            #region Re Login with learner and verify Cancel Enrollment under action
            LoginPage.LoginAs("ak_learner").WithPassword("").Login();
            _test.Log(Status.Pass, "Login as a Learner");
            CommonSection.Learner.CurrentTraining();
            CommonSection.SearchCatalog('"' + classroomcoursetitle + "TC33232" + '"'); // ('"' + classroomcoursetitle + '"');
            CatalogPage.ClickonSearchedCatalog(classroomcoursetitle + "TC33232");      // (classroomcoursetitle);
            Assert.IsTrue(CatalogPage.GetCurrentEnrolledTraining(classroomcoursetitle + "TC33232"));
            _test.Log(Status.Pass, "Enrolled classroom course is displaying");

            Assert.AreNotEqual("Cancel Enrollment", CurrentTrainings.GetActionStatusForCancelEnrollment());

            #endregion
        }
        public void A12_As_an_Admin_access_a_survey_report_of_Classroom_Course_from_the_admin_content_details_page_with_scope_limited_to_the_current_content_item_36034()
        {
            #region Pre-requisite of Testcase
            CommonSection.CreateGeneralCourse(generalcoursetitle + "TC36034");
            _test.Log(Status.Pass, "Create general Course");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Pass, "Click Check In button");

            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "TC36034");
            _test.Log(Status.Info, "A new Classroom Course Created");
            string ContentTitle = AdminContentDetailsPage.Title(classroomcoursetitle + "TC36034");
            AdminContentDetailsPage.ManageSurveys();
            _test.Log(Status.Info, "Add survey to the Classroom");
            string SurveyTitle = SurveysPage.SurveysTitle("Before Course Start");
            SurveysPage.Click_backbutton();
            _test.Log(Status.Info, "Go back to the Classroom Course");
            ManageClassroomCoursePage.Clicktab("Sections");
            _test.Log(Status.Info, "Click Section Tab");
            ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
            _test.Log(Status.Info, "Click Add New Section Tab");
            ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
            _test.Log(Status.Info, "Enter Section Title");
            ManageClassroomCoursePage.CreateSection.SectionMaxCapacity("3");
            _test.Log(Status.Info, "fill maximum capacity as 3");
            string SectionStartDate = CreateNewCourseSectionAndEventPage.SectionStartDate();
            string SectionEndDate   = CreateNewCourseSectionAndEventPage.SectionEndDate();
            ManageClassroomCoursePage.SelectWaitListasYes();
            _test.Log(Status.Info, "Click Waitlist as Yes");
            ManageClassroomCoursePage.CreateSection.SetEnrollmentStartsDate(1);
            _test.Log(Status.Info, "Set enrollment Date");

            ManageClassroomCoursePage.CreateSection.Create();
            _test.Log(Status.Info, "Click Create Button");
            Assert.IsTrue(ClassroomCoursePage.GetNewCreatedSectionLink("Section1"));
            _test.Log(Status.Pass, "Verify Section1 is created");

            SectionsPage.ListofSections.ClickSectionTitle();
            _test.Log(Status.Info, "Click On section title");
            SectionDetailsPage.ClickContentTab();
            _test.Log(Status.Info, "Click on Content Tab ");
            Assert.IsTrue(ContentPage.SectionContentPageopened());
            _test.Log(Status.Pass, "Verify Content tab is display");
            ContentPage.ClickAddContent(generalcoursetitle + "TC36034");
            _test.Log(Status.Pass, "Add Content To Classroom course");
            ContentPage.ContentTab.AvailabletoLearner("Yes, when learner enrolls");
            _test.Log(Status.Pass, "Select Available to Learner");
            CommonSection.SearchCatalog(classroomcoursetitle + "TC36034");
            _test.Log(Status.Info, "Search Created Course");

            CommonSection.Logout();
            _test.Log(Status.Pass, "Logout From SiteAdmin Account");
            LoginPage.LoginAs("ak_learner").WithPassword("").Login();
            _test.Log(Status.Info, "Login From Learner Account");
            CommonSection.SearchCatalog(classroomcoursetitle + "TC36034");
            _test.Log(Status.Info, "Search Created Course");
            SearchResultsPage.ClickCourseTitle(classroomcoursetitle + "TC36034");
            _test.Log(Status.Info, "Click Course Title");
            ContentDetailsPage.ClickEnroll();
            _test.Log(Status.Info, "Click on Enroll");
            ContentDetailsPage.CourseMaterials.ClickContent(generalcoursetitle + "TC36034");
            _test.Log(Status.Info, "Click Content in Course Material");
            ContentDetailsPage.EnrolGeneralCourse();
            ContentDetailsPage.ClickOpenItem();
            _test.Log(Status.Info, "Click on Open New Attempt");
            ContentDetailsPage.MarkComplete();
            _test.Log(Status.Info, "Click on Open New Attempt");
            CommonSection.Logout();
            _test.Log(Status.Pass, "Logout From SiteAdmin Account");
            LoginPage.LoginAs("siteadmin").WithPassword("").Login();
            _test.Log(Status.Info, "Login From Learner Account");
            CommonSection.SearchCatalog(classroomcoursetitle + "TC36034");
            _test.Log(Status.Info, "Search Created Course");
            SearchResultsPage.ClickCourseTitle(classroomcoursetitle + "TC36034");
            _test.Log(Status.Info, "Click Course Title");
            ContentDetailsPage.ClickEditContent();
            _test.Log(Status.Info, "Click on Edit Content");
            SectionDetailsPage.ClickContentTab();
            _test.Log(Status.Info, "Click on Content Tab ");
            SectionsPage.ClickSectionTitle("Section1");
            _test.Log(Status.Info, "Click on Section Title ");
            SectionDetailsPage.ClickGradebookTab();
            _test.Log(Status.Info, "Click on Gradebook tab");
            GradebookPage.GradebookTab.SelectLearner("ak learner");
            _test.Log(Status.Info, "Select Learner");
            GradebookPage.GradebookTab.ProgressStatus("Completed");
            _test.Log(Status.Info, "Select Progress Status as Completed");
            GradebookPage.GradebookTab.SelectLearner("ak learner");
            _test.Log(Status.Info, "Select Learner");
            GradebookPage.GradebookTab.AttendenceStatus("Yes");
            _test.Log(Status.Info, "Select Progress Status");
            CommonSection.Logout();
            _test.Log(Status.Pass, "Logout From SiteAdmin Account");
            LoginPage.LoginAs("ak_learner").WithPassword("").Login();
            _test.Log(Status.Info, "Login From Learner Account");
            HomePage.CompletedTrainingPortlet.Click_CourseTitle(classroomcoursetitle + "TC36034");
            _test.Log(Status.Info, "Click on Course title");

            ContentDetailsPage.SurveyPortlet.ClickonattachedSurvey("Before Course Start");
            _test.Log(Status.Info, "Click Attached Survey");
            ContentDetailsPage.SurveyPortlet.CompleteSurvey();
            _test.Log(Status.Info, "Complete Survey");


            #endregion
            CommonSection.Logout();
            _test.Log(Status.Pass, "Logout From SiteAdmin Account");
            LoginPage.LoginAs("siteadmin").WithPassword("").Login();
            _test.Log(Status.Info, "Login From Learner Account");
            CommonSection.Manage.Training();
            _test.Log(Status.Info, "Click on training under manage in Common Section ");
            TrainingPage.ManageContentPortlet.SearchForContent(classroomcoursetitle + "TC36034");
            _test.Log(Status.Info, "Search the course through manage content ");

            ManageContentPage.ClickContentTitle(classroomcoursetitle + "TC36034");
            _test.Log(Status.Info, "Click on Coure title ");
            Assert.IsTrue(ContentDetailsPage.isDisplayed());
            _test.Log(Status.Pass, "verify Content Details page");
            ContentDetailsPage.SurveyPortlet.Click_SurveyReport();
            _test.Log(Status.Pass, "Click on survey Report");
            Assert.IsTrue(SurveyReportPage.isSurveyDisplayed(SurveyTitle));
            _test.Log(Status.Pass, "Verify Survey is Displayed");
            Assert.IsTrue(SurveyReportPage.isContentTitleDisplayed(ContentTitle));
            _test.Log(Status.Pass, "Verify Content Title is Displayed");
            Assert.IsTrue(SurveyReportPage.isDropDownDisplayed());
            _test.Log(Status.Pass, "Verify DropDown is Displayed");
            Assert.IsTrue(SurveyReportPage.VerifyStartandEndDate(SectionStartDate, SectionEndDate));
            _test.Log(Status.Pass, "Verify section Start date and End date");
            SurveyReportPage.Click_Filter();
            _test.Log(Status.Info, "Select Section and Click on Filter ");
            Assert.IsTrue(SurveyReportPage.isReportGenerated());
            _test.Log(Status.Pass, "Verify report is generated ");
            SurveyReportPage.Goback();
            _test.Log(Status.Pass, "Go back to AdminContentdetailsPage");
            ManageClassroomCoursePage.Clicktab("Sections");
            _test.Log(Status.Info, "Click Section Tab");
            SectionsPage.ClickSectionTitle("Section1");
            _test.Log(Status.Info, "Click on Section Title ");
            SectionDetailsPage.SurveysPortlet.Click_Report();
            _test.Log(Status.Info, "Click on report");
            Assert.IsTrue(SurveyReportPage.isSurveyDisplayed(SurveyTitle));
            _test.Log(Status.Pass, "Verify Survey is Displayed");
            Assert.IsTrue(SurveyReportPage.isContentTitleDisplayed(ContentTitle));
            _test.Log(Status.Pass, "Verify Content Title is Displayed");
        }
Beispiel #30
0
        public void a20_Test_When_User_Adds_Learner_to_WaitList_33509()
        {
            CommonSection.Logout();
            LoginPage.LoginAs("").WithPassword("").Login(); //Login as admin
            #region create new course, add section to it and enroll

            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "WaitlistTC33509");
            _test.Log(Status.Pass, "New Classroom Course Created");
            Assert.IsTrue(Driver.comparePartialString("The item was created.", ClassroomCoursePage.GetSuccessMessage()));
            ManageClassroomCoursePage.Clicktab("Sections");
            ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
            ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
            //ManageClassroomCoursePage.CreateSection.SectionStartTime("");
            // ManageClassroomCoursePage.CreateSection.SectionEndTime("");
            ManageClassroomCoursePage.CreateSection.SetEnrollmentStartsDate(3);
            ManageClassroomCoursePage.CreateSection.SectionMaxCapacity("1");
            ManageClassroomCoursePage.SelectWaitListasYes();
            ManageClassroomCoursePage.CreateSection.Create();
            Assert.IsTrue(ClassroomCoursePage.GetNewCreatedSectionLink("Section1"));
            //Assert.IsTrue(Driver.comparePartialString("Success", ClassroomCoursePage.GetUpdatedSuccessMessage()));
            _test.Log(Status.Pass, "Create New Course Section and Event");
            ManageClassroomCoursePage.Sectiontab.ClickManageEnrollment();
            Assert.IsTrue(ManageClassroomCoursePage.Enrollment());
            ManageClassroomCoursePage.Enrollmenttab.ClickEnroll();
            ManageClassroomCoursePage.BatchEnrollUserModal.EnrollUser("ak_learner");
            //Assert.IsTrue(Driver.comparePartialString("Success", ManageClassroomCoursePage.GetUpdatedSuccessMessage()));
            _test.Log(Status.Pass, "User Enrolled into select course successfully ");
            //Driver.waitlistrefresh();
            //EnrollmentPage.EnrollmentTab.AddWaitListed();
            // CommonSection.Logout();
            // _test.Log(Status.Pass, "Admin user logged out successfully");
            #endregion
            //LoginPage.GoTo();
            //LoginPage.LoginClick();
            //LoginPage.LoginAs("").WithPassword("").Login(); //Login as admin
            //CommonSection.Manage.Training();
            //_test.Log(Status.Info, "Navigating to Manage Training Page");
            CommonSection.CatalogSearchText(classroomcoursetitle + "WaitlistTC33509");//Search for Course ABCD
            SearchResultsPage.CheckSearchRecord(classroomcoursetitle + "WaitlistTC33509");
            SearchResultsPage.ClickCourseTitle(classroomcoursetitle + "WaitlistTC33509");
            ContentDetailsPage.ClickEditContent();
            ManageClassroomCoursePage.Clicktab("Sections");


            SectionsPage.ClickManageEnrollmentButton();
            EnrollmentPage.EnrollmentTab.ClickWaitlistedSubTab();
            EnrollmentPage.EnrollmentTab.ClickWaitlistUsers();
            ManageClassroomCoursePage.Enrollmenttab.EnrollwaitlistUser("Site Administrator");
            //EnrollmentPage.ClickViewAslearner();
            //ContentDetailsPage.ClickEditContent();
            CommonSection.CatalogSearchText(classroomcoursetitle + "WaitlistTC33509");//Search for Course ABCD
            SearchResultsPage.CheckSearchRecord(classroomcoursetitle + "WaitlistTC33509");
            SearchResultsPage.ClickCourseTitle(classroomcoursetitle + "WaitlistTC33509");
            ContentDetailsPage.ClickEditContent();

            ManageClassroomCoursePage.Clicktab("Sections");
            ManageClassroomCoursePage.Sectionsdropdown.SelectManageoption("Manage Waitlist");
            _test.Log(Status.Info, "must select a section with no seats avialable and start date is in the future");

            ManageClassroomCoursePage.Enrollmenttab.ClickWaitlistUsers();

            //SectionsPage.ClickManageEnrollmentButton();
            //EnrollmentPage.CickWaitListUsersButton();
            _test.Log(Status.Info, "Validate a new Modal opens with a search box and search results are displayed ");
            Assert.IsTrue(ManageClassroomCoursePage.Enrollmenttab.WaitListUserModelDisplay());
            ManageClassroomCoursePage.Enrollmenttab.EnrollwaitlistUser("shivam 1");

            Assert.IsTrue(ManageClassroomCoursePage.Enrollmenttab.WaitListUserCount());
            _test.Log(Status.Info, "Validate User has been Waitlisted ");
        }