IBM
Contents Index Previous Next



Presenting Status Information


The Reporter presents status information on selected Browser items (i.e. TTCN objects) in the form of a simple list. This list can include such information as analyze status and modification dates etc. The Reporter also provides limited formatting of the list.

Reporter output may be stored to file for later use, for example printing or as input to an AWK script for further processing.

Note: UNIX only

The Reporter tool is only available on UNIX.

Constructing Lists with the Reporter

The Reporter tool is available from the Browser Tools menu.

Tools > Reporter

The Reporter tool is applied to selected items in a Browser, and presents them in the form of a simple list. Selections can either be made by using the mouse or by using the Selector tool (see Using More Complex Selections).

Figure 187 : Reporter dialog

Log Device

Controls the log (output) device for the Reporter tool. The default value is Screen, but the log can be directed to a named file by choosing File or turn it off altogether by choosing None. The file extension for the reporter log is .rpt.

For a full description of this command see The TTCN Suite Logs.

Action

The following options specify which information about each selected item shall appear in each Reporter list entry.

Formatting

The list can be formatted using either tab or nl + tab, where nl stands for new line.

Example 199

Part of a Reporter log showing two test steps. The list was generated using only the Name and Type option with the format option set to tab.

Figure 188 : The TTCN Suite log for Reporter (tab)


Example 200

Part of a Reporter log showing two test steps. The list was generated using all the options and with the nl + tab format.

Figure 189 : The TTCN Suite log for Reporter (nl+tab)


Verbosity

Full verbosity gives more detailed information. The following extra information is available with full verbosity:

Revision Control

There is no integrated revision control system in the TTCN Suite. Since normal visible files are used to store the TTCN documents it is easy to integrate the TTCN Suite in a revision control system like SCCS or RCS. The .itex file format, being binary, is however not very suitable for that, it is better to use the TTCN-MP format to store in the revision control system.

Increased functionality is obtained if not only the TTCN-MP file is stored. The output from the Reporter contains useful information like modification dates and cross-reference lists.

By applying the following procedure whenever a check-point is desired the revision system becomes even more powerful:

  1. Select the entire document.
  2. Use the Convert to MP command to create a TTCN-MP file. Store it as e.g. Test-Suite.mp.
  3. Use the Reporter, setting relevant options, to create a report. This report could now include modification date, cross-reference lists, etc. The formatting option tab should be chosen. This means that each TTCN object will occupy one line.
  4. Store the log-window created by the reporter as e.g. Test-Suite.rpt.
  5. Allow both files to be handled by the revision control system

It is now easy to obtain useful information about the difference between revisions by simply comparing the stored report files. A compare could be made using e.g. sccs diff (if SCCS is used).


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