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"); }
[Test] //Depend on 34724 public void a02_Copy_Section_without_Section_Content_and_Gradebook_34725() { CommonSection.SearchCatalog('"' + classroomcoursetitle + "TC34724" + '"'); CatalogPage.ClickonSearchedCatalog(classroomcoursetitle + "TC34724"); ContentDetailsPage.ClickEditContent(); ManageClassroomCoursePage.Clicktab("Sections"); SectionsPage.SelectCopySectionformActionDropdown(); SectionsPage.CopySectionModal.CopywithGradebooktoggle("No"); _test.Log(Status.Info, "Copy new section with Include section content and gradebook toggle option as Yes"); SectionsPage.ClickSectionTitle("Section1-Copy-WithNo"); ManageClassroomCoursePage.Click_Gradebook(); Assert.IsFalse(GradebookPage.GradebookTab.VerifyGradedContentisNotDisplay()); _test.Log(Status.Pass, "Assertion Pass Gradebook are not Available for new section"); ManageClassroomCoursePage.DeleteContent(classroomcoursetitle + "TC34724"); }
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"); }