IBM
Contents Index Previous Next



Comparing TTCN Documents


The Compare tool is used for comparing two TTCN documents with respect to finding similarities that exist between them, i.e. two TTCN objects that have the same name. These objects need not necessarily be of the same type.

The Compare tool is accessed from a Browser and is applied to selections of items in that Browser.

Compare will check either only for similar names or for names and object type. The comparison can also include the contents of tables if required.

The Compare tool can also check the group structure of TTCN documents for similarities, i.e. it will indicate Test Group, Test Step Group and Default Group paths that are the same in both TTCN documents.

Any similarities that are found may be logged in a log file. There are three levels of log verbosity: quiet, some and full. Execution of the Compare tool may result in a new selection, which can be used to create a separate Browser if so wished.

One of the main uses of this tool will be to help remove conflicts from two TTCN documents prior to performing a merge operation.

Comparing by Using the Compare Tool

To use the Compare tool, you need two TTCN documents to operate on: the destination document and the compare document.

Figure 222 : How Compare works

A selection from the destination document may be compared with the compare document. If any similarities are found between the two TTCN documents this will result in the modification of the original selection in the destination TTCN document.

Open both the destination TTCN document and the compare TTCN document in browsers. Make the selection in the destination TTCN document Browser and call the Compare tool from the menu command File -> Compare (should this menu item be dimmed, most likely you have currently only one open TTCN document). The following Compare dialog will appear:

Figure 223 : Compare Documents dialog

Select compare document

Presents a list of currently opened TTCN documents except the destination TTCN document, from which the Compare tool was called. Choose in the list the compare TTCN document.

Selection action

Specifies the effect that the Compare operation will have on the original selection in the destination TTCN document.

If the Selection action is anything except Nothing, the TTCN tree is being expanded up till all selected leaf items.

Verbosity

Sets the verbosity level for the log.

Note:

Using the Nothing action together with the Quiet option is rather meaningless!

Compare Content

Extends the scope of the comparison to include the contents (down to the level of a single character) of the tables as well. Thus, two objects are considered to be identical if their names, object types and entire contents are identical. If the verbosity is full the differences are detailed.

Compare structure

Extends the scope of the comparison to include the Test Group, Test Step Group and Default Group references in the relevant behaviour tables. This option is only available when the Compare content option is chosen.


http://www.ibm.com/rational
Contents Index Previous Next