public void tc_60489_Public_catalog_banner_actions_for_Test() { ContentDetailsPage.clickReturningUserLogin(); LoginPage.LoginAs("").WithPassword("").Login(); CommonSection.Administer.ContentManagement.Tests(); TestsPage.ClickCreateNew(); TestwizardPage.CreateNewTest(TestTitle + "_TC60489"); _test.Log(Status.Info, "A New test created"); TestwizardPage.addPrerequisitetotest(); TestwizardPage.UploadImagetoTest(); TestwizardPage.PublishtoPublishcatalog(); TestwizardPage.checkin(); CommonSection.Logout(); LoginPage.ClickBrowsePublicCatalogLink(); CommonSection.SearchCatalog(TestTitle + "_TC60489"); SearchResultsPage.ClickCourseTitle(TestTitle + "_TC60489"); Assert.IsTrue(ContentDetailsPage.isBradCrumbdisplay()); Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(TestTitle + "_TC60489")); _test.Log(Status.Pass, "Verify Content title is display on Banner"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTypedisplay()); _test.Log(Status.Pass, "Verify Content type is display on Banner"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentImagedisplay()); _test.Log(Status.Pass, "Verify Image is display on Banner"); Assert.IsTrue(ContentDetailsPage.OverviewTab.isPrerequisitePortletDisplay()); }
public void tc_60285_Test_Banner_Actions_Course_Info_and_Navigation() { CommonSection.Administer.ContentManagement.Tests(); TestsPage.ClickCreateNew(); TestwizardPage.CreateNewTest(TestTitle + "_TC60285"); _test.Log(Status.Info, "A New test created"); TestwizardPage.UploadImagetoTest(); _test.Log(Status.Info, "Upload any Image file to content"); TestwizardPage.checkin(); CommonSection.SearchCatalog(TestTitle + "_TC60285"); SearchResultsPage.ClickCourseTitle(TestTitle + "_TC60285"); Assert.IsTrue(ContentDetailsPage.isBradCrumbdisplay()); Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(TestTitle + "_TC60285")); _test.Log(Status.Pass, "Verify Content title is display on Banner"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTypedisplay()); _test.Log(Status.Pass, "Verify Content type is display on Banner"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentImagedisplay()); _test.Log(Status.Pass, "Verify Image is display on Banner"); }