IBM
Contents Index Previous Next



Analyzing the Test Suite


What You Will Learn

Analyzing the Test Suite

You are now going to analyze the test suite:

  1. Select Analyze Suite from the Build menu.
    • You can also select the top node in the Browser and then select Analyze. Analyze only works on selected parts of a test suite (including sub-trees) so in this case it will have the same effect as Analyze Suite.)
      The Analyzer/TTCN to C Compiler Settings dialog is opened. You do not have to change the settings in this tutorial.

Figure 25 : The Analyzer/TTCN to C Compiler Settings dialog

Note that if you analyze the test suite again by using a quick-button or a shortcut, the same options will be used but the dialog will not be displayed.
  1. Click OK.
    If you have edited the test suite as described, the TTCN Suite Log Manager is opened with a textual log that should show a single error message:

Figure 26 : The TTCN Suite Log Manager window showing one error

The log text means that there is an error in line 1 of the behaviour description of the test case dynamic behaviour table called TEST_CASE_1.
Also note that the parent nodes to the erroneous table are marked with a red arrow and the table is marked with a red cross in the Browser.

Finding and Correcting the Error

To find the erroneous table, you use the popup menu:

  1. In the Log Manager, click the table identifier, that is, the name of the table: TEST_CASE_1.
  2. <Ctrl>-right-click the name of the table again.
    A popup menu is opened.
  3. Select the top command in the popup menu: Test Case Name: TEST_CASE_1.

Figure 27 : Finding a table by using the popup menu in the Log Manager

The Table Editor window is opened, displaying the TEST_CASE_1 table. Note that the error is marked in red, in this case L! SENT in the Behaviour Description column.

You should now correct the error and analyze again:

  1. Correct the error, i.e. change SENT to SEND.
  2. Analyze the test suite again. You can do this while having the Table Editor window still opened since the Analyzer works on any level of the test suite.
    You will now have a small test suite that is syntactically correct. This means that the red markings will disappear.

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