IBM
Contents Index Previous Next



Creating a TTCN Test Suite Document


What You Will learn

Setting the Source and Target Directory

You will begin by setting the source and target directory in the Organizer. The source directory is where your new documents will be saved by default. The target directory is where generated files are put. Both of these directories must already exist - you cannot create them in the Organizer.

  1. Double-click the source directory icon in the Organizer window.
    • You may also select the source directory icon and then select Edit from the Edit menu in the Organizer or you may select Set Directories from the File menu.

The Set Directories dialog is opened, and you may change the source and target directories.

Figure 10 : The Set Directories dialog

  1. Select the source directory by writing the path in the text field or by browsing in the dialog that is opened when you click the folder button. Make sure that you have write access to the directory.
  2. In the same way, you can change the target directory.
  3. Click OK in the Set Directories dialog.

Creating a New Test Suite

When you have set the source and target directories, you should create a new TTCN document.

  1. Select the chapter TTCN Test Specification in the Organizer.
  2. Select Add New from the Edit menu in the Organizer.
    The Add New dialog is opened. In the dialog you should set the document type and name.

Figure 11 : Add New dialog

  1. Select TTCN and Test Suite or Modular Test Suite in the New document type list.
  2. Type Tutorial in the New document name field.
  3. Make sure that the option Show in editor is selected.
  4. Click OK.
    A new TTCN document is created in the source directory. At the same time, a TTCN icon is created in the Organizer. After that, the TTCN Suite is started. The TTCN Browser will show the new test suite in collapsed format.

Figure 12 : The TTCN Suite is started and the Browser displays the test suite


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