Exemplo n.º 1
0
 public void DeleteCateGoryTest()
 {
     Robot.ClickTabControl(CATEGORY_MANAMER);
     Robot.ClickListViewItemByIndex(CATEGORY.CategoryListBox.ToString(), 0);
     Robot.AssertEdit(CATEGORY.CategoryNameTextBox.ToString(), "Hambugers");
     Robot.ClickButton(CATEGORY.DeleteSelectedCategoryButton.ToString());
     Robot.AssertEdit(CATEGORY.CategoryNameTextBox.ToString(), "");
 }
Exemplo n.º 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");
 }
Exemplo n.º 3
0
 public void TestMealInfotmation()
 {
     Robot.SetForm("StartUp");
     Robot.ClickButton("restaurant");
     Robot.SetForm("PosRestaurantSideForm");
     Robot.ClickListViewByValue("mealListBox", "熱咖啡");
     Robot.AssertButtonEnable("deleteMealButton", true);
     Robot.AssertEdit("mealNameTextBox", "熱咖啡");
 }
Exemplo n.º 4
0
 public void DeleteMealTest()
 {
     Robot.ClickTabControl(MEAL_MANAMER);
     Robot.ClickListViewItemByIndex(MEAL.MealListBox.ToString(), 0);
     Robot.AssertEdit(MEAL.MealNameTextBox.ToString(), "牛肉麵");
     Robot.ClickButton(MEAL.DeleteSelectedMealButton.ToString());
     Robot.AssertEdit(MEAL.MealNameTextBox.ToString(), "");
     Robot.AssertEdit(MEAL.MealPriceTextBox.ToString().ToString(), "0");
     Robot.AssertEdit(MEAL.MealDescriptionTextBox.ToString().ToString(), "");
     Robot.AssertEdit(MEAL.MealPathTextBox.ToString().ToString(), "");
 }
Exemplo n.º 5
0
 public void EditMealTest()
 {
     Robot.ClickTabControl(MEAL_MANAMER);
     Robot.ClickListViewItemByIndex(MEAL.MealListBox.ToString(), 0);
     Robot.AssertEdit(MEAL.MealNameTextBox.ToString(), "牛肉麵");
     Robot.SetEdit(MEAL.MealNameTextBox.ToString(), "ModifyMeal");
     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(), 0, "ModifyMeal");
 }