Esempio n. 1
0
        public void CustomerSideInitializeTest()
        {
            Robot.SetForm(CUSTOMER_SIDE_FORM_TEXT);
            Robot.AssertText(LABEL_PAGE_NAME, LABEL_PAGE_TEXT_1_2);
            Robot.ClickButton(BUTTON_NEXT_PAGE);
            Robot.AssertText(LABEL_PAGE_NAME, LABEL_PAGE_TEXT_2_2);
            Robot.ClickButton(BUTTON_PREVIOUS_PAGE);
            Robot.AssertText(LABEL_PAGE_NAME, LABEL_PAGE_TEXT_1_2);
            Robot.ClickTabControl(TAB_CONTROL_DESSERT);
            Robot.AssertText(LABEL_PAGE_NAME, LABEL_PAGE_TEXT_1_1);
            Robot.ClickButton(BUTTON_MEAL_2);
            Robot.AssertEdit(RICH_TEXTBOX, RICH_TEXTBOX_VALUE);
            Robot.ClickButton(BUTTON_ADD);
            Robot.AssertDataGridViewByIndex(DATA_GRID_VIEW_NAME, 1.ToString(), _stringMeal);

            Robot.CloseWindow(CUSTOMER_SIDE_FORM_TEXT);
        }
Esempio n. 2
0
 public void CustomerSideDataGridViewTest()
 {
     Robot.SetForm(CUSTOMER_SIDE_FORM_TEXT);
     Robot.ClickButton(BUTTON_MEAL_1);
     Robot.ClickButton(BUTTON_ADD);
     Robot.ClickButton(BUTTON_MEAL_2);
     Robot.ClickButton(BUTTON_ADD);
     Robot.ClickButton(BUTTON_MEAL_7);
     Robot.ClickButton(BUTTON_ADD);
     Robot.ClickTabControl(TAB_CONTROL_DESSERT);
     Robot.ClickButton(BUTTON_MEAL_2);
     Robot.AssertEdit(RICH_TEXTBOX, RICH_TEXTBOX_VALUE);
     Robot.ClickButton(BUTTON_ADD);
     Robot.ClickTabControl(TAB_CONTROL_DRINKS);
     Robot.ClickButton(BUTTON_MEAL_3);
     Robot.ClickButton(BUTTON_ADD);
     Robot.ClickButton(BUTTON_MEAL_1);
     Robot.ClickButton(BUTTON_ADD);
     Robot.AssertDataGridViewByIndex(DATA_GRID_VIEW_NAME, 4.ToString(), _stringMeal);
     Robot.AssertText(LABEL_TOTAL_PRICE, LABEL_TOTAL_PRICE_1);
     Robot.SetDataGridViewQuantity(DATA_GRID_VIEW_NAME, 4.ToString(), 5.ToString());
     Robot.DeleteDataGridViewRowByIndex(DATA_GRID_VIEW_NAME, 2.ToString());
     Robot.AssertText(LABEL_TOTAL_PRICE, LABEL_TOTAL_PRICE_2);
 }