[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");
        }
Exemple #2
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
        }
Exemple #3
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
        }
Exemple #4
0
 public void a09_Launch_General_Course_26250()
 {
     #region Creating general course
     CommonSection.CreateLink.GeneralCourse();
     _test.Log(Status.Info, "Creating a Paid General Course");
     GeneralCoursePage.CreateGeneralCourse(generalcourse + "TC26250", "Test General Course");
     DocumentPage.ClickButton_CheckIn();
     _test.Log(Status.Info, "General course created");
     #endregion
     CommonSection.Logout();
     _test.Log(Status.Info, "Logout from admin");
     LoginPage.LoginAs("ak_learner").WithPassword("password").Login();
     _test.Log(Status.Info, "Login with Learner");
     CommonSection.SearchCatalog(generalcourse + "TC26250");
     _test.Log(Status.Info, "Searching for general course from catalog");
     CatalogPage.ClickonSearchedCatalog(generalcourse + "TC26250");
     GeneralCoursePage.completeGeneralCourse();
     TC_26224 = true;
     _test.Log(Status.Pass, "Assertion Pass as Learner Launched & Completed the General Course");
 }
Exemple #5
0
 public void a15_Self_Cancel_Enrollment_in_Classroom_Course_14435()
 {
     #region Login with learner and Cancel Enrollment for an Enrolled Classroom Course
     //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 + '"');               // ('"' + classroomcoursetitle + '"');
     _test.Log(Status.Info, "Search course name as" + classroomcoursetitle);
     CatalogPage.ClickonSearchedCatalog(classroomcoursetitle);                    //("ClassRoomCourseTitle2011472447");//
     _test.Log(Status.Info, "Click on Course title");
     Assert.IsTrue(CatalogPage.GetCurrentEnrolledTraining(classroomcoursetitle)); // (classroomcoursetitle));
     _test.Log(Status.Pass, "Enrolled classroom course is displaying");
     //CurrentTrainings.ClickAction();
     CatalogPage.CancelEnrollment();
     _test.Log(Status.Info, "Click on Cancel Enrollment");
     Assert.IsTrue(CatalogPage.GetMessages());
     _test.Log(Status.Pass, "Verify successful message is display");
     #endregion
 }
Exemple #6
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
        }