public void tc_59969_Document_Prerequisite_Overview_Tab_What_other_content_can_learner_take() { CommonSection.CreateLink.Document(); DocumentPage.SearchTagForNewContent(tagname + "TC59969"); _test.Log(Status.Info, "Searching Tag."); DocumentPage.CreateDocument(DocumentTitle + "TC59969"); DocumentPage.ClickButton_CheckIn(); CommonSection.CreateLink.Document(); DocumentPage.SearchTagForNewContent(tagname + "TC59969"); _test.Log(Status.Info, "Searching Tag."); DocumentPage.CreateDocument(DocumentTitle + "TC59969_1"); DocumentPage.ClickButton_CheckIn(); CommonSection.CreteNewCurriculumn(curriculamtitle + "_TC59969"); _test.Log(Status.Info, "Create A new Curriculum"); ContentDetailsPage.ClickCurriculumContentEditButton(); CurriculumContentPage.ClickAddCurriculumBlock(); CurriculumContentPage.AddCurriculumBlock.AddBlockAs(block + "_UnOrdered"); CurriculumContentPage.AddTrainingActivities_UnOrdered(DocumentTitle + "TC59969"); CurriculumContentPage.ClickBackbutton(); //ContentDetailsPage.Edit_AddAccessPeriod("1"); DocumentPage.ClickButton_CheckIn(); //CommonSection.Logout(); //LoginPage.LoginAs("srlearner101").WithPassword("").Login(); CommonSection.SearchCatalog(DocumentTitle + "TC59969"); SearchResultsPage.ClickCourseTitle(DocumentTitle + "TC59969"); Assert.IsTrue(ContentDetailsPage.isrelatedContentDisplay(DocumentTitle + "TC59969_1")); _test.Log(Status.Pass, "Verify similar content displaying in More like this Portlet"); Assert.IsTrue(ContentDetailsPage.OverviewTab.isPartoftheseCollectionDisplay()); }
public void tc_7285_Create_Document() { CommonSection.CreateLink.Document(); DocumentPage.SearchTagForNewContent(tagname); _test.Log(Status.Info, "Searching Tag."); Assert.IsTrue(DocumentPage.AvailableinCatalog.isAvailableinCatalogOptionisDisplay()); _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display"); Assert.IsTrue(DocumentPage.AvailableinCatalog.isChecked()); _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display"); DocumentPage.CreateDocument(DocumentTitle + "TC7285"); // Assert.IsTrue(Driver.checkContentTagsOnDetailsPage()); string savedTagName = ContentDetailsPage.Summary.tagName(tagname); StringAssert.AreEqualIgnoringCase(tagname, 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(DocumentTitle + "TC7285"); Assert.IsTrue(SearchResultsPage.isSearchResultDisplayed(DocumentTitle + "TC7285")); _test.Log(Status.Pass, "Verify Created content is Searched"); SearchResultsPage.ClickCourseTitle(DocumentTitle + "TC7285"); ContentDetailsPage.ClickEditContent_New19_2(); ContentDetailsPage.Summary.ClickEdit(); DocumentPage.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(DocumentTitle + "TC7285"); Assert.IsFalse(SearchResultsPage.isSearchResultDisplayed(DocumentTitle + "TC7285")); _test.Log(Status.Pass, "Verify Created content is not Searched"); CommonSection.Manage.Training(); TrainingPage.ManageContentPortlet.SearchForContent(DocumentTitle + "TC7285"); Assert.IsTrue(ManageContentPage.ResultGrid.isSeaarchedContentDisplay(DocumentTitle + "TC7285")); _test.Log(Status.Pass, "Verify Created content is Searched through Manage content"); tc_7334 = true; }