Exemple #1
0
 @Test
 public void testMapItemsDBdata() {
   robot.openComparisonFile(DATABASE_ZOO);
   robot.startComparison();
   robot.contextMenu("Unmap items");
   assertAreas(MF_MAIN_WINDOW);
   robot.contextMenu("Map items");
   assertAreas(getTestName() + "2", MF_MAIN_WINDOW);
 }
Exemple #2
0
 @Test
 public void testOpenSchemaCompariosnInNewDataComparion() {
   robot.openComparisonFile(DATABASE_Schema_FILE);
   robot.startComparison();
   robot.contextMenu("Open in new Data Comparison");
   assertAreas(MF_MAIN_WINDOW);
 }
Exemple #3
0
 @Test
 public void testSortTablesAscendingMapppedFirstDBdata() {
   robot.openComparisonFile(DATABASE_ZOO);
   robot.startComparison();
   robot.contextMenu("Sort tables", "Ascending mapped first");
   assertAreas(MF_MAIN_WINDOW);
 }
Exemple #4
0
 @Test
 public void testCollapseAllDBdata() {
   robot.openComparisonFile(DATABASE_ZOO);
   robot.startComparison();
   robot.contextMenu("Collapse tables");
   assertAreas(MF_MAIN_WINDOW);
 }
Exemple #5
0
 @Test
 public void testSortTablesDescendingMapppedFirst() {
   robot.openComparisonFile(DATABASE_Schema_ZOO);
   robot.startComparison();
   robot.contextMenu("Sort items", "Descending mapped first");
   assertAreas(MF_MAIN_WINDOW);
 }
Exemple #6
0
 // DatabaseData
 @Test
 public void testCheckContextMenuMain() {
   robot.openComparisonFile(ZOO);
   robot.contextMenu("");
   delay(200);
   assertAreas(DIFF_DOG_UP_WINDOW);
 }
Exemple #7
0
 @Test
 public void testCollapseAll() {
   robot.openComparisonFile(DATABASE_Schema_ZOO);
   robot.startComparison();
   robot.contextMenu("Collapse items");
   assertAreas(MF_MAIN_WINDOW);
 }
Exemple #8
0
 @Test
 public void testSortTablesAscending() {
   robot.openComparisonFile(DATABASE_Schema_ZOO);
   robot.startComparison();
   robot.contextMenu("Sort items", "Ascending");
   assertAreas(MF_MAIN_WINDOW);
 }
Exemple #9
0
 @Test
 public void testUnmapItemsDBSchema() {
   robot.openComparisonFile(DATABASE_Schema_ZOO);
   robot.startComparison();
   robot.contextMenu("Unmap items");
   assertAreas(MF_MAIN_WINDOW);
 }
Exemple #10
0
 @Test
 public void testSortTablesDescendingDBdata() {
   robot.openComparisonFile(DATABASE_ZOO);
   robot.startComparison();
   robot.contextMenu("Sort tables", "Descending");
   assertAreas(MF_MAIN_WINDOW);
 }
Exemple #11
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);
 }
Exemple #12
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);
 }
Exemple #13
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);
 }
Exemple #14
0
 @Test
 public void testShowReultDBdata() {
   robot.openComparisonFile(DATABASE_ZOO);
   robot.contextMenu("Compare tables");
   delay(1000);
   robot.contextMenu("Show results");
   robot.escapeDialog("Data is equal,", VK_N);
   assertAreas(MF_MAIN_WINDOW);
 }
Exemple #15
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);
 }
Exemple #16
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);
  }
Exemple #17
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);
 }
Exemple #18
0
 @Test
 public void testCloseModifiedComparisonWordDocuments() {
   robot.leftClickMenuItem("File", "Compare MS-Word files");
   robot.setCursorAtBeginning(RIGHT_SIDE);
   robot.delay(500);
   robot.typeString("World");
   robot.startComparison();
   robot.setCursorAtBeginning(RIGHT_SIDE);
   robot.typeString("Hello ");
   delay(1500);
   robot.tabsContextMenu("Close", TAB_WORD);
   robot.escapeDialog("Save changes", VK_N);
   assertAreas(MF_MAIN_WINDOW);
 }
Exemple #19
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);
 }
Exemple #20
0
 @Test
 public void testXMLSchemaExpandItemsAndAutolayout() {
   robot.openComparisonFile(XSDIF_Inlayout);
   robot.contextMenu("Autolayout");
   assertAreas(MF_MAIN_WINDOW);
 }
Exemple #21
0
 @Test
 public void testXMLSchemaCollapseItems() {
   robot.compareXMLSchemass(XSDL1, "Altova", XSDL2, "Altova");
   robot.contextMenu("Collapse items");
   assertAreas(MF_MAIN_WINDOW);
 }
Exemple #22
0
 @Test
 public void testXMLSchemaStartXMLMapping() {
   robot.openComparisonFile(XSDIF_Unmaped);
   robot.contextMenu("Start XML Schema mapping");
   assertAreas(MF_MAIN_WINDOW);
 }