public void a08_Test_to_see_related_similar_content_based_on_Course_Provider_when_viewing_a_Content_Item_34839() { CommonSection.CreateLink.GeneralCourse(); _test.Log(Status.Info, "Goto Content Creation Page"); GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC34839", generalcoursetitle + "TC34839"); _test.Log(Status.Info, "Content Created"); GeneralCoursePage.AddCourseProvider("Meridian"); string CourseProvider = ContentDetailsPage.CourseProviderAccodian.CourseProvidername(); GeneralCoursePage.ClickCheckIn(); CommonSection.CreateLink.GeneralCourse(); _test.Log(Status.Info, "Goto Content Creation Page"); GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC34839_1", generalcoursetitle + "TC34839_1"); _test.Log(Status.Info, "Content Created"); GeneralCoursePage.AddCourseProvider("Meridian"); GeneralCoursePage.ClickCheckIn(); CommonSection.SearchCatalog('"' + generalcoursetitle + "TC34839" + '"'); _test.Log(Status.Info, "Search a content from catalog"); SearchResultsPage.ClickCourseTitle(generalcoursetitle + "TC34839"); _test.Log(Status.Info, "Click on searched content tilte"); Assert.IsTrue(ContentDetailsPage.isMorelikethisPortletdisplay()); _test.Log(Status.Pass, "Verify More like this Portlet is displaying in content details Page"); Assert.IsTrue(ContentDetailsPage.isSameCourseProviderrelatedContentDisplay(CourseProvider)); }
public void tc_59282_As_Learner_AICC_Overview_Tab_What_other_content_can_I_take() { CommonSection.CreateLink.GeneralCourse(); _test.Log(Status.Info, "Goto Content Creation Page"); GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC59282", generalcoursetitle + "TC34839"); _test.Log(Status.Info, "Content Created"); GeneralCoursePage.AddCourseProvider("Meridian"); string CourseProvider = ContentDetailsPage.CourseProviderAccodian.CourseProvidername(); GeneralCoursePage.ClickCheckIn(); 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); _test.Log(Status.Info, "AICC files are uploaded"); CreateAICCPage.Title(AICCCourseTitle + "TC59282"); EditSummaryPage.ClickSavebutton(); _test.Log(Status.Info, "Create a new AICC Course"); Assert.IsTrue(ContentDetailsPage.IsContentCreated()); _test.Log(Status.Pass, "Verify New Document is Created"); GeneralCoursePage.AddCourseProvider("Meridian"); GeneralCoursePage.ClickCheckIn(); CommonSection.SearchCatalog('"' + AICCCourseTitle + "TC59282" + '"'); _test.Log(Status.Info, "Search a content from catalog"); SearchResultsPage.ClickCourseTitle(AICCCourseTitle + "TC59282"); _test.Log(Status.Info, "Click on searched content tilte"); Assert.IsTrue(ContentDetailsPage.OverviewTab.isMorelikethisPortletDisplay()); _test.Log(Status.Pass, "Verify More like this Portlet is displaying in content details Page"); Assert.IsTrue(ContentDetailsPage.isSameCourseProviderrelatedContentDisplay(CourseProvider)); }