public void b08_Manage_Document_Add_Access_Period_updated__13362() { CommonSection.Manage.Training(); _test.Log(Status.Info, "Verify Add version Button is Displayed"); TrainingPage.ManageContentPortlet.SearchForContent(DocumentTitle + "TC13361"); _test.Log(Status.Info, "Search for Content"); ManageContentPage.ClickContentTitle(DocumentTitle + "TC13361"); _test.Log(Status.Info, "Click on Course title "); ContentDetailsPage.Click_CheckOut(); _test.Log(Status.Info, "Click on Coure title "); string AccessPeriod = ContentDetailsPage.AccessPeriod(); ContentDetailsPage.Edit_AddAccessPeriod("6"); _test.Log(Status.Info, "Edit Access Period"); Assert.IsTrue(Driver.comparePartialString("The changes were saved.", ContentDetailsPage.VerifySuccessMessage())); _test.Log(Status.Pass, "Verify Success message"); string UpdatedAccessPeriod = ContentDetailsPage.AccessPeriod(); Assert.IsTrue(ContentDetailsPage.VerifyUpdatedAccessPeriod(AccessPeriod, UpdatedAccessPeriod)); ContentDetailsPage.Click_Check_in(); _test.Log(Status.Info, "Click on Check In"); AdminContentDetailsPage.DropDownToggle.ViewAsLearner(); _test.Log(Status.Info, "Click on View As Learner"); Assert.IsTrue(ContentDetailsPage.verifyUpdatedAccessPeriod(UpdatedAccessPeriod)); _test.Log(Status.Info, "Verify Access Period"); }
public void P20_1_z04_Document_Add_Version_7481() { CommonSection.Manage.Training(); _test.Log(Status.Info, "Verify Add version Button is Displayed"); TrainingPage.ManageContentPortlet.SearchForContent(DocumentTitle + "TC7480"); _test.Log(Status.Info, "Search for Content"); ManageContentPage.filtersearch.Searchfortext(DocumentTitle + "TC7480"); ManageContentPage.Clickflitersearch(); ManageContentPage.ClickContentTitle(DocumentTitle + "TC7480"); _test.Log(Status.Info, "Click on Coure title "); Assert.IsTrue(AdminContentDetailsPage.VerifyAddVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); AdminContentDetailsPage.AddVersion(); _test.Log(Status.Info, "Verify Add version Button is Displayed"); Assert.IsTrue(Driver.comparePartialString(" The new version was added for the content item.", AdminContentDetailsPage.VerifyNewVersionSuccessMessage())); _test.Log(Status.Pass, "Verify New Version Success Message"); Assert.IsTrue(AdminContentDetailsPage.VerifyAddedVersionsInDropDownlist()); _test.Log(Status.Pass, "Verify New Version Success Message"); Assert.IsTrue(AdminContentDetailsPage.VerifyAddVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); Assert.IsTrue(AdminContentDetailsPage.VerifyDeleteVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); Assert.IsTrue(AdminContentDetailsPage.VerifyManageVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); }
public void A13_As_an_Admin_access_a_survey_report_of_Online_Course_from_the_admin_content_details_page_with_scope_limited_to_the_current_content_item_36035() { #region Pre-requisite of Testcase CommonSection.CreateGeneralCourse(generalcoursetitle + "TC36035"); _test.Log(Status.Pass, "Create general Course"); string ContentTitle = AdminContentDetailsPage.Title(generalcoursetitle + "TC36035"); AdminContentDetailsPage.ManageSurveys(); _test.Log(Status.Info, "Add survey to the Classroom"); string SurveyTitle = SurveysPage.SurveysTitle("Before Course Start"); AdminContentDetailsPage.ClickCheckInbutton(); _test.Log(Status.Pass, "Click Check In button"); 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(generalcoursetitle + "TC36035"); _test.Log(Status.Info, "Search Created Course"); SearchResultsPage.ClickCourseTitle(generalcoursetitle + "TC36035"); _test.Log(Status.Info, "Click Course Title"); ContentDetailsPage.ClickEnroll(); _test.Log(Status.Info, "Click on Enroll"); ContentDetailsPage.ClickOpenItem(); _test.Log(Status.Info, "Click on Open New Attempt"); ContentDetailsPage.MarkComplete(); _test.Log(Status.Info, "Click on Open New Attempt"); 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(generalcoursetitle + "TC36035"); _test.Log(Status.Info, "Search the course through manage content "); ManageContentPage.ClickContentTitle(generalcoursetitle + "TC36035"); _test.Log(Status.Info, "Click on Coure title "); 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.IsFalse(SurveyReportPage.isDropDownDisplayed()); _test.Log(Status.Pass, "Verify DropDown is Displayed"); 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 "); }
public void b09_Manage_Document_Remove_Access_Period_updated__13363() { CommonSection.Manage.Training(); _test.Log(Status.Info, "Verify Add version Button is Displayed"); TrainingPage.ManageContentPortlet.SearchForContent(DocumentTitle + "TC13361"); _test.Log(Status.Info, "Search for Content"); ManageContentPage.ClickContentTitle(DocumentTitle + "TC13361"); _test.Log(Status.Info, "Click on Course title "); ContentDetailsPage.Click_CheckOut(); _test.Log(Status.Info, "Click on Coure title "); string AccessPeriod = ContentDetailsPage.AccessPeriod(); ContentDetailsPage.Edit_DisableAccessPeriod(); _test.Log(Status.Info, "Click on Edit Access Period Disable it"); Assert.IsTrue(Driver.comparePartialString("The changes were saved.", ContentDetailsPage.VerifySuccessMessage())); _test.Log(Status.Pass, "Verify Success message"); }
public void tc_7373_Create_a_new_General_course() { CommonSection.CreateLink.GeneralCourse(); GeneralCoursePage.SearchTagForNewContent(tagname + "TC7373"); _test.Log(Status.Info, "Searching Tag."); Assert.IsTrue(GeneralCoursePage.AvailableinCatalog.isAvailableinCatalogOptionisDisplay()); _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display"); Assert.IsTrue(GeneralCoursePage.AvailableinCatalog.isChecked()); _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display"); GeneralCoursePage.CreateGeneralCourse(GeneralCourseTitle + "TC7373", generalcoursedec); // Assert.IsTrue(Driver.checkContentTagsOnDetailsPage()); string savedTagName = ContentDetailsPage.Summary.tagName(tagname + "TC7373"); StringAssert.AreEqualIgnoringCase(tagname + "TC7373", savedTagName); _test.Log(Status.Pass, "Assertion Pass as Searching for Tag Successfully Done"); Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("Yes")); _test.Log(Status.Pass, "Verify Available in Catalog values is Yes in summary portlet"); CommonSection.SearchCatalog(GeneralCourseTitle + "TC7373"); Assert.IsTrue(SearchResultsPage.isSearchResultDisplayed(GeneralCourseTitle + "TC7373")); _test.Log(Status.Pass, "Verify Created content is Searched"); SearchResultsPage.ClickCourseTitle(GeneralCourseTitle + "TC7373"); ContentDetailsPage.ClickEditContent_New19_2(); ContentDetailsPage.Summary.ClickEdit(); GeneralCoursePage.AvailableinCatalog.ClicktoUncheck(); GeneralCoursePage.ClickSaveButton(); Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("No")); _test.Log(Status.Pass, "Verify Available in Catalog values is No in summary portlet"); CommonSection.SearchCatalog(GeneralCourseTitle + "TC7373"); Assert.IsFalse(SearchResultsPage.isSearchResultDisplayed(GeneralCourseTitle + "TC7373")); _test.Log(Status.Pass, "Verify Created content is not Searched"); CommonSection.Manage.Training(); TrainingPage.ManageContentPortlet.SearchForContent(GeneralCourseTitle + "TC7373"); ManageContentPage.ResultGrid.isSeaarchedContentDisplay(GeneralCourseTitle + "TC7373"); _test.Log(Status.Pass, "Verify Created content is Searched through Manage content"); tc_7375 = true; ManageContentPage.ClickContentTitle(GeneralCourseTitle + "TC7373"); ContentDetailsPage.DeleteContent(); }
public void A02_Learner_See_Only_Those_Tags_which_are_Linked_with_a_Content_for_which_Learner_Have_Access_34079() { // This test case depends on above Test Case 33520 CommonSection.Manage.Training(); _test.Log(Status.Info, "Navigating to Manage Training"); TrainingPage.SearchRecord(generalcoursetitle); _test.Log(Status.Info, "Searching the record"); ManageContentPage.ClickContentTitle(generalcoursetitle); _test.Log(Status.Info, "Clicking on searched record"); DocumentPage.ClickButton_CheckOut(); ManageCompetencyPage.removePermission(); _test.Log(Status.Info, "Removing Permission of learner from Content"); DocumentPage.ClickButton_CheckIn(); driver.LogoutUser(ObjectRepository.LogoutHoverLink, ObjectRepository.HoverMainLink); _test.Log(Status.Info, "Logout from Admin"); LoginPage.LoginAs("ssuser1").WithPassword("password").Login(); _test.Log(Status.Info, "Login as Learner"); Assert.IsFalse(Driver.Instance.IsElementVisible(By.XPath("//h4[contains(text(),'" + generalcoursetitle + "')]"))); _test.Log(Status.Info, "Assertion Pass as learner do not have access to those content tags for which learner do not have access"); driver.LogoutUser(ObjectRepository.LogoutHoverLink, ObjectRepository.HoverMainLink); LoginPage.LoginAs("").WithPassword("").Login(); }
public void b04_Document_Delete_Version_Manage_Versions_7483() { CommonSection.Manage.Training(); _test.Log(Status.Info, "Verify Add version Button is Displayed"); TrainingPage.ManageContentPortlet.SearchForContent(DocumentTitle + "TC7482"); _test.Log(Status.Info, "Search for Content"); ManageContentPage.ClickContentTitle(DocumentTitle + "TC7482"); _test.Log(Status.Info, "Click on Coure title "); Assert.IsTrue(AdminContentDetailsPage.VerifyAddVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); AdminContentDetailsPage.AddVersion(); _test.Log(Status.Info, "Verify Add version Button is Displayed"); Assert.IsTrue(Driver.comparePartialString(" The new version was added for the content item.", AdminContentDetailsPage.VerifyNewVersionSuccessMessage())); _test.Log(Status.Pass, "Verify New Version Success Message"); Assert.IsTrue(AdminContentDetailsPage.VerifyAddedVersionsInDropDownlist()); _test.Log(Status.Pass, "Verify added version in Dropdown List"); Assert.IsTrue(AdminContentDetailsPage.VerifyAddVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); Assert.IsTrue(AdminContentDetailsPage.VerifyDeleteVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); Assert.IsTrue(AdminContentDetailsPage.VerifyManageVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); AdminContentDetailsPage.ManageVersion_Delete("Version 1.1 English (United States)"); _test.Log(Status.Info, "Delete Version from Manage Version Button"); Assert.IsTrue(Driver.comparePartialString(" The version was deleted.", ManageVersionsPage.VerifyDeleteVersionSuccessMessage())); _test.Log(Status.Pass, "Verify Delete Version Message"); ManageVersionsPage.Click_Back(); _test.Log(Status.Pass, "Click Back Button"); Assert.IsFalse(AdminContentDetailsPage.VerifyAddVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); Assert.IsFalse(AdminContentDetailsPage.VerifyAddVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); Assert.IsFalse(AdminContentDetailsPage.VerifyDeleteVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); Assert.IsFalse(AdminContentDetailsPage.VerifyManageVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); }
public void A03_Admin_Add_New_Tag_into_a_Content_on_ManageContent_Page_34080() { // This test case depends on above two test cases 34079 and 33520 CommonSection.Manage.Training(); _test.Log(Status.Info, "Navigating to Manage Training"); TrainingPage.SearchRecord(generalcoursetitle); _test.Log(Status.Info, "Searching the record"); ManageContentPage.ClickContentTitle(generalcoursetitle); _test.Log(Status.Info, "Clicking on searched record"); DocumentPage.ClickButton_CheckOut(); ManageCompetencyPage.addPermission(); _test.Log(Status.Info, "Adding Permission into Content"); DocumentPage.ClickButton_CheckIn(); CommonSection.Manage.Training(); _test.Log(Status.Info, "Navigating to Manage Training"); TrainingPage.SearchRecord(generalcoursetitle); _test.Log(Status.Info, "Searching the record"); Assert.IsTrue(TrainingPage.removeTag_ManageContentSearchPage(tagname)); TC_34082 = true; _test.Log(Status.Info, "Assertion Pass as User removed tag from content from Manage Content Search Page"); Assert.IsTrue(TrainingPage.addTag_ManageContentSearchPage(tagname)); TC_34081 = true; _test.Log(Status.Info, "Assertion Pass as User added tag into content from Manage Content Search Page"); }
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"); }