![]() |
![]() |
![]() |
![]() |
![]() |
Creating a Test Suite
What You Will Learn
- To specify the state space generators to use, in two different ways
- To generate the TTCN declarations
Creating a New Test Suite
Start by creating a new test suite:
- Add a new test suite, for example called inres, to the TTCN Test Specification chapter. In the Add New dialog, make sure that the option Show in editor is on.
The first step when you have created the new test suite, is to use TTCN Link to generate the declarations. Before you can do this, you have to tell the TTCN Suite what state space generator to use.
Specifying the Link Executable
Before you can generate the declarations, you have to tell the TTCN Suite which link executable to use. You can do this in two ways:
One way is to associate the test suite with the SDL system:
- In the Organizer, select the top icon in System inres.
- Select Associate from the Edit menu.
- Select the test suite that you have created.
- Click the OK button.
Another way is to explicitly specify the state space generator to use:
- In the TTCN Suite, select Select Link Executable from the SDT Link menu. (On UNIX, it is the menu in the Browser.)
- Select inres_stx.exe.
- Click OK.
In case a link executable has been selected both in the Organizer and in the TTCN Suite, the one selected in the TTCN Suite is the link executable that will be used.
Generating the TTCN Declarations
Since the SDL specification contains all information about the interfaces, this information is available to you when using TTCN Link. When you generate the TTCN declarations, the interface information is extracted from the SDL specification and included in the TTCN test suite as PCO, ASP and data type tables.
To generate the TTCN declarations:
- In the TTCN Suite, select Generate Declarations from the SDT Link menu. (On UNIX, it is the menu in the Browser.)
- Expand the declarations part of the test suite and have a look at the generated declarations.
- ASN.1 type definitions
- PCO type declarations
- PCO declarations
- ASN.1 ASP type definitions
- The PCO declarations, and the PCO type declarations, are generated from the channels to/from environment in the SDL system.
- The ASP definitions are generated from the SDL signals that can be transported on the channels to/from the environment.
- The ASN.1 type definitions are generated from the types of the parameters of the above mentioned signals.
- Generated declarations will be analyzed automatically.
- Expand the dynamic part of the test suite.
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |