Beispiel #1
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);
 }