IBM
Contents Index Previous Next



Using the Browser


What You Will Learn

Expanding and Collapsing Nodes

The Browser displays the test suite in a collapsed format, which is indicated by plus signs in front of the nodes. You expand and collapse the nodes the same way that you expand and collapse directory levels in the Windows Explorer.

Figure 13 : The Dynamic Part has been expanded

Some nodes are not marked with plus or minus signs. Those node are tree nodes without children. The node Test Cases in Figure 13 is an example of this. Such nodes represent the static (structural) parts of the test suite that cannot be opened or edited.

Building a Test Suite

You are now going to add a TTCN table to your test suite.

To add a PCO type:

  1. Expand the Declarations Part.
    To be able to see the entire test suite, you may also have to enlarge the Browser window.
  2. Select the PCO Type Declarations node.
  3. Select Add in from the Edit menu.
    A PCO Type with the temporary name NoName is added in the PCO Type Declarations list. The table icon looks like a small graphical table, which means that it can be opened and edited.
  4. Rename the PCO type NoName by clicking on it when it is selected, that is, it becomes highlighted. Name the PCO type LOWER_PCO.

Figure 14 : The test suite when a PCO Type has been added

Note that the new table is marked with a question mark to indicate that it has not yet been analyzed.
  1. You should also add the following items:
    • A TTCN PCO called L
      (Declarations Part > PCO Declarations)
    • A TTCN PDU called SEND
      (Declarations Part > PDU Type Definitions > TTCN PDU Type Definitions)
    • A TTCN PDU called RECEIVE
      (Declarations Part > PDU Type Definitions > TTCN PDU Type Definitions)
      You can also copy and paste SEND and change the name to RECEIVE.
    • A TTCN PDU constraint on the SEND PDU called S1
      (Constraints Part > PDU Constraint Declarations > TTCN PDU Constraint Declarations)
    • A TTCN PDU constraint on the RECEIVE PDU called R1
      (Constraints Part > PDU Constraint Declarations > TTCN PDU Constraint Declarations)
      You can also copy and paste S1 and change the name to R1.
    • A test case called TEST_CASE_1
      (Dynamic Part > Test Cases)
    • A test step called TEST_STEP_1
      Dynamic Part > Test Step Library)

Figure 15 : The test suite when the tables have been added

The next step is to edit the tables that you just added.


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