Exemple #1
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
        }
Exemple #2
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");
        }
Exemple #3
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");
        }
Exemple #4
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
        }