IBM
Contents Index Previous Next



The Print Dialogs in the TTCN Suite


To print from the TTCN Suite:

  • Select Print from the File menu. (On UNIX, this menu choice is included in the Browser.)
    • In Windows, if the test suite overview has not been generated previously, you will have to confirm the generation before the test suite can be printed.
      In the Print dialog that will be opened, you may specify the page range and if the file is to be printed to a file or a printer. The output will be in TTCN-GR format - the graphical format of TTCN - according to ISO/IEC 9646-3, and it will include document indices and automatic page numbers.

When you print a TTCN document, the main difference between printing from the Organizer and printing from the TTCN Suite is:

See also The Print TTCN Dialog in the Organizer.

Printing in the TTCN Suite in Windows

In Windows, the print dialogs are Windows standard. Besides the actual Print dialog there are also Print Setup and Print Preview dialogs.

To open a Print Setup dialog:

To open a print preview dialog:

Printing in the TTCN Suite on UNIX

On UNIX, you can select which Browser parts and items, for example a single table or sets of tables, to include in the printout. The selections may be arbitrary - they will be printed as a coherent document anyway. It is also possible to change the page numbering of the printout.

The settings in the print dialog will be described below:

Figure 82 : The TTCN Suite Print dialog on UNIX

Example 16

If a TTCN document contains ten pages numbered 1 to 10, then Start page = 3 and End page = 3 will cause only page 3 to be printed.

Printing PostScript Files

The editable field of the Print dialog not only allows to change the name of the printer or to apply flags to the print command. It is also possible to insert the name of a filter for the produced PostScript code. In the public domain there exist a package of programs called pstools that make various magic operations with a PostScript file. The following example will print four TTCN Suite pages on each A4 page (the syntax of pstops is somewhat hard to read though):

Example 17

pstops `4:0@0.5(0.8cm,14cm)+1@0.5(10.5cm,14cm)\
+2@0.5(0.8cm,0cm)+3@0.5(10.5cm,0cm)' | lpr

Other filters are able to print double sided intended to bind into a book, print odd pages first etc.

By using a PostScript viewer as Ghostview instead of the normal print command, the printout of the TTCN document can be viewed on screen rather than being printed:

Example 18

ghostview -

The text in this field is controlled by the resource Itex.print.commandPrefix. This is by default lpr -P or lp -s depending on platform but can be altered (note that the content of the environment variable PRINTER/LPDEST is concatenated to this string). See Customizing the TTCN Suite (on UNIX) which contains a description on how to modify resources in the TTCN Suite.


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