Ranorex Magic Merger helps you merge XML-based Ranorex files that are under source control. It can automatically merge compatible changes and helps you resolve conflicts manually when needed.
Ranorex Magic Merger supports the following file types:
- Ranorex test suite files
.rxtst - Ranorex repository files
.rxrep - Project files
.csproj or .vbproj
Set up Ranorex Magic Merger
Ranorex Magic Merger is designed to be used as the default merge tool for supported Ranorex file types in your source control system.
The setup process depends on the source control system you use.
Git
When you open a solution that is under Git source control, or when you add a solution to Git, Ranorex Magic Merger displays a dialog asking whether you want to use it as the default merge tool for the supported Ranorex file types.
If you click Yes, Ranorex Studio configures everything automatically.
Note that this setting applies only to the current Git repository. Ranorex Magic Merger is not configured globally for all Git repositories.
SVN
You will need to manually set Ranorex Magic Merger as the default merging tool for the listed Ranorex file types in SVN.
For example, in TortoiseSVN:
- Open the TortoiseSVN settings.
- Go to External Programs > Merge Tools > Advanced.
- Add the supported Ranorex file types.
-
Enter the following command line (Adjust if necessary)
C:Program Files (x86)Ranorex 8.2BinRanorex.MagicMerger.exe -base:%base -mine:%mine -theirs:%theirs -output:%merged
TFVS
For TFVS, you must also configure Ranorex Magic Merger manually as the default merge tool for the supported file types.
Follow the setup instructions for your TFVS environment and add the supported Ranorex file types with the following command line (Adjust the path if necessary):
C:Program Files (x86)Ranorex 8.2BinRanorex.MagicMerger.exe -base:%3 -mine:%1 -theirs:%2 -output:%4
Use Ranorex Magic Merger locally
In some cases, you may want to run Magic Merger manually from the command line.
Use the executable with the required parameters (Adjust the path if necessary):
C:\Program Files (x86)\Ranorex 8.2\Bin\Ranorex.MagicMerger.exe -base:<basefile> -mine:<myfile> -theirs:<theirfile> -output:<outputfile>
The output file is generated as part of the merge process.
Merge files
In most cases, Ranorex Magic Merger merges files automatically and then displays a message confirming that the merge was completed successfully.
If a conflict requires manual resolution, the merge screen opens.
Merge screen
The merge screen is available in Simple view and Expert view.
It provides the following information and options:
- The conflict type and a short explanation.
- Switch between Simple and Expert view. Expert view provides a more detailed tree structure.
- Three available layouts for the current view.
- The three file versions involved in the merge (Expert view only)
- Tabs for navigating the hierarchy from the selected node onward. The node containing the conflict is highlighted in blue.
- An option to open the file in Ranorex Test Suite Runner
- A selector for the resolution strategy.
To resolve a conflict:
- Review the conflicting changes.
- Select the resolution strategy you want to apply.
- Click Continue.
After all manual conflicts are resolved, a success message appears, and the merge is complete.