![]() |
![]() |
![]() |
![]() |
![]() |
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.
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).
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.
- 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.
- Part of a Reporter log showing two test steps. The list was generated using all the options and with the nl + tab format.
Verbosity
Full verbosity gives more detailed information. The following extra information is available with full verbosity:
- Reanalysis
- It is obvious that if the item is not OK (its analyze status), it needs to be reanalyzed. Even if the item has an OK status, the item may need to be reanalyzed since it may contain references to items which have been modified. The reporter with full verbosity will determine if the item need to be reanalyzed or not. This information is reported together with the analysis status.
- Reference status
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:
- Select the entire document.
- Use the Convert to MP command to create a TTCN-MP file. Store it as e.g. Test-Suite.mp.
- 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.
- Store the log-window created by the reporter as e.g. Test-Suite.rpt.
- 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 |
![]() |
![]() |
![]() |
![]() |