IBM
Contents Index Previous Next



Setting Up a Simulation


What You Will Learn

When you are finished with this section, the simulators should be ready to run a TTCN Suite test on a simulated SDL system.

Generating and Starting the SDL and TTCN Integrated Simulator

The first thing you should do is to generate and start the SDL and TTCN Integrated Simulator:

  1. Start TTCN Suite.
  2. In the Organizer, load the system ABP from the file abp.sdt.
    You can find this file in C:\IBM\Rational\SDL_TTCN_Suite6.3\examples\bitprotocol (where C:\IBM\Rational\SDL_TTCN_Suite6.3 is the default installation directory).
    You may also find it useful to copy the bitprotocol directory and the files included, to another directory. In any case, you have to make sure the bitprotocol directories and files are not read-only.
  3. Double-click the abp icon in the TTCN Test Specification chapter.
    This will start the TTCN Suite with the abp.mp test suite opened in the Browser.
  4. Select the node named abp in the Browser.
  5. Select Generate Code from the Build menu.
    The Analyzer/TTCN to C Compiler Settings dialog is opened:

Figure 59 : The TTCN to C compiler options

  1. In the TTCN to C Compiler Options, make sure that Integrated-simulator is selected and that Ignore bodies of test suite operations is checked.
  2. Select an output directory that has sufficient space and where you have write permission.
  3. In the Build Options, ensure that the Run Make option is selected.
  4. You may also have to change the Makefile Type.
  5. Click OK to start the generation and compilation of the SDL and TTCN Integrated Simulator executable.
    The TTCN Suite will now generate and build the SDL and TTCN Integrated Simulator executable. In the Log Manager window, you can see the what is happening.

  1. Click the Start Simulator button in the TTCN Suite tool bar.
    This is a toggle button, which means that if it is depressed, the simulator is in simulation mode. If the button is released, simulation is ended.
    The Simulator Toolbar is available whenever this button is depressed.
.

  1. Select abp.exe in the dialog.
    The TTCN Suite simulation executable has the same name as the test suite that you are simulating.
    This step will put the TTCN Suite in simulation mode, and it is now ready to simulate.

Generating and Starting the SDL Simulator

Now you have to set up the SDL simulator as well.

  1. In the Organizer, select the system diagram ABP from the SDL System Structure chapter.
  2. Click the Simulate button in the tool bar.
    • You may also want to check the settings in the Make dialog (opened from the Generate menu) before you generate and compile the simulator. If you select Make or Full Make in that dialog, you will have to open the Simulator UI and load the simulator after that.
      The SDL simulator generates and builds a simulator executable. The simulator window is displayed with the simulator started. You are now ready to simulate.

Getting the Simulators to Communicate

The next step you should perform is to initialize the communication between the simulators:


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