Comparing Two Repository Files Using SRFDiff
The SRFDiff utility allows you to compare two repository (.srf) files. Both SRFs must be from the same locale and language and compliant with the current Siebel Tools schema version. From the Help menu in Siebel Tools, choose Technical Support to view the schema version of the SRF that Siebel Tools is using.
NOTE: The SRFDiff utility validates only for a major schema version. Therefore, SRFs with different minor schema versions, such as 184.108.40.206 and 220.127.116.11, are valid schemas.
The differences between the two files, that is new, deleted, and changed objects, are recorded in two user-specified XML output files, depending on what the comparison discovers:
- diff_srf1_srf2.xml. This output file contains differences between the two SRFs and provides a list of new and modified objects. It may also contain new objects found in srf2 that are not found in srf1. This output file shows the differences found during the comparison using an attribute name/value list format.
- deleted_records_diff_srf1_srf2.xml. This output file contains deleted objects (objects present in srf1 but not in srf2).
If no differences are found or both SRF files are identical, then the SRFDiff utility does not generate output files.
To compare two repository files
- Log in to Siebel Tools.
- From the Tools menu, choose Utilities, and then the Compare SRFs menu item.
- In the Compare SRFs window, enter the following:
- Full pathname for the first SRF file
- Full pathname for the second SRF file you want to compare
- Full pathname for the output file
NOTE: If you do not specify a location for saving the output files, the SRFDiff utility by default saves these files to the Tools\objects directory.
- Click Compare.
The SRFDiff utility:
- Validates each SRF for file parameters, such as file existence, version, and language
- Creates one or two output files as follows:
- For new or changed objects or both, SRFDiff creates an output file that contains differences between the two SRFs. It also contains new objects present in one SRF file but not in the other file.
- For deleted objects, SRFDiff creates an output file that contains deleted objects that are present in one SRF file but not in the other file.
Invoking the SRFDiff Utility Using the srvrmgr Command Line Interface
You can also invoke SRFDiff using the server manager (srvrmgr) command line utility by entering the following command:
siebdev /srfdiff “<srf1>” “<srf2>” “<outputfile>”
For example, if you want to compare the siebel.srf file with the siebel_1.srf file that reside in the C:\Programs Files\Siebel Tools 8.1\OBJECTS\ENU\ directory, you enter the following command:
siebdev /srfdiff “C:\Programs Files\Siebel Tools 8.1\OBJECTS\ENU\siebel.srf” “C:\Programs Files\Siebel Tools 8.1\OBJECTS\ENU\siebel_1.srf” “C:\Programs Files\Siebel Tools 8.1\OBJECTS\”
– No need of manual tracking
– It will shows what is added or removed from one srf to another and vice versa.
– It captures one change per object and does not captured multiple changes against same object for different change requirement i.e. If object is changed for two change request then it will only capture as object changed and does not shows how many times it is changed
Open the output file and see the differences: