public static SectionsPage GetSectionsPage(Uri endpoint) { HttpResponseMessage response = client.GetAsync(endpoint).Result; SectionsPage sectionsPage = response.Content.ReadAsAsync <SectionsPage>().Result; return(sectionsPage); }
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 static List <Section> GetSectionsByCategories(long categoryId) { SectionsPage result = new SectionsPage(); string startEndpoint = String.Format(sectionsByCategoryEndpoint, Tools.AppConfiguration.ZendeskEndpoint, Tools.AppConfiguration.Locale, categoryId); HttpResponseMessage response = client.GetAsync(startEndpoint).Result; result = response.Content.ReadAsAsync <SectionsPage>().Result; return(result.Sections); }
[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 static List <Section> GetAllSections() { List <Section> result = new List <Section>(); string startEndpoint = sectionsEndpoint; while (startEndpoint != null) { SectionsPage sectionPage = GetSectionsPage(new Uri(startEndpoint)); result.AddRange(sectionPage.Sections); startEndpoint = sectionPage.NextPage; } return(result); }
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"); }
public void InitializeBase(IWebDriver driver) { homePage1 = new HomePage(driver); loginPage1 = new LoginPage(driver); helpPage1 = new HelpPage(driver); commonSection = new CommonSection(driver); trainingPage1 = new TrainingPage(driver); searchResultsPage1 = new SearchResultsPage(driver); classroomDetailsPage1 = new ClassroomCourseDetailsPage(driver); sectionPage1 = new SectionsPage(driver); createNewCourseSectionAndEventPage1 = new CreateNewCourseSectionAndEventPage(driver); manageUsersPage1 = new ManageUsersPage(driver); organizationsPage1 = new OrganizationsPage(driver); careersPage1 = new CareersPage(driver); reportConsolePage1 = new ReportsConsolePage(driver); detailsPage1 = new DetailsPage(driver); runReportPage1 = new RunReportPage(driver); meridianGlobalReportingPage1 = new MeridianGlobalReportingPage(driver); myTrainingProgressPDFPage1 = new MyTrainingProgressPDFPage(driver); contentDetailsPage1 = new ContentDetailsPage(driver); reportsPage1 = new ReportsPage(driver); summaryPage1 = new SummaryPage(driver); createPage1 = new CreatePage(driver); courseLaunchModalPage1 = new CourseLaunchModalPage(driver); systemCertificatePage1 = new SystemCertificatePage(driver); certificatePage1 = new CertificatePage(driver); //LoginPage = new MdnHomePage(driver); //LoginPage1 = new MdnLoginPage1(driver); //HomePage = new MdnHomePage(driver); //CommonPage = new MdnCommonPage(driver); //#region initialize old //driver = driver; //CheckOutobj = new CheckOut(driver); //takeScreenhsot = new ScreenShot(driver); //approvalrequest = new Approvalrequestobject(driver); //instructors = new Instructor(driver); //approvalrequest = new Approvalrequestobject(driver); //DomainConsoleobj = new DomainConsole(driver); //ManageGradebookobj = new ManageGradebook(); //Instructorsobj = new Instructorspof(); //MyResponsibilitiesobj = new My_Responsibilities(driver); //manageuserobj = new ManageUsers(driver); //objTrainingHome = new TrainingHomes(driver); //objCurriculum = new CreateCurriculum(driver); //classroomcourse = new ClassroomCourse(driver); //ContentSearchobj = new ContentSearch(driver); //objCreate = new Create(driver); //detailspage = new Details(driver); //TrainingHomeobj = new TrainingHomes(driver); //AdminstrationConsoleobj = new AdminstrationConsole(driver); //Testsobj = new Tests(driver); //Detailsobj = new Details(driver); //EditSummaryobj = new EditSummary(driver); //Scorm1_2obj = new Scorm1_2(driver); //EditQuestionobj = new EditQuestion(driver); //EditQuestionGroupobj = new EditQuestionGroup(driver); //AddUsrObj = new AddUsers(driver); //generalcourseobj = new GeneralCourse(driver); //myteachingscheduleobj = new MyTeachingSchedule(); //professionaldevelopmentobj = new ProfessionalDevelopments(driver); //documentobj = new Document(driver); //CreateNewAccountobj = new CreateNewAccount(driver); //ManageUsersobj = new ManageUsers(driver); //Createobj = new Create(driver); //summaryobj = new Summary(driver); //reauiredtrainingconsoleobj = new RequiredTrainingConsoles(driver); //requiredtrainingobj = new RequiredTraining(driver); //Trainingobj = new Training(driver); //Loginobj = new Login(driver); //Contentobj = new Content(driver); //Creditsobj = new Credits(driver); //AddContentobj = new AddContent(driver); //Summaryobj = new Summary(driver); //ScheduleAndManageSectionobj = new ScheduleAndManageSection(driver); //SearchResultsobj = new SearchResults(driver); //CourseSectionobj = new CreateNewCourseSectionAndEventPage(driver); //Transcriptsobj = new Transcripts(driver); //Productsobj = new Products(driver); //BrowseTrainingCatalogobj = new BrowseTrainingCatalog(driver); //ShoppingCartsobj = new ShoppingCarts(driver); //ProfessionalDevelopmentsobj = new ProfessionalDevelopments(driver); //Createnewproficencyscaleobj = new Createnewproficencyscale(driver); //Createnewcompetencyobj = new Createnewcompetency(driver); //CreateNewSucessProfileobj = new CreateNewSucessProfile(driver); //SucessProfileobj = new SucessProfile(driver); //Searchobj = new Search(driver); //TrainingActivitiesobj = new TrainingActivities(driver); //ProfessionalDevelopments_learnerobj = new ProfessionalDevelopments_learner(driver); //Organizationobj = new Organization(driver); //DevelopmentPlansobj = new DevelopmentPlans(driver); //AddDevelopmentActivitiesobj = new AddDevelopmentActivities(driver); //MyAccountobj = new MyAccount(driver); //UsersUtilobj = new UsersUtil(driver); //MyCalendersobj = new MyCalenders(driver); //MyReportsobj = new MyReports(driver); //Config_Reportsobj = new Config_Reports(driver); //ConfigurationConsoleobj = new ConfigurationConsole(driver); //ApprovalPathobj = new ApprovalPath(driver); //MyMessageobj = new MyMessages(driver); //MessageUtilobj = new MessageUtil(driver); //MyRequestsobj = new MyRequests(driver); //Blogsobj = new Blogs(driver); //CollabarationSpacesobj = new CollabarationSpaces(driver); //Faqsobj = new Faqs(driver); //HomePageFeedobj = new HomePageFeed(driver); //ProductTypesobj = new ProductTypes(driver); //Surveysobj = new Surveys(driver); //SurveyScalesobj = new SurveyScales(driver); //AuditingConsolesobj = new AuditingConsoles(driver); //Categoryobj = new Category(driver); //Trainingsobj = new Trainings(driver); //VirtualMeetingsobj = new VirtualMeetings(driver); //CreditTypeobj = new CreditType(driver); //AssignedUserobj = new AssignedUser(driver); //AddUsersobj = new AddUsers(driver); //CustomFieldobj = new CustomField(driver); //CreateNewCustomFieldobj = new CreateNewCustomField(driver); //EditFieldobj = new EditField(driver); //EducationLevelobj = new EducationLevel(driver); //EditOrganizationobj = new EditOrganization(driver); //SelectManagerobj = new SelectManager(driver); //Roleobj = new Role(driver); //SelectTrainingPOCobj = new SelectTrainingPOC(driver); //Complexobj = new Complex(driver); //AccountCodesobj = new AccountCodes(driver); //AccountCodeTypesobj = new AccountCodeTypes(driver); //DiscountCodesobj = new DiscountCodes(driver); //ManageTaxRatesobj = new ManageTaxRates(driver); //TaxItemCategoriesobj = new TaxItemCategories(driver); //Certificatesobj = new Certificates(driver); //CourseProvidersobj = new CourseProviders(driver); //ExternalLearningsobj = new ExternalLearnings(driver); //ExternalLearningConsolesobj = new ExternalLearningConsoles(driver); //ExternalLearningtypesobj = new ExternalLearningtypes(driver); //RequiredTrainingConsolesobj = new RequiredTrainingConsoles(driver); //SelectProfileobj = new SelectProfile(driver); //TrainingProfilesobj = new TrainingProfiles(driver); //EditTrainingProfileobj = new EditTrainingProfile(driver); //MergeUsersobj = new MergeUsers(driver); //UserGroupobj = new UserGroup(driver); //SelectCertificateobj = new SelectCertificate(driver); //ManageProficencyScaleobj = new ManageProficencyScale(driver); //ArchivedProficencyScaleobj = new ArchivedProficencyScale(driver); //MappedContentobj = new MappedContent(driver); //MappedCompetencyobj = new MappedCompetency(driver); //ManageSuccessProfileobj = new ManageSuccessProfile(driver); //FAQ_lobj = new FAQ_l(driver); //Announcements_lobj = new Announcements_l(driver); //JobTitlesobj = new JobTitles(driver); //ManageJobTitleobj = new ManageJobTitle(driver); //ManagePricingScheduleobj = new ManagePricingSchedule(driver); //ExternalLearningSearchobj = new ExternalLearningSearch(driver); //urlobj = new url(driver); //skinobj = new skin(driver); //MyOwnLearningobj = new MyOwnLearningUtils(driver); //CurrentTrainingsobj = new CurrentTrainings(driver); //scormobj = new Scorm12(driver); //aicccourse = new AICC(driver); //ojtcourse = new OJT(driver); //TrainingCatalogobj = new TrainingCatalogUtil(driver); //accesskeys = new AccessKeys(driver); //#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"); }
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 "); }