Exemple #1
0
 public void A06_To_Test_Admin_User_Manages_Recommendations_Settings_by_Domain_33896()
 {
     // This test case scope is very less as this is somthing related to domain setting. We can not complete this test case as there is no child domain in external site.
     CommonSection.Manage.Recommendations();
     Assert.IsTrue(RecommendationsPage.checkDomainDropdown());
     _test.Log(Status.Info, "Assertion Pass as Select Domain Dropdown displaying to admin user under recommendation setting page ");
 }
Exemple #2
0
        public void Z03_Learner_see_Recent_Contents_in_Recent_Added_Contents_Portlet_33472()
        {
            #region Create a content and access it from recommendation portlet
            CommonSection.CreateLink.Document();
            _test.Log(Status.Info, "Click on Create Document Top Menu");

            DocumentPage.Populate_DocumentData(ExtractDataExcel.MasterDic_document["Title"]);
            _test.Log(Status.Info, "Populate Document data");

            DocumentPage.ClickButton_Create();
            _test.Log(Status.Info, "Click on Create Button");

            DocumentPage.ClickButton_CheckIn();
            _test.Log(Status.Info, "Checkin the Document");

            CommonSection.Learn.Home();
            _test.Log(Status.Info, "Navigate to Homepage");

            Assert.IsTrue(HomePage.RecommendationPortlet.Access_Content(ExtractDataExcel.MasterDic_document["Title"]));

            _test.Log(Status.Info, "Assert : Pass as Recently Created Content has been accessed from recommendation portlet successfully");

            CommonSection.Manage.Recommendations();
            RecommendationsPage.ChangeShortingType_For_RecentlyAdded("most recent");
            CommonSection.Learn.Home();

            Assert.IsFalse(HomePage.RecommendationPortlet.Verify_Content_InRandom(ExtractDataExcel.MasterDic_document["Title"]));
            _test.Log(Status.Info, "Assert : Pass as Contents are displaying in random order after changing the sorting order");
            #endregion
        }
Exemple #3
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");
        }
        public void J_Admin_Expand_Collapse_Recommendation_Portlet_From_HomepageCustomization_33573()
        {
            CommonSection.Administer.System.BrandingAndCustomization.HomepageCustomization();
            _test.Log(Status.Info, "Navigate to Homepage Customization");

            HomePageCustomizationPage.Click_Collapse_RecentlyAddedPortlet();
            _test.Log(Status.Info, "Collapse Recently Added Recommendation Portlet");

            HomePageCustomizationPage.Click_Collapse_RecommendationPortlet();
            _test.Log(Status.Info, "Collapse Recommendation Based on Your Interest Portlet");

            HomePageCustomizationPage.ClickButton_Save();
            _test.Log(Status.Info, "Homepage Customization Setting Save");

            Assert.IsFalse(RecommendationsPage.Verify_RecentlyAddedPortlet());
            _test.Log(Status.Info, "Assert Recently Added Portlet Not Visible : Pass");

            Assert.IsFalse(RecommendationsPage.Verify_ContentTagPortlet());
            _test.Log(Status.Info, "Assert Recommendation Based on Your Ineterst Portlet Not Visible : Pass");

            CommonSection.Administer.System.BrandingAndCustomization.HomepageCustomization();
            _test.Log(Status.Info, "Navigate to Homepage Customization");

            HomePageCustomizationPage.Click_Expand_RecentlyAddedPortlet();
            _test.Log(Status.Info, "Expand Recently Added Recommendation Portlet");

            HomePageCustomizationPage.Click_Expand_RecommendationPortlet();
            _test.Log(Status.Info, "Expand Recommendation Based on Your Interest Portlet");

            HomePageCustomizationPage.ClickButton_Save();
            _test.Log(Status.Info, "Homepage Customization Setting Save");

            Assert.IsTrue(RecommendationsPage.Verify_RecentlyAddedPortlet());
            _test.Log(Status.Info, "Assert Recently Added Portlet Visible : Pass");

            Assert.IsTrue(RecommendationsPage.Verify_ContentTagPortlet());
            _test.Log(Status.Info, "Assert Recommendation Based on Your Ineterst Portlet Visible : Pass");
        }
        public void K_Admin_Drag_And_Drop_Recommendation_Portlets_33574()
        {
            CommonSection.Administer.System.BrandingAndCustomization.HomepageCustomization();
            _test.Log(Status.Info, "Navigate to Homepage Customization");

            HomePageCustomizationPage.DragandDrop_RecommendationPortlet();
            _test.Log(Status.Info, "Dragging Recommendation Portlet");

            HomePageCustomizationPage.ClickButton_Save();
            _test.Log(Status.Info, "Homepage Customization Setting Save");

            Assert.IsTrue(RecommendationsPage.Verify_ContentTagPortlet());
            _test.Log(Status.Info, "Assert Recommendation Based on Your Ineterst Portlet Not Visible : Pass");

            CommonSection.Administer.System.BrandingAndCustomization.HomepageCustomization();
            _test.Log(Status.Info, "Navigate to Homepage Customization");

            HomePageCustomizationPage.DragandDrop_RecommendationPortlet_Revert();
            _test.Log(Status.Info, "Dragging Back the Portlet To Previous Position");

            HomePageCustomizationPage.ClickButton_Save();
            _test.Log(Status.Info, "Homepage Customization Setting Save");
        }