Beispiel #1
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);
 }
Beispiel #2
0
 // DatabaseData
 @Test
 public void testCheckContextMenuMain() {
   robot.openComparisonFile(ZOO);
   robot.contextMenu("");
   delay(200);
   assertAreas(DIFF_DOG_UP_WINDOW);
 }
Beispiel #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);
 }
Beispiel #4
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);
 }
Beispiel #5
0
 @Test
 public void testExpandAllDBdata() {
   robot.openComparisonFile(DATABASE_ZOO);
   robot.startComparison();
   robot.contextMenu("Collapse tables");
   delay(1000);
   robot.contextMenu("Expand tables");
   assertAreas(MF_MAIN_WINDOW);
 }
Beispiel #6
0
 @Test
 public void testExpandAll() {
   robot.openComparisonFile(DATABASE_Schema_ZOO);
   robot.startComparison();
   robot.contextMenu("Collapse items");
   delay(1000);
   robot.contextMenu("Expand items");
   assertAreas(MF_MAIN_WINDOW);
 }
Beispiel #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);
 }
Beispiel #8
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);
 }