Example #1
0
  @Test
  public void testCompareSelectedTables() {
    robot.openComparisonFile(DATABASE_ZOO);
    Rectangle rect = robot.findTagsImage(ANIMALS_LEFT);
    robot.contextMenu("Compare selected tables", ImageUtils.findMid(rect));
    rect = robot.findTagsImage(DIFF_ICO);
    robot.contextMenu("Compare tables", ImageUtils.findMid(rect));

    Rectangle rect2 = robot.findTagsImage(KEEPERS_NOT_SELECTED);
    robot.contextMenu("Open selected in new Schema Comparison", ImageUtils.findMid(rect2));
    assertAreas(MF_MAIN_WINDOW);
  }
Example #2
0
 // XML Schemas
 @Test
 public void testUnmapSelctedXMLSchema() {
   robot.openComparisonFile(XSDIF_SCHEMA_COMPA_VALID);
   robot.startComparison();
   delay(4000);
   Rectangle rect = robot.findTagsImage(DEPARTAMENT);
   robot.contextMenu("Unmap selected", ImageUtils.findMid(rect));
   delay(100);
   robot.undo();
   delay(100);
   robot.redo();
   delay(100);
   robot.contextMenu("Set as active root element", ImageUtils.findMid(rect));
   delay(100);
   assertAreas(MF_MAIN_WINDOW);
 }
Example #3
0
 @Test
 public void testCheckContextMenuEle() {
   robot.openComparisonFile(ZOO);
   Rectangle rect = robot.findTagsImage(OPEN_LEFT_SCHEMA_ICON);
   robot.contextMenu("", ImageUtils.findMid(rect));
   delay(200);
   assertAreas(DIFF_DOG_UP_WINDOW);
 }
Example #4
0
 @Test
 public void testUnmapSelctedDBData() {
   robot.openComparisonFile(DATABASE_ZOO);
   robot.startComparison();
   Rectangle rect = robot.findTagsImage(ANIMALS_LEFT);
   robot.contextMenu("Unmap selected", ImageUtils.findMid(rect));
   assertAreas(MF_MAIN_WINDOW);
 }
Example #5
0
 @Test
 public void testOpenSelectedInNewDataComparison() {
   robot.openComparisonFile(DATABASE_Schema_ZOO);
   robot.startComparison();
   Rectangle rect = robot.findTagsImage(KEEPERS);
   robot.contextMenu("Open selected in new Data Comparison", ImageUtils.findMid(rect));
   assertAreas(MF_MAIN_WINDOW);
 }
Example #6
0
 @Test
 public void testOpenSelected2ItemsInNewDataComparison() {
   robot.openComparisonFile(DATABASE_Schema_ZOO);
   robot.startComparison();
   Rectangle first = robot.findTagsImage(ANIMALS);
   Rectangle second = robot.findTagsImage(SPECIES);
   robot.select2Rectangles(first, second);
   robot.contextMenu("Open selected in new Data Comparison", ImageUtils.findMid(second));
   assertAreas(MF_MAIN_WINDOW);
 }
Example #7
0
 @Test
 public void testApplyMappingFromGlobalItem() {
   robot.openComparisonFile(XSDIF_SCHEMA_COMPA_VALID);
   robot.startComparison();
   robot.contextMenu("Unmap items");
   delay(4000);
   robot.dragDropSchema(DEPARTAMENT_LEFT, DEPARTAMENT_RIGHT);
   robot.contextMenu("Collapse items");
   robot.contextMenu("Expand items");
   robot.contextMenu("Autolayout");
   Rectangle rect = robot.findTagsImage(DEPARTAMENT_SUB_ELE);
   robot.contextMenu("Apply mapping from global item", ImageUtils.findMid(rect));
   assertAreas(MF_MAIN_WINDOW);
 }