Exemple #1
0
 public void Create_Career_Path_31460()
 {
     CommonSection.Manage.ProfessionalDevelopment();
     CareersPage.ClickCreateCareerPath();
     CreateCareerPathPage.EditCareerPathName(CareerPathTitle);
     //  CreateCareerPathPage.SaveCareerPathName();
     Assert.IsTrue(Driver.comparePartialString("Success", CreateCareerPathPage.GetSuccessMessage()));
     Assert.IsTrue(CareersPage.CheckCareerPathTitle("Create Career Path"));
 }
Exemple #2
0
 public void Test_when_User_sets_the_active_dates_for_a_career_path_33167()
 {
     // LoginPage.GoTo();
     //LoginPage.LoginClick();
     //LoginPage.LoginAs("").WithPassword("").Login(); //Login as Competency Manager
     CommonSection.Manage.Careerstab();
     _test.Log(Status.Info, "Navigating to Career page");
     CareersPage.CareerPathTab.CreateCareerPath();
     _test.Log(Status.Info, "Click Create Career Path");
     CreateCareerPathPage.EditCareerPathName("Reg_CareerPath");
     _test.Log(Status.Info, "Fill career path name");
     CreateCareerPathPage.ClickCareerBreadcrumb();
     _test.Log(Status.Info, "click on career breadcrumb ");
     CareersPage.CareerPathTab.SearchCareerPath("Reg_CareerPath");
     _test.Log(Status.Info, "search created career path");
     StringAssert.AreEqualIgnoringCase("Reg_CareerPath", CareersPage.CareerPathTab.VerifySearchText("Reg_CareerPath"));
     _test.Log(Status.Info, "Verify career path name");
     StringAssert.AreEqualIgnoringCase("Active", CareersPage.CareerPathTab.VerifySearchedRecordStatusText("Active"));
     _test.Log(Status.Info, "Verify career path status");
     CareersPage.CareerPathTab.ClickSearchResult("Reg_CareerPath");
     _test.Log(Status.Info, "click career path name");
     CreateCareerPathPage.SetActiveDates("5/4/2018", "5/31/2018");
     _test.Log(Status.Info, "Define Career path Active Datas");
     //Assert.IsTrue(CreateCareerPathPage.SetActiveDatesPopup.VerifyText("SetActiveDates "));
     //CreateCareerPathPage.FillStartDate("5/4/2018").FillEndDate("5/31/2018").ClickSave();
     Assert.IsTrue(Driver.comparePartialString("Success", CreateCareerPathPage.GetSuccessMessage()));
     _test.Log(Status.Info, "Date saved");
     Assert.IsTrue(CreateCareerPathPage.VerifyDates("Active from 05/04/2018 until 05/31/2018"));
     _test.Log(Status.Info, "Verify Career Path active dates");
     StringAssert.AreEqualIgnoringCase("Active", CareersPage.CareerPathTab.VerifySearchedRecordStatusText("Active"));
     _test.Log(Status.Info, "Verify status should be Active");
     CreateCareerPathPage.ClickCareerBreadcrumb();
     _test.Log(Status.Info, "click on career breadcrumb");
     CareersPage.CareerPathTab.SearchCareerPath("Reg_CareerPath");
     _test.Log(Status.Info, "Search created career path");
     StringAssert.AreEqualIgnoringCase("Reg_CareerPath", CareersPage.CareerPathTab.VerifySearchText("Reg_CareerPath"));
     _test.Log(Status.Info, "Verify career path name");
     StringAssert.AreEqualIgnoringCase("Active", CareersPage.CareerPathTab.VerifySearchedRecordStatusText("Active"));
     _test.Log(Status.Info, "Verify career path status");
 }