Analyzing the Test Suite
What You Will Learn
- To analyze a test suite
- To find errors
Analyzing the Test Suite
You are now going to analyze the test suite:
- Select Analyze from the Browser Tools menu.
- The Analyzer dialog is opened. You do not have to change the settings in this tutorial.
Figure 44 : The Analyzer dialog
|
- Click Analyze.
- The log window is opened. If you have edited the test suite as described above, the log should show a single error message:
Figure 45 : The TTCN Suite log 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.
Finding and Correcting the Error
To find the erroneous table:
- Select the test case name in the log.
Figure 46 : Selecting text in the TTCN Suite log
|
- Select Find Table from the Browser Tools menu.
- The table will be found and displayed. In the first behaviour line you can see that you have written SENT instead of SEND.
- Note that the error line is marked in red. In the Browser, the erroneous table is also marked with a red bar.
- Correct the error, i.e. change SENT to SEND.
- Analyze the table by selecting Analyze from the Table Editor Tools menu.
- You will now have a small test suite that is syntactically correct. This means that the red markings will disappear.
- You may now close the table editor and log windows.