![]() |
![]() |
![]() |
![]() |
![]() |
Creating TTCN Tables in Other Ways
The methods described below make it faster and more efficient to create TTCN tables. They also avoid annoying spelling errors and reduces the amount of text that needs to be typed.
What You Will Learn
- To create a table by copying and pasting.
- To create a table by using the Data Dictionary.
- To delete a table.
Copying and Pasting
You are now going to practice another way of creating a TTCN table, namely by copying and pasting it.
Editing the New Table
- Open the new SEND table.
- Type a new name in the Constraint Name field: S2.
- Give Field_1 the value 3 and Field_2 the value TRUE in the Field Value column.
- Analyze the entire test suite as described in Analyzing the Test Suite.
Using the Data Dictionary
You can use the Data Dictionary to interactively build behaviour lines in behaviour tables. In the Data Dictionary dialog, you can compose sends, receives, timeouts and attachments, and at the same time see how it turns out in the dialog.
In this simple example, you will use the Data Dictionary to create a new test case with the same contents as TEST_CASE_1, and as a comparison you may have that table opened too:
- Create a new test case and open it.
- Name the test case TEST_CASE_2.
- Open the Data Dictionary from the View menu.
- In the Send/Receive tab in the dialog, make the following settings:
- Click Apply.
- In the Attachment tab, select TEST_STEP_1.
- Click the Apply button.
- Close the Data Dictionary dialog.
Deleting the Tables
You will not need the newly created tables in the rest of this tutorial. You should therefore delete them:
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |