Exemple #1
0
 public void AddCateGoryTest()
 {
     Robot.ClickTabControl(CATEGORY_MANAMER);
     Robot.ClickButton(CATEGORY.AddNewCategoryButton.ToString());
     Robot.SetEdit(CATEGORY.CategoryNameTextBox.ToString(), "NewCat");
     Robot.ClickButton(CATEGORY.TriggerCategoryButton.ToString());
     Robot.AssertListViewItemByIndex(CATEGORY.CategoryListBox.ToString(), 4, "NewCat");
 }
Exemple #2
0
 public void EditCateGoryTest()
 {
     Robot.ClickTabControl(CATEGORY_MANAMER);
     Robot.ClickListViewItemByIndex(CATEGORY.CategoryListBox.ToString(), 0);
     Robot.AssertEdit(CATEGORY.CategoryNameTextBox.ToString(), "Hambugers");
     Robot.SetEdit(CATEGORY.CategoryNameTextBox.ToString(), "ModifyCat");
     Robot.ClickButton(CATEGORY.TriggerCategoryButton.ToString());
     Robot.AssertListViewItemByIndex(CATEGORY.CategoryListBox.ToString(), 0, "ModifyCat");
 }
Exemple #3
0
 public void AddMealTest()
 {
     Robot.ClickTabControl(MEAL_MANAMER);
     Robot.ClickButton(MEAL.AddNewMealButton.ToString());
     Robot.SetEdit(MEAL.MealNameTextBox.ToString(), "NewMeal");
     Robot.SetEdit(MEAL.MealPriceTextBox.ToString(), "999");
     Robot.SetComboBox(MEAL.MealCategoryComboBox.ToString(), "Beverage");
     Robot.ClickButton(MEAL.BrowseButton.ToString());
     Robot.SendKeyEnterToOpenFileDialog();
     Robot.ClickButton(MEAL.TriggerMealButton.ToString());
     Robot.AssertListViewItemByIndex(MEAL.MealListBox.ToString(), 29, "NewMeal");
 }