Ejemplo n.º 1
0
        public void a07_Test_to_see_related_similar_content_based_on_Credit_Types_when_viewing_a_Content_Item_34838()
        {
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Goto Content Creation Page");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC34838", generalcoursetitle + "TC34838");
            _test.Log(Status.Info, "Content Created");
            GeneralCoursePage.AddCreditType("5");
            int creditType = ContentDetailsPage.CreditTypeAccordian.CreditTypeNumber();

            GeneralCoursePage.ClickCheckIn();

            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Goto Content Creation Page");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC34838_1", generalcoursetitle + "TC34838_1");
            _test.Log(Status.Info, "Content Created");
            GeneralCoursePage.AddCreditType("5");
            GeneralCoursePage.ClickCheckIn();

            CommonSection.SearchCatalog('"' + generalcoursetitle + "TC34838" + '"');
            _test.Log(Status.Info, "Search a content from catalog");
            SearchResultsPage.ClickCourseTitle(generalcoursetitle + "TC34838");
            _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.isCreditTyperelatedContentDisplay(creditType));
        }