public void P20_1_a06_View_job_Title_page_32179() { CareersPage.CreateJobTitle(JobTitle + "TC32179"); CommonSection.Manage.ProfessionalDevelopment(); _test.Log(Status.Info, "Open Career Menu Page"); CareersPage.ClickJobTitleTab(); _test.Log(Status.Info, "Click on Job Title Tab"); CareersPage.SearchJobtitle(JobTitle + "TC32179"); _test.Log(Status.Info, "Search Job Title"); CareersPage.ClickJobtitle(JobTitle + "TC32179"); _test.Log(Status.Info, "Clicked on Searched Job Title"); //CareersPage.EditJobTitleName(JobTitle); //_test.Log(Status.Info, "Perform Blank Search"); StringAssert.AreEqualIgnoringCase(JobTitle + "TC32179", AdminContentDetailsPage.JobTitle_Title(), "Title Not Matched"); _test.Log(Status.Pass, "Matched Job Title "); Assert.IsTrue(AdminContentDetailsPage.CompetenciesTabDisplay()); _test.Log(Status.Pass, "Competencies tab Display on Job Title Details page"); Assert.IsTrue(AdminContentDetailsPage.JobDetailstabDisplay()); _test.Log(Status.Pass, "Job Details tab Display on Job Title Details page"); //Deleted Job title After test complete CareersPage.DeleteJobTitle(JobTitle + "TC32179"); _test.Log(Status.Info, "Job Title Deleted"); StringAssert.AreEqualIgnoringCase("No matching records found", CareersPage.NoMatchingJobTitleFound("No matching records found")); _test.Log(Status.Pass, "Verify No matching records found message display after job title deleted"); }
public void a07_Create_new_job_title_with_default_value_and_assign_to_a_career_path_33920() { //login with a admin CareersPage.CreateCareerPath(CareerPathTitle + "TC33920"); CreateCareerPathPage.LevelsandjobtitlesTab.ClickCreateLevel(); //inside frame CommonSection.Manage.ProfessionalDevelopment(); _test.Log(Status.Info, "Navigating to Career page"); CareersPage.ClickJobTitleTab(); _test.Log(Status.Info, "Open Job Title tab on Career page"); CareersPage.ClickCreateJobTitleButton(); _test.Log(Status.Info, "Click Create Job title button from Jobtitle tab"); ManageJobTitlePage.CompetenciesTab.ClickCareerPath("None Selected"); ManageJobTitlePage.CompetenciesTab.SearchandSelect(CareerPathTitle + "TC33920"); ManageJobTitlePage.CompetenciesTab.clickyescheckmark(); _test.Log(Status.Info, "Click on none selected career path from competencies tab, search CP_demo_2006 and select level 2"); Assert.IsTrue(Driver.comparePartialString("Success", Driver.getSuccessMessage())); //StringAssert.AreEqualIgnoringCase("The selected items were added.", UnnamedJobtitled23Page.VerifyText("")); _test.Log(Status.Info, "Verify success message"); StringAssert.AreEqualIgnoringCase(CareerPathTitle + "TC33920", ManageJobTitlePage.VerifyCareerpathText(CareerPathTitle + "TC33920")); _test.Log(Status.Info, "Verify Saved career path"); StringAssert.AreEqualIgnoringCase("Level 1", ManageJobTitlePage.VerifyLevelText("Level 1")); _test.Log(Status.Info, "Verify Saved career path Level"); String Jobtitletext = ManageJobTitlePage.getJobTitletext(); ManageJobTitlePage.ClickCareerBreadcrumb(); CareersPage.ClickCareerPathTab(); _test.Log(Status.Info, "Navigating to Career Path Tab"); CareersPage.CareerPathTab.SearchCareerPath(CareerPathTitle + "TC33920"); CareersPage.CareerPathTab.ClickSearchResult(CareerPathTitle + "TC33920"); _test.Log(Status.Info, "search and open career path"); CreateCareerPathPage.LevelsandjobtitlesTab.ExpandLevel1(); // CP_demo_2006Page.ClickLevel2Expandlink(); _test.Log(Status.Info, "Expand level 1 for this career path"); StringAssert.AreEqualIgnoringCase(Jobtitletext, CreateCareerPathPage.LevelsandjobtitlesTab.Level.JobtitletextinsideLevel1(Jobtitletext)); _test.Log(Status.Info, "Verify career path name"); CareersPage.DeleteCareerPath(CareerPathTitle + "TC33920"); CareersPage.DeleteJobTitle(Jobtitletext); }