![]() |
![]() |
![]() |
![]() |
![]() |
Using the Table Editor
What You Will Learn
Opening the Table Editor
The Table Editor window is opened when you double-click on a table in the Browser window.
Editing the Test Case Table
As you can see, the TEST_CASE_1 table, or any other table, consists of fields where text may be inserted and edited. You are now going to edit the contents of TEST_CASE_1:
- Click in the Purpose field and type some text, for example:
This is an example test case for the TTCN tutorial.- Type some text in the Description field, e.g. Example test case.
- Press <Ins> or <Insert>.
- 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.
Copying and Pasting Text and Table Rows
Before you close the editor you may want to try to copy and paste text and rows in the table:
- If you only want to copy text, you simply select and copy it, either by a menu choice or shortcut. To paste the text, you can either use a menu choice or shortcut.
- If you want to copy an entire row in the body of a table, you select it by pressing <Ctrl> while at the same clicking in the row. (A row in a dynamic behaviour table is selected if you click in the Nr column). When the row has been selected you can press <Ctrl+c> to copy it. You paste it with <Ctrl+Meta+v> (to paste after selected row) or <Ctrl+Shift+v> (to paste last in the body of the table).
· <Ctrl+Right arrow> (moves the input focus right)
· <Ctrl+Left arrow> (moves the input focus left)
There are two paste buffers: one for plain text and one for table rows.
When you have finished copying and pasting, make sure that the contents of the table are exactly as in Figure 36.
Closing the Table Editor
Completing the Test Suite
Now you should edit the other tables that you have already added to the test suite. Do this in a similar manner as described above, by using 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:
- Edit the tables in the Constraints Part of the test suite, that is the PDU constraints called S1 and R1:
- Edit the test step called TEST_STEP_1 in the Dynamic Part of the test suite:
- Close all Table Editors when you have finished editing.
- Save the test suite by selecting Save in the File menu. A Save As dialog is displayed.
- Click OK.
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |