![]() |
![]() |
![]() |
![]() |
![]() |
Using the Table Editor
What You Will Learn
Opening the Table Editor
The Table Editor is opened when you double-click a table icon in the Browser:
Resizing the Table
As you can see, the Table Editor window is divided into three parts: the header, the body and the footer. These parts can be resized and hidden.
- Drag the horizontal bars that separates the table parts to change the relative size.
- Drag a row separator in the left most column to change the height of a row.
- Drag a column separator in a header of the body part of the table to change the column width.
Editing the Test Case Table
As you can see, TEST_CASE_1, or any other table, consists of fields where text may be inserted and edited. This is what you are going to do now:
- Click in the Purpose field and type some text, for example:
This is an example test case for the TTCN Suite tutorial.- Type some text in the Description field: Example test case.
- Select Insert New Row After from the Edit menu.
- Type L! SENT in the Behaviour description field of the new line.
- Type S1 in the Constraints Ref field.
- Press <Ins> or <Insert> to add another new line.
- Type +TEST_STEP_1 in the Behaviour Description field of row 2
When you have edited TEST_CASE_1, you should close the table.
Completing the Test Suite
You should now edit the other tables that you have already added to the test suite. Use the tables in the following figures as models.
- Edit the tables in the Declarations Part of the test suite, that is the PCO type LOWER_PCO, the PCO called L and the PDUs called SEND and RECEIVE:
- Since the contents of SEND and RECEIVE are identical, you can copy the text and rows from SEND and paste them in RECEIVE:
- Select text in the usual way with the mouse.
- Select an entire row in the body of a table by clicking the left most field.
- Text can only be pasted in text edit mode, that is, when a field contains a text pointer.
- A body row can only be pasted when a body row is selected or when a body field is highlighted.
This means that there are two paste buffers: one for plain text and one for body rows.
- When you add row 2 it is automatically indented, however, in this case it should not be. To decrease the indention, put the cursor in row 2 and then either:
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |