public void ThenShouldBeAbleToVerifyTheEditedSkill() { ExcelLibHelper.PopulateInCollection(ConstantHelpers.DataFilePath, "Skill"); SkillPage skillPage = new SkillPage(); skillPage.EditSkill(ExcelLibHelper.ReadData(2, "Skill"), ExcelLibHelper.ReadData(3, "Skill")); }
public void AddSkill() { //Populate the excel data GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "Profile"); test = extent.CreateTest("Add Skill to Profile"); test.Log(Status.Info, "Starting the Add Skill to profile Test"); SkillPage skillPage = new SkillPage(); skillPage.AddSkill( GlobalDefinitions.ExcelLib.ReadData(2, "Skill"), GlobalDefinitions.ExcelLib.ReadData(2, "Skill Level")); bool actual = skillPage.VerifySkill( GlobalDefinitions.ExcelLib.ReadData(2, "Skill")); if (actual) { test.Log(Status.Pass, "Add Skill Successfull"); Assert.IsTrue(actual); } else { test.Log(Status.Fail, "Add Skill Failed"); Assert.IsTrue(actual); } }
private void Application_Startup(object sender, StartupEventArgs e) { DataBaseHelper.InitialCreate(); navigationWindow = new NavigationWindow(); navigationWindow.Title = "План треннировок"; navigationWindow.Height = 650; navigationWindow.Width = 900; var page = new SkillPage(); navigationWindow.Navigate(page); navigationWindow.Show(); }
public void ProfileSkill() { /* //Create Extent Report * test = extent.CreateTest("ProfileSkills"); * test.Log(Status.Info, "ProfileSkills"); * // taking Screenshots of adding Profileskills * SaveScreenShotClass.SaveScreenshot(driver, "ProfileSkills"); * // create object for add ProfileSkills*/ SkillPage obj = new SkillPage(driver); obj.AddSkill(); obj.UpdateSkill(); obj.DeleteSkill(); }
public void ThenClickOnAddButtonSellerShouldAbleToAddVerifySkillSuccesfully() { ExcelLibHelper.PopulateInCollection(ConstantHelpers.DataFilePath, "Skill"); skillPage = new SkillPage(); skillPage.AddSkill(ExcelLibHelper.ReadData(2, "Skill"), ExcelLibHelper.ReadData(2, "Level")); bool actualResult = skillPage.VerifySkill(ExcelLibHelper.ReadData(2, "Skill")); if (actualResult) { Assert.True(actualResult); } else { Assert.Fail("Verification Failed."); throw new Exception("Result does not match"); } }
public void ThenSellerShouldBeAbleToDeleteTheSkillToTheProfilePage() { skillPage = new SkillPage(); ExcelLibHelper.PopulateInCollection(ConstantHelpers.DataFilePath, "Skill"); skillPage.SkillDelete(ExcelLibHelper.ReadData(3, "Skill")); bool isRecordPresent = skillPage.VerifySkill(ExcelLibHelper.ReadData(3, "Skill")); // Assert.False(isRecordPresent); if (!isRecordPresent) { Assert.False(isRecordPresent); } else { Assert.Fail("Verification Failed."); throw new Exception("Result does not match"); } }
public void ThenAddAndUpdateOrDeleteTheExistingSkills() { SkillPage s = new SkillPage(); s.SkillEdit(driver); }
public void GivenEnterTheSkills() { SkillPage s = new SkillPage(); s.Skills(driver); }
public void ThenIShouldNotBeAbleToSeeTheDELETEDSKILLSAndShouldReceiveAPopUpMessage() { SkillPage create = new SkillPage(); create.ValidateDelSkill(); }
public void WhenIPressCROSSDeleteSignForSkills() { SkillPage create = new SkillPage(); create.DeleteSkill(); }
public void ThenIShouldAbleToValidateNewUPDATEDSKILLSRecordSuccessfully() { SkillPage create = new SkillPage(); create.ValidateUpdateSkill(); }
public void WhenIPressUpdatePenAndUpdateTheSKILLSAndLEVELAndPressTheUPDATEButton() { SkillPage create = new SkillPage(); create.UpdateNewSkill(); }
public void ThenIShouldAbleToValidateAddedNEWSKILLSRecordSuccessfully() { SkillPage create = new SkillPage(); create.ValidateAddedSkill(); }
public void WhenIPressADDNEWButtonAndThenIEnterAddSkillsAndLevelAndPressAdd() { SkillPage create = new SkillPage(); create.AddNewskill(); }
public void GivenIClickOnSKILLSDataTab() { SkillPage create = new SkillPage(); create.Skilltab(); }