public void AddLanguage() { //Populate the excel data GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "Profile"); test = extent.CreateTest("Add Language Skill"); test.Log(Status.Info, "Starting the Add Language Test"); LanguagePage AddLanguage = new LanguagePage(); AddLanguage.Addlanguage(GlobalDefinitions.ExcelLib.ReadData(2, "Language"), GlobalDefinitions.ExcelLib.ReadData(2, "Level")); bool actual = AddLanguage.VerifyLanguage(GlobalDefinitions.ExcelLib.ReadData(2, "Language")); if (actual) { test.Log(Status.Pass, "Add Language Successfull"); Assert.IsTrue(actual); } else { test.Log(Status.Fail, "Add Language Failed"); Assert.IsTrue(actual); } }
public void ThenSellerShouldBeAbleToAddTheLanguageToTheProfilePage() { ExcelLibHelper.PopulateInCollection(ConstantHelpers.DataFilePath, "Language"); addLanguage.Addlanguage(ExcelLibHelper.ReadData(2, "Language"), ExcelLibHelper.ReadData(2, "Level")); }