示例#1
0
 public void b3_Save_Item_Form_Content_Details_34775()
 {
     CommonSection.Logout();
     _test.Log(Status.Info, "Logout of the Site Admin Account");
     LoginPage.LoginAs("siteadmin").WithPassword("").Login();
     _test.Log(Status.Info, "Login with Learner's Account");
     CommonSection.CreateGeneralCourse(generalcoursetitle + "TC34835");
     CommonSection.SearchCatalog(generalcoursetitle + "TC34835");
     _test.Log(Status.Info, "Click Catalog Search Button");
     //  CommonSection.SearchCatalog("");
     // _test.Log(Status.Info, "Click Catalog Search Button");
     SearchResultsPage.ClickCourseTitle(generalcoursetitle + "TC34835");
     _test.Log(Status.Info, "Click on Course Title");
     ContentDetailsPage.ClickSaveButton();
     _test.Log(Status.Info, "Click on Save Button of Content Detail Page");
     Assert.IsTrue(ContentDetailsPage.isSaveButtonIconGreen());
     _test.Log(Status.Pass, "Verify Save Button icon is Green");
     Assert.IsTrue(ContentDetailsPage.isToolTipDisplayed("Saved"));
     _test.Log(Status.Pass, "Verify Tooltip Display Saved");
     //ContentDetailsPage.ClickSaveButton();
     //_test.Log(Status.Info, "Click on Save Button of Content Detail Page");
     //Assert.IsFalse(ContentDetailsPage.isSaveButtonIconGreen());
     //_test.Log(Status.Pass, "Verify Save Button icon is Plane");
     //Assert.IsTrue(ContentDetailsPage.isToolTipDisplayed("Save"));
     //_test.Log(Status.Pass, "Verify Tooltip Display Save and the content get UnSaved");
     //ContentDetailsPage.ClickSaveButton();
     //_test.Log(Status.Info, "Click on Save Button of Content Detail Page");
     CommonSection.Dropdowntoggle.SavedContent();
     _test.Log(Status.Info, "Open Saved Content Form Dropdown Toggle");
     Assert.IsTrue(SavedContentPage.isSavedDataDisplayedinResult(generalcoursetitle + "TC34835"));
     _test.Log(Status.Pass, "Verify content is Displayed");
     //Assert.IsTrue(SavedContentPage.isSavedDataDisplayed(""));
     //_test.Log(Status.Pass, "Verify content is Displayed");
     //SavedContentPage.ClickSaveButton();
     //_test.Log(Status.Info, "Click Save Button in Saved content Page");
     //Assert.IsFalse(SavedContentPage.isSaveButtonIconGreen());
     //_test.Log(Status.Pass, "Verify Save Button icon is Plane");
     //Assert.IsTrue(SavedContentPage.isToolTipDisplayed("Save"));
     //_test.Log(Status.Pass, "Verify Tooltip Display Save and the content get UnSaved");
     //CommonSection.Dropdowntoggle.SavedContent();
     //_test.Log(Status.Info, "Open Saved Content Form Dropdown Toggle");
     //Assert.IsFalse(SavedContentPage.isSavedDataDisplayed(""));
     //_test.Log(Status.Pass, "Saved content is not Displayed");
 }
示例#2
0
        public void b2_Save_Items_From_More_Like_This_Similar_Content_34774()
        //Prerequisite - Recently added in recommendation must be Enabled

        {
            //CommonSection.Logout();
            //_test.Log(Status.Info, "Logout of the Site Admin Account");
            //LoginPage.LoginAs("ak_learner").WithPassword("").Login();
            //_test.Log(Status.Info, "Login with Learner's Account");
            CommonSection.SearchCatalog(generalcoursetitle + "TC34835");
            //CommonSection.SearchCatalog(generalcoursetitle + "TC34827");
            _test.Log(Status.Info, "Click Catalog Search Button");

            SearchResultsPage.ClickCourseTitle(generalcoursetitle + "TC34835");// generalcoursetitle + "TC34827");
            _test.Log(Status.Info, "Click on Course Title");
            Assert.IsTrue(ContentDetailsPage.isMoreLikeThisDisplayed());
            _test.Log(Status.Pass, "Verify More Like This Portlet is Displayed");
            ContentDetailsPage.MorelikethisPortlet.ClickSaveButton(generalcoursetitle + "TC34835");
            _test.Log(Status.Info, "Click Save Button in More Like This");
            //Assert.IsTrue(ContentDetailsPage.MorelikeThis.isSaveButtonIconGreen("GC_Reg0101491949TC34827"));
            //_test.Log(Status.Pass, "Verify Save Button icon is Green");
            // Assert.IsTrue(ContentDetailsPage.MorelikethisPortlet.isToolTipDisplayed("Saved"));
            // _test.Log(Status.Pass, "Verify Tooltip Display Saved and the content get Saved");
            string ContentSaved = ContentDetailsPage.MorelikethisPortlet.ContentTitle();

            //ContentDetailsPage.MorelikeThis.ClickSaveButton();
            //_test.Log(Status.Info, "Click Save Button in More Like This");
            //Assert.IsFalse(ContentDetailsPage.MorelikeThis.isSaveButtonIconGreen());
            //_test.Log(Status.Pass, "Verify Save Button icon is Plane");
            //Assert.IsTrue(ContentDetailsPage.MorelikeThis.isToolTipDisplayed("Save"));
            //_test.Log(Status.Pass, "Verify Tooltip Display Save and the content get UnSaved");
            //ContentDetailsPage.MorelikeThis.ClickSaveButton();
            //_test.Log(Status.Info, "Click Save Button in More Like This");
            CommonSection.Dropdowntoggle.SavedContent();
            _test.Log(Status.Info, "Open Saved Content Form Dropdown Toggle");
            Assert.IsTrue(SavedContentPage.isSavedDataDisplayedinResult(ContentSaved));
            _test.Log(Status.Pass, "Verify content is Displayed");
            //SavedContentPage.ClickSaveButton();
            //_test.Log(Status.Info, "Click Save Button in Saved content Page");
            //CommonSection.Dropdowntoggle.SavedContent();
            //_test.Log(Status.Info, "Open Saved Content Form Dropdown Toggle");
            //Assert.IsFalse(SavedContentPage.isSavedDataDisplayed(""));
            //_test.Log(Status.Pass, "Saved content is not Displayed");
        }