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 P20_1_tc_26973_View_Prerequisities_to_Test() { CommonSection.CreateGeneralCourse(GeneralCourseTitle + "TC26973"); DocumentPage.ClickButton_CheckIn(); CommonSection.Administer.ContentManagement.Tests(); TestsPage.ClickCreateNew(); TestwizardPage.CreateNewTest(TestTitle + "_tc26973"); _test.Log(Status.Info, "A New test created"); TestwizardPage.addPrerequisitetotest(GeneralCourseTitle + "TC26973"); TestwizardPage.checkin(); CommonSection.Logout(); LoginPage.LoginAs("srlearner105").WithPassword("").Login(); CommonSection.SearchCatalog(TestTitle + "_tc26973"); SearchResultsPage.ClickCourseTitle(TestTitle + "_tc26973"); Assert.IsTrue(ContentDetailsPage.OverviewTab.isPrerequisitePortletDisplay()); _test.Log(Status.Pass, "Verify prerequisite Accordian is Displayed"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isPrereqisiteRequiredmessageDisplay("Complete 1 prerequisites to continue")); _test.Log(Status.Pass, "Verify information"); tc25132 = true; }