IBM
Contents Index Previous Next



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

To open the Data Dictionary:

  1. Select a body row in a behaviour table.
    • If you have not inserted a behaviour line yet, the input focus should be somewhere in the header of the table.
  2. Select Data Dictionary from the View menu.

It is only possible to have one Data Dictionary dialog opened.

The Data Dictionary dialog contains:

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.

Figure 219 : The Send/Receive tab in the Data Dictionary dialog

To add a send or receive statement:

  1. Select the Send/Receive tab.
  2. Select a PCO.
    The Type and Constraints list will be updated and only show the entries that are valid for the currently selected PCO.
  3. Select the ! radio button for a send statement or the ? radio button for a receive statement.
  4. Select an ASP or a PDU in the Types list.
    The PCO and Constraints lists will be updated accordingly.
  5. Select a constraint.
    The Type and Constraints list will be updated.
    • If the constraint is a parametric constraint, a choice for each parameter will be displayed in the Constraints Parameter area, which you can select.
  6. Optionally you can add a timer statement by selecting the Start or Cancel radio button.
    To insert a start statement, you also have to select a timer.
    It is not possible to select timeout or to specify a timeout value here. You have to do that in the Timer tab of the dialog.
  7. Optionally, add assignments separated by commas and without parenthesis.
  8. Optionally, add qualifier statements, without brackets.
  9. Optionally, add a verdict.
  10. Click Apply
    A new row - containing the contents of the Behaviour Line, Constraint and Verdict fields in the dialog - will be added after the currently selected row and the new row will be selected.

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.

Figure 220 : The Timer tab in the Data Dictionary dialog

To add a timer statement:

  1. Select the Timer tab in the dialog.
  2. Select a timer.
  3. Select the Start, Cancel or Timeout radio button.
  4. If you selected Start or Timeout, you also have to specify a timer duration in the Timeout field.
  5. Click Apply.
    A new row - containing the contents of the Behaviour Line, Constraint and Verdict fields in the dialog - will be added after the currently selected row and the new row will be selected.

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).

Figure 221 : The Attachment tab in the Data Dictionary dialog

To add an attachment statement:

  1. Select the Attachment tab.
  2. Select an attachment.
  3. If the selected test step has a formal parameter list, specify the parameter values in the Attachment Parameters area.

http://www.ibm.com/rational
Contents Index Previous Next