public void ThenIVerifyThatCompanyGoalCreatedOnCompanyGoalPage() { companyGoalsPage = CompanyGoalsPage.Init(CurrentDriver); for (int i = 0; i < TitleQuantitativeGoal.Length; i++) { CompanyGoalsPage.CompanyGoal quantitativeGoal = companyGoalsPage.InitQuantitativeGoal(AddCompanyValueToTheGoalTitle(TitleQuantitativeGoal[i])); AssertForQuantitativeCompanyGoals(i, quantitativeGoal); } }
public void WhenIScheduleQualitativeCompanyGoal() { for (int i = 0; i < TitleQualitativeGoal.Length; i++) { companyGoalsPage = CompanyGoalsPage.Init(CurrentDriver); AddCompanyGoalFrame addCompanyGoal = companyGoalsPage.AddCompanyGoalButtonClick(); addCompanyGoal.Title = AddCompanyValueToTheGoalTitle(TitleQualitativeGoal[i]); addCompanyGoal.StartDate = StartGoalTime; addCompanyGoal.DueDate = EndGoalTime; addCompanyGoal.Weight = WeightQualitativeGoal[i]; addCompanyGoal.PersentComplete = PersentCompleteQualitativeGoal[i]; addCompanyGoal.SelectOrgUnit("Quality Control"); addCompanyGoal.SaveButtonClick(); } }
public void WhenIScheduleCompanyGoal() { for (int i = 0; i < TitleQuantitativeGoal.Length; i++) { companyGoalsPage = CompanyGoalsPage.Init(CurrentDriver); AddCompanyGoalFrame addCompanyGoal = companyGoalsPage.AddCompanyGoalButtonClick(); addCompanyGoal.Title = AddCompanyValueToTheGoalTitle(TitleQuantitativeGoal[i]); addCompanyGoal.StartDate = StartGoalTime; addCompanyGoal.DueDate = EndGoalTime; addCompanyGoal.Weight = WeightQuantitativeGoal[i]; addCompanyGoal.SetQuantitativeGoal(); addCompanyGoal.BestValue = BestValueQuantitativeGoal[i]; addCompanyGoal.MaxResult = MaxResultForQuantitativeGoal[i]; addCompanyGoal.TargetResult = TargetForQuantitativeGoal[i]; addCompanyGoal.ThresholdResult = ThresholdQuantitativeGoal[i]; addCompanyGoal.ActualResult = ActualResultForQuantitativeGoal[i]; addCompanyGoal.SelectOrgUnit("Quality Control"); addCompanyGoal.SaveButtonClick(); } }