public void a02_Manage_a_Classroom_course_26747() { string expectedresult = " The changes were saved."; string actualresult = string.Empty; CommonSection.CreateLink.ClassroomCourse(); _test.Log(Status.Info, "Opened Create Classroom Course Page"); classroomcourse.populateClassroomform(ExtractDataExcel.MasterDic_classrommcourse["Title"] + "editcontent", ExtractDataExcel.MasterDic_classrommcourse["Desc"]); _test.Log(Status.Info, "Filled all required information and submit the classroom creation page"); classroomcourse.buttonsaveclick(); _test.Log(Status.Info, "Click Save button"); //Trainingsobj.CreateContentButton_Click_New(Locator_Training.Classroom_CourseClick); CommonSection.Manage.Training(); _test.Log(Status.Info, "Navigate to Manage>>Training Page"); TrainingPage.SearchRecord(ExtractDataExcel.MasterDic_classrommcourse["Title"] + "editcontent"); _test.Log(Status.Info, "Searchched created Classroom course using manage Content portlet"); SearchResultsPage.ClickCourseTitle(ExtractDataExcel.MasterDic_classrommcourse["Title"] + "editcontent"); _test.Log(Status.Info, "Click on Classroom Course title from Manage Content page"); classroomcourse.buttoncourseeditclick(); _test.Log(Status.Info, "Click on edit button in summary accordian"); //SummaryPage.AddnewTag(TAGTitle + "TC26747"); Assert.IsTrue(SummaryPage.AddnewTag(TAGTitle + "TC26747")); _test.Log(Status.Pass, "Verify new tab can added in summary page"); SummaryPage.ClickSavebutton(); _test.Log(Status.Info, "Click Save button"); Assert.IsTrue(SummaryPage.checkContentTagsOnDetailsPage()); // Assert.IsTrue(Driver.checkContentTagsOnDetailsPage()); _test.Log(Status.Pass, "Verify added tag is displayed"); }
//Editing existing certification public void tc_10879_ManageA_Certification() { CommonSection.CreateLink.Certifications(); CertificationPage.FillTitle(CertificatrTitle + "TC10879"); _test.Log(Status.Info, "Fill title"); CertificationPage.ClickCreate(); CommonSection.Manage.Training(); TrainingPage.SearchRecord(CertificatrTitle + "TC10879"); SearchResultsPage.ClickCourseTitle(CertificatrTitle + "TC10879"); ContentDetailsPage.Summary.ClickEdit(); Assert.IsTrue(CertificationPage.AvailableinCatalog.isChecked()); _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display"); // Assert.IsTrue(Driver.checkTagsonContentCreationPage(true)); GeneralCoursePage.SearchTagForNewContent(tagname + "TC10879"); _test.Log(Status.Info, "Searching Tag."); CertificationPage.AvailableinCatalog.ClicktoUncheck(); SummaryPage.ClickSavebutton(); // Assert.IsTrue(Driver.checkContentTagsOnDetailsPage()); string s = Driver.GetElement(By.XPath("//strong[contains(.,'" + tagname + "TC10879')]")).Text; StringAssert.AreEqualIgnoringCase(tagname + "TC10879", s); _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done"); Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog_certification("No")); CommonSection.SearchCatalog(CertificatrTitle + "TC10879"); Assert.IsFalse(SearchResultsPage.isSearchResultDisplayed(CertificatrTitle + "TC10879")); _test.Log(Status.Pass, "Verify Created content is not Searched"); CommonSection.Manage.Training(); _test.Log(Status.Info, "Navigate to Manage>>Training Page"); TrainingPage.SearchRecord(CertificatrTitle + "TC10879"); _test.Log(Status.Info, "Searchched created Classroom course using manage Content portlet"); Assert.IsTrue(ManageContentPage.ResultGrid.isSeaarchedContentDisplay(CertificatrTitle + "TC10879")); _test.Log(Status.Pass, "Verify Created content is Searched through Manage content"); }
public void tc_7253_Manage_a_SCORM_course() { string expectedresult = "Summary"; CommonSection.CreteNewScorm(scormtitle + "TC7251"); _test.Log(Status.Info, "Creating New Scorm"); DocumentPage.ClickButton_CheckOut(); ContentDetailsPage.Accordians.ClickEdit_Summery(); _test.Log(Status.Info, "Click on Edit Summery"); GeneralCoursePage.SearchTagForNewContent(tagname + "TC7251"); _test.Log(Status.Info, "Searching Tag."); Assert.IsTrue(CreateAICCPage.AvailableinCatalog.isAvailableinCatalogOptionisDisplay()); _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display"); Assert.IsTrue(CreateAICCPage.AvailableinCatalog.isChecked()); _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display"); Driver.clickEleJs(By.XPath("//input[@value='Save']")); driver.WaitForElement(By.XPath("//h3[contains(.,'Summary')]")); string text = driver.gettextofelement(By.XPath("//h3[contains(.,'Summary')]")); StringAssert.AreEqualIgnoringCase(expectedresult, text); Assert.IsTrue(driver.existsElement(By.XPath("//*[contains(@class,'alert alert-success')]"))); Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("Yes")); _test.Log(Status.Pass, "Verify Available in Catalog values is Yes in summary portlet"); DocumentPage.ClickButton_CheckIn(); CommonSection.SearchCatalog(scormtitle + "TC7251"); Assert.IsTrue(SearchResultsPage.isSearchResultDisplayed(scormtitle + "TC7251")); _test.Log(Status.Pass, "Verify Created content is Searched"); CommonSection.Manage.Training(); TrainingPage.SearchRecord(scormtitle + "TC7251"); SearchResultsPage.ClickCourseTitle(scormtitle + "TC7251"); DocumentPage.ClickButton_CheckOut(); ContentDetailsPage.Summary.ClickEdit(); Assert.IsTrue(CreateCurriculumnPage.AvailableinCatalog.isChecked()); _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display"); //GeneralCoursePage.SearchTagForNewContent(tagname + "TC7402"); CreateAICCPage.AvailableinCatalog.ClicktoUncheck(); SummaryPage.ClickSavebutton(); string s = Driver.GetElement(By.XPath("//strong[contains(.,'" + tagname + "TC7251')]")).Text; StringAssert.AreEqualIgnoringCase(tagname + "TC7251", s); _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done"); Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("No")); CommonSection.SearchCatalog(scormtitle + "TC7251"); Assert.IsFalse(SearchResultsPage.isSearchResultDisplayed(scormtitle + "TC7251")); _test.Log(Status.Pass, "Verify Created content is not Searched"); CommonSection.Manage.Training(); _test.Log(Status.Info, "Navigate to Manage>>Training Page"); TrainingPage.SearchRecord(scormtitle + "TC7251"); _test.Log(Status.Info, "Searchched created Classroom course using manage Content portlet"); Assert.IsTrue(ManageContentPage.ResultGrid.isSeaarchedContentDisplay(scormtitle + "TC7251")); _test.Log(Status.Pass, "Verify Created content is Searched through Manage content"); }
public void Admin_bulk_adds_tags_on_manage_content_page_34043() { //login with a admin CommonSection.Manage.Training(); _test.Log(Status.Info, "Navigating to Manage Content Search page"); TrainingPage.SearchRecord(""); _test.Log(Status.Info, "Click Search page"); ManageContentPage.SelectMultipleResult(); ManageContentPage.ClickAddTagOption_Select_DV_Test1(); _test.Log(Status.Info, "Select Multiple records and click add tag and select DV_Test1 Tag"); StringAssert.AreEqualIgnoringCase("DV_Test1", ManageContentPage.VerifyTags("DV_Test1")); _test.Log(Status.Info, "Verify that Tag DV_Test1 is applied to all selected items under Tags column"); }
//Editing existing certification public void A07_ManageACertification_10879() { CommonSection.CreateLink.Certifications(); // objCreate.FillCertificationPageByExcel(driver); // Assert.IsTrue(Driver.checkTagsonContentCreationPage(true)); objCreate.FillCertificationPage("editcontent"); CommonSection.Manage.Training(); TrainingPage.SearchRecord(Variables.certTitle + "editcontent"); SearchResultsPage.ClickCourseTitle(Variables.certTitle + "editcontent"); CurriculumsPage.Edit_Click(driver); // Assert.IsTrue(Driver.checkTagsonContentCreationPage(true)); GeneralCoursePage.SearchTagForNewContent(tagname); _test.Log(Status.Info, "Searching Tag."); SummaryPage.ClickSavebutton(); // Assert.IsTrue(Driver.checkContentTagsOnDetailsPage()); string s = Driver.GetElement(By.XPath("//strong[contains(.,'" + tagname + "')]")).Text; StringAssert.AreEqualIgnoringCase(tagname, s); _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done"); TC_10879 = true; }
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 tc_26747_Manage_a_Classroom_course() { string actualresult = string.Empty; CommonSection.CreateLink.ClassroomCourse(); _test.Log(Status.Info, "Opened Create Classroom Course Page"); classroomcourse.populateClassroomform(classroomcoursetitle + "TC26747", "DescTC26747"); _test.Log(Status.Info, "Filled all required information and submit the classroom creation page"); ClassroomCoursePage.AvailableinCatalog.ClicktoUncheck(); classroomcourse.buttonsaveclick(); _test.Log(Status.Info, "Click Save button"); Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("No")); CommonSection.SearchCatalog(classroomcoursetitle + "TC26747"); Assert.IsFalse(SearchResultsPage.isSearchResultDisplayed(classroomcoursetitle + "TC26747")); _test.Log(Status.Pass, "Verify Created content is Searched"); CommonSection.Manage.Training(); _test.Log(Status.Info, "Navigate to Manage>>Training Page"); TrainingPage.SearchRecord(classroomcoursetitle + "TC26747"); _test.Log(Status.Info, "Searchched created Classroom course using manage Content portlet"); Assert.IsTrue(ManageContentPage.ResultGrid.isSeaarchedContentDisplay(classroomcoursetitle + "TC26747")); _test.Log(Status.Pass, "Verify Created content is Searched through Manage content"); SearchResultsPage.ClickCourseTitle(classroomcoursetitle + "TC26747"); _test.Log(Status.Info, "Click on Classroom Course title from Manage Content page"); classroomcourse.buttoncourseeditclick(); _test.Log(Status.Info, "Click on edit button in summary accordian"); //SummaryPage.AddnewTag(TAGTitle + "TC26747"); Assert.IsTrue(SummaryPage.AddnewTag(TAGTitle + "TC26747")); _test.Log(Status.Pass, "Verify new tab can added in summary page"); SummaryPage.ClickSavebutton(); _test.Log(Status.Info, "Click Save button"); Assert.IsTrue(SummaryPage.checkContentTagsOnDetailsPage()); // Assert.IsTrue(Driver.checkContentTagsOnDetailsPage()); _test.Log(Status.Pass, "Verify added tag 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 tc_10823_Manager_Curriculum() { CommonSection.CreateLink.Curriculam(); // Assert.IsTrue(Driver.checkTagsonContentCreationPage(true)); CreateCurriculumnPage.fillTtile(curriculumtitle + "TC10823"); CreateCurriculumnPage.SelectCollaborationSpaceOption("No"); CreateCurriculumnPage.ClickCreatebutton(); _test.Log(Status.Info, "A new Curriculum created"); CommonSection.Manage.Training(); TrainingPage.SearchRecord(curriculumtitle + "TC10823"); SearchResultsPage.ClickCourseTitle(curriculumtitle + "TC10823"); ContentDetailsPage.Summary.ClickEdit(); Assert.IsTrue(CreateCurriculumnPage.AvailableinCatalog.isAvailableinCatalogOptionisDisplay()); _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display"); Assert.IsTrue(CreateCurriculumnPage.AvailableinCatalog.isChecked()); _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display"); GeneralCoursePage.SearchTagForNewContent(tagname); _test.Log(Status.Info, "Searching Tag."); CreateCurriculumnPage.AvailableinCatalog.ClicktoUncheck(); SummaryPage.ClickSavebutton(); string savedTagName = ContentDetailsPage.Summary.tagName(tagname); StringAssert.AreEqualIgnoringCase(tagname, savedTagName); _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done"); Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("No")); CommonSection.SearchCatalog(curriculumtitle + "TC10823"); Assert.IsFalse(SearchResultsPage.isSearchResultDisplayed(curriculumtitle + "TC10823")); _test.Log(Status.Pass, "Verify Created content is not Searched"); CommonSection.Manage.Training(); _test.Log(Status.Info, "Navigate to Manage>>Training Page"); TrainingPage.SearchRecord(curriculumtitle + "TC10823"); _test.Log(Status.Info, "Searchched created Classroom course using manage Content portlet"); Assert.IsTrue(ManageContentPage.ResultGrid.isSeaarchedContentDisplay(curriculumtitle + "TC10823")); _test.Log(Status.Pass, "Verify Created content is Searched through Manage content"); }
public void tc_7402_Manage_an_AICC_course() { Document documentpage = new Document(driver); Scorm12 CreateScorm = new Scorm12(driver); CommonSection.CreateLink.AICC(); driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.au", By.Id("ctl00_MainContent_UC1_rau_aufile0")); driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.crs", By.Id("ctl00_MainContent_UC1_rau_crsfile0")); driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.cst", By.Id("ctl00_MainContent_UC1_rau_cstfile0")); driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.des", By.Id("ctl00_MainContent_UC1_rau_desfile0")); CreateScorm.buttoncreateclick(driver, true); CreateAICCPage.Title(AICCCourseTitle + "TC7402"); EditSummaryPage.ClickSavebutton(); _test.Log(Status.Info, "Create a new AICC Course"); CommonSection.Manage.Training(); TrainingPage.SearchRecord(AICCCourseTitle + "TC7402"); SearchResultsPage.ClickCourseTitle(AICCCourseTitle + "TC7402"); ContentDetailsPage.Summary.ClickEdit(); Assert.IsTrue(CreateCurriculumnPage.AvailableinCatalog.isAvailableinCatalogOptionisDisplay()); _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display"); Assert.IsTrue(CreateCurriculumnPage.AvailableinCatalog.isChecked()); _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display"); GeneralCoursePage.SearchTagForNewContent(tagname + "TC7402"); CreateAICCPage.AvailableinCatalog.ClicktoUncheck(); SummaryPage.ClickSavebutton(); //_test.Log(Status.Info, "Searching Tag."); //if (!driver.existsElement(By.XPath("//*[@id='MainContent_MainContent_UC1_FormView1_CNTLCL_DESCRIPTION']"))) //{ // //driver.SelectFrame(); // driver.GetElement(By.CssSelector("body")).ClickWithSpace(); // driver.GetElement(By.CssSelector("body")).SendKeysWithSpace(ExtractDataExcel.MasterDic_genralcourse["Desc"]); // // driver.SwitchTo().DefaultContent(); //} //else //{ // driver.GetElement(By.XPath("//*[@id='MainContent_UC1_FormView1_CNTLCL_DESCRIPTION']")).SendKeysWithSpace(ExtractDataExcel.MasterDic_genralcourse["Desc"]); //} //driver.ClickEleJs(By.XPath("//input[@id='MainContent_MainContent_UC1_Save']")); //// driver.SwitchTo().DefaultContent(); //driver.WaitForElement(By.XPath("//*[contains(@class,'alert alert-success')]")); //driver.Checkin(); // Assert.IsTrue(Driver.checkContentTagsOnDetailsPage()); string s = Driver.GetElement(By.XPath("//strong[contains(.,'" + tagname + "TC7402')]")).Text; StringAssert.AreEqualIgnoringCase(tagname + "TC7402", s); _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done"); Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("No")); CommonSection.SearchCatalog(AICCCourseTitle + "TC7402"); Assert.IsFalse(SearchResultsPage.isSearchResultDisplayed(AICCCourseTitle + "TC7402")); _test.Log(Status.Pass, "Verify Created content is not Searched"); CommonSection.Manage.Training(); _test.Log(Status.Info, "Navigate to Manage>>Training Page"); TrainingPage.SearchRecord(AICCCourseTitle + "TC7402"); _test.Log(Status.Info, "Searchched created Classroom course using manage Content portlet"); Assert.IsTrue(ManageContentPage.ResultGrid.isSeaarchedContentDisplay(AICCCourseTitle + "TC7402")); _test.Log(Status.Pass, "Verify Created content is Searched through Manage content"); }