![]() |
![]() |
![]() |
![]() |
![]() |
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 menu
- To delete a table
Copying and Pasting
You shall now practice another way of creating a TTCN table, namely by copying and pasting it.
- Find the PDU called SEND in the Browser.
- Copy the SEND PDU by using the popup menu.
- Find the PDU Constraint called S1.
- Open the pop-up menu on S1 and select Paste Before from it.
Editing the New Table
- Open the new SEND table.
- Type a new name in the Constraint Name field, e.g. S2.
- Give Field_A the value 3 and Field_B the value TRUE in the Field Value column.
- Analyze the entire test suite as described in Analyzing the Test Suite.
Using the Data Dictionary
This section contains an example of an efficient way of creating test cases. Start by creating a new test case:
- Create a new test case.
- Name the test case, for example TEST_CASE_2.
- Open the test case.
- Select Add Send Statement from the Table Editor Data Dictionary menu. The Add Send dialog is opened.
- Click on S2 in the Constraints list.
- Click OK.
- Select the generated line in the Table Editor by clicking in the Nr column.
- Select Add Attach Statement from the Table Editor Data Dictionary menu. The Add Attach dialog is opened.
- There is only one test step available (i.e. TEST_STEP_1) so this will be automatically selected.
Deleting the Tables
For the remainder of the tutorial you will not need the two tables that you have just created. You should therefore delete them.
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |