Exemple #1
0
        public void b15_As_Course_Manager_View_Files_And_Notes_For_Classroom_Section_33931()

        {
            CommonSection.Logout();
            LoginPage.LoginAs("somnath1_learner").WithPassword("").Login(); //Login as Course Manager
            #region Manage Classroom Course
            CommonSection.Manage.Training();

            TrainingPage.ManageContentPortlet.SearchForContent(classroomcoursetitle + "TC34067");
            // StringAssert.AreEqualIgnoringCase(classroomcoursetitle + "TC34067", SearchResultsPage.GetSuccessMessage(), "Error message is different");//verify  text
            TrainingPage.ClickSearchRecord(classroomcoursetitle + "TC34067");
            // StringAssert.AreEqualIgnoringCase(classroomcoursetitle + "TC34067", ClassroomCoursePage.GetSuccessMessage(), "Error message is different");//verify  text
            ManageClassroomCoursePage.Clicktab("Sections");
            _test.Log(Status.Info, "Clcik on Sections Tab");
            #endregion
            SectionsPage.ListofSections.ClickSectionTitle();
            // Assert.IsTrue(SectionDetailsPage);
            SectionDetailsPage.ClickContentTab();
            _test.Log(Status.Pass, "Verify Content tab is display");
            // Assert.IsTrue(SectionContentPage);
            Assert.IsTrue(ContentPage.ContentTab.ListFirstNotesdisplay());
            _test.Log(Status.Pass, "Verify Note is display");//Verify Files and Notes page for the sections is displayed with associated Notes and Files
            ContentPage.ContentTab.ClickAssignmentTitle();
            Assert.IsTrue(ContentPage.ContentTab.AddNoteModaldisplay());
            _test.Log(Status.Pass, "Add Note Modal is opened");// Verify the File opens and can be viewed
        }
        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");
        }
        public void tc_63422_Classroom_Attendance_and_progress_Multi_Event_with_Items_in_gradebook()
        {
            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "_TC63422");
            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.ClickContentTab();
            SectionDetailsPage.ContentTab.SelectAddAssignmentAddContentdropdown("Add Assignment");
            _test.Log(Status.Info, "Select Add Note from Add Content Dropdown");
            SectionDetailsPage.ContentTab.AddAssignmentAs("Graded Assignment");
            SectionDetailsPage.ClickGradebookTab();
            Assert.IsTrue(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");
            SectionDetailsPage.GradebookTab.GradesSubTab.ClickGrades();
            Assert.IsTrue(SectionDetailsPage.GradebookTab.GradesSubTab.isGradeSubmissionsButtonDisplay());
            _test.Log(Status.Pass, "Verify Grade Submissions Button display inside Grades Sub Tab ");
            Assert.IsTrue(SectionDetailsPage.GradebookTab.GradesSubTab.isGradesOnlyButtonDisplay());
            _test.Log(Status.Pass, "Verify Grades Only Button is display in Grades Sub Tab");
        }
        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");
        }
        public void tc_63342_As_admin_verify_the_Subtab_Grades()
        {
            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "_TC63342");
            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.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.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.IsFalse(SectionDetailsPage.GradebookTab.isGradesSubTabDisplay());
            _test.Log(Status.Pass, "Verify Grades Sub Tab is not visible in Gradebook and Attendance tab");

            //for Recurring recurring
            ManageClassroomCoursePage.ClickSectionBreadcrumb();
            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.ClickSelectInstructorButton();
            ManageClassroomCoursePage.SelectInstructorModal.SearchInstructor("Somnath");
            _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.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");
            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.Enrollment());
            ManageClassroomCoursePage.ClickEnrollmentTab();
            ManageClassroomCoursePage.Enrollmenttab.ClickEnroll();
            ManageClassroomCoursePage.BatchEnrollUserModal.EnrollUser("somnath");
            _test.Log(Status.Pass, "User Enrolled into select course successfully ");
            SectionDetailsPage.ClickGradebookTab();
            Assert.IsTrue(SectionDetailsPage.GradebookTab.isGradesSubTabDisplay());
            _test.Log(Status.Pass, "Verify Grades Sub Tab display in Gradebook and Attendance tab");
            SectionDetailsPage.GradebookTab.GradesSubTab.ClickGrades();
            Assert.IsTrue(SectionDetailsPage.GradebookTab.GradesSubTab.isGradeSubmissionsButtonDisplay());
            _test.Log(Status.Pass, "Verify Grade Submissions Button display inside Grades Sub Tab ");
            Assert.IsTrue(SectionDetailsPage.GradebookTab.GradesSubTab.isGradesOnlyButtonDisplay());
            _test.Log(Status.Pass, "Verify Grades Only Button is display in Grades Sub Tab");
            Assert.IsTrue(SectionDetailsPage.GradebookTab.GradesSubTab.GradeSubmissions.isusertabledisplay());
            Assert.IsTrue(SectionDetailsPage.GradebookTab.GradesSubTab.GradeSubmissions.UserTablecolumnHeaders("Name", "Score", "Attendance", "Graded Assignment"));
        }