public void CreatingBudgetRows() { string sit = Context.TestSettings.GetValue("sit"); string price = Context.TestSettings.GetValue("price"); string result = Context.TestSettings.GetValue("result"); string typeinvest = Context.TestSettings.GetValue("typeinvest"); string category = Context.TestSettings.GetValue("category"); string objectinvest = Context.TestSettings.GetValue("objectinvest"); string quantity = Context.TestSettings.GetValue("quantity"); string date = Context.TestSettings.GetValue("date"); string year = Context.TestSettings.GetValue("year"); string[] parseDate = date.Split('-'); string newDateFormat = parseDate[2] + "-" + parseDate[0] + "-" + parseDate[1]; ListView.ClickRowTable(year); CreateBudgetDetailView.SetElementValue("Название сита", sit); PageController.ScrollToElementById(Context, "DetalizationOfSite"); CreateBudgetDetailView.ClickElement("Создать"); CreateBudgetDetailView.SetElementValue("Центр результата", result); CreateBudgetDetailView.SetElementValue("Тип инвестиций", typeinvest); CreateBudgetDetailView.SetElementValue("Категория", category); CreateBudgetDetailView.SetElementValue("Предмет инвестиций", objectinvest); CreateBudgetDetailView.SetElementValue("Дата поставки", date); CreateBudgetDetailView.SetElementValue("Количество", quantity); CreateBudgetDetailView.SetElementValue("Цена", price); CreateBudgetDetailView.ClickElement("Сохранить"); Thread.Sleep(2000); // Проверка по дате ListView.CheckTableContains("Детальный план сита", "Дата поставки", newDateFormat); //проверить статус //ListView.CheckTableContains("Детальный план сита", "Статус", status); }
public void CreatingBudgetRows() { string sit = Context.TestSettings.GetValue("sit"); string price = Context.TestSettings.GetValue("price"); string result = Context.TestSettings.GetValue("result"); string typeinvest = Context.TestSettings.GetValue("typeinvest"); string category = Context.TestSettings.GetValue("category"); string objectinvest = Context.TestSettings.GetValue("objectinvest"); string quantity = Context.TestSettings.GetValue("quantity"); string date = Context.TestSettings.GetValue("date"); string year = Context.TestSettings.GetValue("year"); ListView.ClickRowTable(year); CreateBudgetDetailView.SetElementValue("Название сита", sit); PageController.ScrollToElementById(Context, "DetalizationOfSite"); CreateBudgetDetailView.ClickElement("Создать"); CreateBudgetDetailView.SetElementValue("Центр результата", result); CreateBudgetDetailView.SetElementValue("Тип инвестиций", typeinvest); CreateBudgetDetailView.SetElementValue("Категория", category); CreateBudgetDetailView.SetElementValue("Предмет инвестиций", objectinvest); CreateBudgetDetailView.SetElementValue("Дата поставки", date); CreateBudgetDetailView.SetElementValue("Количество", quantity); CreateBudgetDetailView.SetElementValue("Цена", price); CreateBudgetDetailView.ClickElement("Сохранить"); // Проверка по дате ListView.CheckTableContainsByName(date, "Детальный план сита"); }
public void CreateYear() { string year = Context.TestSettings.GetValue("year"); ListView.ClickElement("Создать"); CreateBudgetDetailView.SetElementValue("Год", year); CreateBudgetDetailView.ClickElement("Сохранить"); //проверка на наличие бюджетного плана в списке бюджетных планов ListView.CheckTableContains(year); }
public void CreateYear1() { string year1 = Context.TestSettings.GetValue("invalidyear"); ListView.ClickElement("Создать"); CreateBudgetDetailView.SetElementValue("Год", year1); PageValidation.CheckError("Год должен быть в диапазоне от 2008 до 2040"); CreateBudgetDetailView.ClickElement("Отмена"); }
public void EditFields() { string objectinvest = Context.TestSettings.GetValue("newObjectinvest"); string quantity = Context.TestSettings.GetValue("newQuantity"); string date = Context.TestSettings.GetValue("newDate"); string price = Context.TestSettings.GetValue("price"); int newSum = Convert.ToInt32(quantity) * Convert.ToInt32(price); CreateBudgetDetailView.SetElementValue("Предмет инвестиций", objectinvest); CreateBudgetDetailView.SetElementValue("Дата поставки", date); CreateBudgetDetailView.SetElementValue("Количество", quantity); CreateBudgetDetailView.ClickElement("Сохранить"); InformationBudgetStringDetailView.ClickElement("ОК"); //проверки ListView.CheckTableContains(objectinvest); ListView.CheckTableContains(quantity); ListView.CheckTableContains(date); ListView.CheckTableContains(newSum.ToString()); }