Beispiel #1
0
        public void a02_Test_to_see_related_similar_content_based_on_Tags_when_viewing_a_Content_Item_34827()
        {
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Goto Content Creation Page");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC34827", generalcoursetitle + "TC34827");
            _test.Log(Status.Info, "Content Created");
            String expectedtagname = GeneralCoursePage.CreateTags(tagname);

            _test.Log(Status.Info, "Tag Created");
            GeneralCoursePage.ClickCheckIn();

            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Goto Content Creation Page");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC34827_1", generalcoursetitle + "TC34827_1");
            _test.Log(Status.Info, "Content Created");
            String expectedtagname1 = GeneralCoursePage.CreateTags(tagname);

            _test.Log(Status.Info, "Tag Created");
            GeneralCoursePage.ClickCheckIn();

            CommonSection.SearchCatalog('"' + generalcoursetitle + "TC34827" + '"');
            _test.Log(Status.Info, "Search a content from catalog");
            SearchResultsPage.ClickCourseTitle(generalcoursetitle + "TC34827");
            _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.isrelatedContentDisplay(generalcoursetitle + "TC34827_1"));
            _test.Log(Status.Pass, "Verify similar content displaying in More like this Portlet");
        }
Beispiel #2
0
        public void A07_Learner_See_Recently_Added_Contents_Recommendation_On_Homepage_33469()
        {
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Goto Content Creation Page");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC33469", generalcoursetitle);
            _test.Log(Status.Info, "Content Created");
            String expectedtagname = GeneralCoursePage.CreateTags(tagname);

            _test.Log(Status.Info, "Tag Created");
            StringAssert.AreEqualIgnoringCase(tagname, expectedtagname);
            _test.Log(Status.Info, "Assertion Pass as Tag Has been created successfully.");
            DocumentPage.ClickButton_CheckIn();
            RecommendationsPage.selectMostRecent_RecentlyAdded();
            CommonSection.Learn.Home();
            _test.Log(Status.Info, "Navigate to Homepage");
            Assert.IsTrue(Driver.Instance.IsElementVisible(By.XPath("//h4[contains(text(),'" + generalcoursetitle + "TC33469" + "')]")));
            _test.Log(Status.Info, "Assert recently added content display on homepage : Pass");
        }
Beispiel #3
0
        public void A01_Learner_Set_Their_Interest_from_HomePage_33520()
        {
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Goto Content Creation Page");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle, generalcoursetitle);
            _test.Log(Status.Info, "Content Created");
            String expectedtagname = GeneralCoursePage.CreateTags(tagname);

            _test.Log(Status.Info, "Tag Created");
            StringAssert.AreEqualIgnoringCase(tagname, expectedtagname);
            _test.Log(Status.Info, "Assertion Pass as Tag Has been created successfully.");
            DocumentPage.ClickButton_CheckIn();
            CommonSection.Learn.Home();
            _test.Log(Status.Info, "Navigating to HomePage");
            driver.LogoutUser(ObjectRepository.LogoutHoverLink, ObjectRepository.HoverMainLink);
            _test.Log(Status.Info, "Logout from admin");
            LoginPage.LoginAs("ssuser1").WithPassword("password").Login();
            _test.Log(Status.Info, "Login with Learner");
            Assert.IsTrue(HomePage.selectInterest(tagname, generalcoursetitle));
            _test.Log(Status.Info, "Assertion Pass as learner selected interest from homepage successfully");
            driver.LogoutUser(ObjectRepository.LogoutHoverLink, ObjectRepository.HoverMainLink);
            LoginPage.LoginAs("").WithPassword("").Login();
        }