IBM
Contents Index Previous Next



Using the Browser


What You Will Learn

Expanding and Collapsing the Test Suite

The Browser displays the test suite in a collapsed format, which is indicated by the three dots after the items in the test suite.

To expand the entire test suite:

  1. Select the top node in the Browser, that is Example_A.
  2. Select Expand Tree from the View menu.
    • It is also possible to open the pop-up menu on Example_A and select Expand Tree from it.
      All the collapsed items in the Browser are expanded.

Shortcut:

· <Shift+e> (Expand Tree)

Figure 33 : The Browser window with the expanded
modular test suite and no selected items

You may also want to deselect the test suite:
  1. Deselect the test suite by selecting Deselect All from the pop-up menu.

Shortcut:

· <Ctrl+\> (Deselect All)

To collapse the test suite:

Shortcut:

· c (Collapse)

· e (Expand - does not have the same effect as Expand Tree)

· <Shift+e> (Expand Tree)

Note that Expand and Collapse only work on a single selection. If more than one item or if no item is selected, the Collapse, Expand and Expand Tree commands are dimmed. In the following, it is assumed that the test suite is completely expanded in the Browser.

You should also note that items in bold font represent the static (structural) parts of the test suite that cannot be opened or edited. The items in normal, plain font represent TTCN tables, which of course can be opened and edited.

Building a Test Suite

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

To add a PCO Type to Example_A in the Browser:

  1. Select PCO Type Declarations in the Declarations Part.
  2. Select Add from the Browser Edit menu.
    Note that Add only works when a single item is selected.

Shortcut:

· <Ctrl+Shift+Ins> (Add)

A PCO type with the temporary name NoName is added in the PCO Type Declarations list.
  1. Rename the PCO type NoName by opening the pop-up menu on NoName and selecting Rename from it.

Shortcut:

· First click on NoName, then press r (Rename).

It is now possible to type the new name. In this example we will call the PCO type LOWER_PCO.
  1. In a similar manner as described above, 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)
    • 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)
    • A test case called TEST_CASE_1
      (Dynamic Part > Test Cases)
    • A test step called TEST_STEP_1
      Dynamic Part > Test Step Library)

Figure 34 : The Browser window showing some of the newly added items

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


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