Resolving Conflicts while Automatically Merging GUI Map Files - WinRunner

If you chose the Auto Merge option in the GUI Map File Merge Tool and there were no conflicts between files, then a message confirms the merge.

When you merge GUI map files automatically, conflicts occur under the following circumstances:

  • Two windows have the same name but different physical descriptions.
  • Two objects in the same window have the same name but different physical descriptions.

The following example demonstrates automatically merging two conflicting source files (before.gui and after.gui) into a new target file (new.gui).The GUI Map File Auto Merge Tool opens after clicking OK in the conflict warning message box,as described in “Preparing to Merge GUI Map Files”. It enables you to resolve conflicts and prevents you from creating new conflicts in the target file.

Resolving Conflicts while Automatically Merging GUI Map Files

The conflicting objects are highlighted in red and the description of the conflict appears in a pane at the bottom of the dialog box.The files conflict because in both GUI map files, there is an object under the same window with the same name and different descriptions. Note that the windows and objects from the after.gui source file were copied to the new.gui target file without conflicts, since the new.gui file was initially empty.The names of the conflicting objects are displayed in red.

The source files are merged in the order in which they appear in the GUI Map File Merge Tool, as described in “Preparing to Merge GUI Map Files”.

To view the physical description of the conflicting objects or windows, click Description.

Each highlighted conflict can be resolved by clicking any of the following buttons. Note that these buttons are enabled only when the conflicting object/window is highlighted in both panes:

conflicting object/window is highlighted in both panes

Once all conflicts between the current source file and the target file have been resolved, the source file is automatically closed and the next conflicting source file is opened. Once all conflicts between GUI map files have been resolved, the remaining source file and the target file are closed, and the GUI Map File Auto Merge Tool closes.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

WinRunner Topics