Merging .NET Scripts

Compare two different .NET scripts or two versions of the same .NET script to merge differences between the .NET scripts or the .NET script versions.
  1. Choose View > Asset Browser or select Get Started > Asset Browser in the Start Screen.
  2. From the Asset Types list, select .NET Script. The existing .NET scripts for the selected project display in the right pane.
    Tip: If you do not see the .NET scripts that you are interested in, ensure that the correct project is selected in the Active Project list.
  3. To compare two different .NET scripts:
    1. Use Ctrl+Click to select the two .NET scripts that you want to compare.
    2. Right-click on the selection.
    3. Click View Differences.
  4. To compare two versions of the same .NET script:
    1. Right-click on the .NET script that you are interested in and select Show All Versions.
    2. In the Version Detail dialog, use Ctrl+Click to select the two versions that you want to compare.
    3. Click View Differences.
  5. To switch between the differences, use Next Difference and Previous Difference in the toolbar.
  6. To merge the selected difference:
    • Click Copy Left to merge the selected difference from the version or asset that is displayed in the right pane to the version or asset that is displayed in the left pane.
    • Click Copy Right to merge the selected difference from the version or asset that is displayed in the left pane to the version or asset that is displayed in the right pane.
  • Changes are highlighted in amber.
  • Additions are highlighted in green.
  • Items that do not exist in one of the compared assets are grayed out.
Note: While a Silk Test Workbench user is comparing or merging an active version of an asset, the asset is locked and cannot be edited by another user. If an asset is already open for editing in another window and you try to compare or merge an active version of the the asset, the version is opened in read-only mode. This is indicated in the title bar of the version.