public void a02_Manage_a_Classroom_course_26747() { string expectedresult = " The changes were saved."; string actualresult = string.Empty; CommonSection.CreateLink.ClassroomCourse(); _test.Log(Status.Info, "Opened Create Classroom Course Page"); classroomcourse.populateClassroomform(ExtractDataExcel.MasterDic_classrommcourse["Title"] + "editcontent", ExtractDataExcel.MasterDic_classrommcourse["Desc"]); _test.Log(Status.Info, "Filled all required information and submit the classroom creation page"); classroomcourse.buttonsaveclick(); _test.Log(Status.Info, "Click Save button"); //Trainingsobj.CreateContentButton_Click_New(Locator_Training.Classroom_CourseClick); CommonSection.Manage.Training(); _test.Log(Status.Info, "Navigate to Manage>>Training Page"); TrainingPage.SearchRecord(ExtractDataExcel.MasterDic_classrommcourse["Title"] + "editcontent"); _test.Log(Status.Info, "Searchched created Classroom course using manage Content portlet"); SearchResultsPage.ClickCourseTitle(ExtractDataExcel.MasterDic_classrommcourse["Title"] + "editcontent"); _test.Log(Status.Info, "Click on Classroom Course title from Manage Content page"); classroomcourse.buttoncourseeditclick(); _test.Log(Status.Info, "Click on edit button in summary accordian"); //SummaryPage.AddnewTag(TAGTitle + "TC26747"); Assert.IsTrue(SummaryPage.AddnewTag(TAGTitle + "TC26747")); _test.Log(Status.Pass, "Verify new tab can added in summary page"); SummaryPage.ClickSavebutton(); _test.Log(Status.Info, "Click Save button"); Assert.IsTrue(SummaryPage.checkContentTagsOnDetailsPage()); // Assert.IsTrue(Driver.checkContentTagsOnDetailsPage()); _test.Log(Status.Pass, "Verify added tag is displayed"); }
public void tc_26747_Manage_a_Classroom_course() { string actualresult = string.Empty; CommonSection.CreateLink.ClassroomCourse(); _test.Log(Status.Info, "Opened Create Classroom Course Page"); classroomcourse.populateClassroomform(classroomcoursetitle + "TC26747", "DescTC26747"); _test.Log(Status.Info, "Filled all required information and submit the classroom creation page"); ClassroomCoursePage.AvailableinCatalog.ClicktoUncheck(); classroomcourse.buttonsaveclick(); _test.Log(Status.Info, "Click Save button"); Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("No")); CommonSection.SearchCatalog(classroomcoursetitle + "TC26747"); Assert.IsFalse(SearchResultsPage.isSearchResultDisplayed(classroomcoursetitle + "TC26747")); _test.Log(Status.Pass, "Verify Created content is Searched"); CommonSection.Manage.Training(); _test.Log(Status.Info, "Navigate to Manage>>Training Page"); TrainingPage.SearchRecord(classroomcoursetitle + "TC26747"); _test.Log(Status.Info, "Searchched created Classroom course using manage Content portlet"); Assert.IsTrue(ManageContentPage.ResultGrid.isSeaarchedContentDisplay(classroomcoursetitle + "TC26747")); _test.Log(Status.Pass, "Verify Created content is Searched through Manage content"); SearchResultsPage.ClickCourseTitle(classroomcoursetitle + "TC26747"); _test.Log(Status.Info, "Click on Classroom Course title from Manage Content page"); classroomcourse.buttoncourseeditclick(); _test.Log(Status.Info, "Click on edit button in summary accordian"); //SummaryPage.AddnewTag(TAGTitle + "TC26747"); Assert.IsTrue(SummaryPage.AddnewTag(TAGTitle + "TC26747")); _test.Log(Status.Pass, "Verify new tab can added in summary page"); SummaryPage.ClickSavebutton(); _test.Log(Status.Info, "Click Save button"); Assert.IsTrue(SummaryPage.checkContentTagsOnDetailsPage()); // Assert.IsTrue(Driver.checkContentTagsOnDetailsPage()); _test.Log(Status.Pass, "Verify added tag is displayed"); }