- In the header of Dev Studio, click .
- Click Compare Rules.
- In the Instance #1 section, specify the first rule by
providing the following information:
- In the Rule Name field, enter the name of the rule that you want to compare.
- In the Rule Type field, click the displayed rule type and select a value from the list.
- In the Applies To field, select the class that contains the rule.
- In the RuleSet field, select the ruleset that contains the rule.
- In the Version field, select the ruleset version that contains the rule.
- Click Find.
- In the list of rules that appears, mark the Select field of the first rule that you want to compare.
- In the Instance #2 section of the new panel, select the
second rule to compare by performing one of the following actions:
- If the second rule instance that you want to compare is in the list, to select it, click the button beside the rule name.
- If the second rule instance that you want to compare is not in the list, in the new panel, repeat actions from step 3, and then, in the list of rules that appears, mark the Select field of the second rule that you want to compare.
- Click Compare >> to generate the Differences Found report.
- In a selected column of the report, click a row entry that has a change to
display the Comparison of rules form.The form displays the first selected rule in the left column and the second rule in the right column.
The differences are color-coded:
- The values have changed in the two selected instances.
- At least one property value in the second rule is not present in the first rule. The first selected rule is presumed to be the source instance. Consequently, the changes highlighted in green are considered additions.
- At least one property with values in the first rule is not present in the second rule. The first selected rule is presumed to be the source instance. Consequently, these changes are deletions.
If the screen displays code that includes more than one change, you can move among changes by clicking the left and right arrow keys at the top of the screen. You can also use the search field to locate a specific text string.
Browse the changes by using the scroll bars at the right of each column. Each scroll bar controls both columns, which move together to maintain the relationship between the material displayed from each rule instance.
- Optional: To save the comparison results to a Microsoft Excel spreadsheet, click Export to Excel.