public void A02_Learner_See_Only_Those_Tags_which_are_Linked_with_a_Content_for_which_Learner_Have_Access_34079() { // This test case depends on above Test Case 33520 CommonSection.Manage.Training(); _test.Log(Status.Info, "Navigating to Manage Training"); TrainingPage.SearchRecord(generalcoursetitle); _test.Log(Status.Info, "Searching the record"); ManageContentPage.ClickContentTitle(generalcoursetitle); _test.Log(Status.Info, "Clicking on searched record"); DocumentPage.ClickButton_CheckOut(); ManageCompetencyPage.removePermission(); _test.Log(Status.Info, "Removing Permission of learner from Content"); DocumentPage.ClickButton_CheckIn(); driver.LogoutUser(ObjectRepository.LogoutHoverLink, ObjectRepository.HoverMainLink); _test.Log(Status.Info, "Logout from Admin"); LoginPage.LoginAs("ssuser1").WithPassword("password").Login(); _test.Log(Status.Info, "Login as Learner"); Assert.IsFalse(Driver.Instance.IsElementVisible(By.XPath("//h4[contains(text(),'" + generalcoursetitle + "')]"))); _test.Log(Status.Info, "Assertion Pass as learner do not have access to those content tags for which learner do not have access"); driver.LogoutUser(ObjectRepository.LogoutHoverLink, ObjectRepository.HoverMainLink); LoginPage.LoginAs("").WithPassword("").Login(); }
public void A03_Admin_Add_New_Tag_into_a_Content_on_ManageContent_Page_34080() { // This test case depends on above two test cases 34079 and 33520 CommonSection.Manage.Training(); _test.Log(Status.Info, "Navigating to Manage Training"); TrainingPage.SearchRecord(generalcoursetitle); _test.Log(Status.Info, "Searching the record"); ManageContentPage.ClickContentTitle(generalcoursetitle); _test.Log(Status.Info, "Clicking on searched record"); DocumentPage.ClickButton_CheckOut(); ManageCompetencyPage.addPermission(); _test.Log(Status.Info, "Adding Permission into Content"); DocumentPage.ClickButton_CheckIn(); CommonSection.Manage.Training(); _test.Log(Status.Info, "Navigating to Manage Training"); TrainingPage.SearchRecord(generalcoursetitle); _test.Log(Status.Info, "Searching the record"); Assert.IsTrue(TrainingPage.removeTag_ManageContentSearchPage(tagname)); TC_34082 = true; _test.Log(Status.Info, "Assertion Pass as User removed tag from content from Manage Content Search Page"); Assert.IsTrue(TrainingPage.addTag_ManageContentSearchPage(tagname)); TC_34081 = true; _test.Log(Status.Info, "Assertion Pass as User added tag into content from Manage Content Search Page"); }