![]() |
![]() |
![]() |
![]() |
![]() |
Creating Behaviour Lines
The Data Dictionary gives you an alternative way of writing behaviour lines, by providing easy access to lists of PCOs, types, constraints, timers, etc, that you have already defined
Before you can use the Data Dictionary, the TTCN document has to be analyzed, because PCOs, types and constraints with major reference problems or missing type references will not be presented in the lists in the dialog.
Opening the Data Dictionary
It is only possible to have one Data Dictionary dialog opened.
The Data Dictionary dialog contains:
- Three different tabs: Send/Receive, Timer and Attachment, from which you can select different statements to generate.
- Three fields: Behaviour Line, Constraint and Verdict, whose contents will be inserted as a TTCN line in the table. It is also possible to edit the fields manually.
- Three buttons: Apply, Clear and Close (the first two only enabled when a body row of a behaviour table is selected):
Generating a Send or Receive Statement
Generate a send or receive statement by selecting a PCO, a type and a constraint. You can also add a timer, assignment and qualifier.
To add a send or receive statement:
- Select the Send/Receive tab.
- Select a PCO.
- Select the ! radio button for a send statement or the ? radio button for a receive statement.
- Select an ASP or a PDU in the Types list.
- Select a constraint.
- Optionally you can add a timer statement by selecting the Start or Cancel radio button.
- Optionally, add assignments separated by commas and without parenthesis.
- Optionally, add qualifier statements, without brackets.
- Optionally, add a verdict.
- Click Apply
Adding a Timer Statement
In the Timer tab, you may generate a StartTimer, CancelTimer or a Timeout statement. As described above, you can also add timer statements from the Send/Receive tab. The difference is that from this tab you can also add Timeout value to the timer and you can add a timeout statement.
- Select the Timer tab in the dialog.
- Select a timer.
- Select the Start, Cancel or Timeout radio button.
- If you selected Start or Timeout, you also have to specify a timer duration in the Timeout field.
- Click Apply.
Adding an Attachment Statement
Generate an Attachment statement by selecting a test step and specifying an actual parameter list (if the test step has a formal parameter list).
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |