![]() |
![]() |
![]() |
![]() |
![]() |
Performing the Simulation
What You Will Learn
- To single step a test case
- To run a test case at full speed
- To run a test batch
- To set and delete breakpoints
- To abort a simulation
Single Stepping Test Cases
- In the SDL and TTCN Integrated Simulator window, select the test case TC_01 and then click the right arrow that appears.
- A Table Editor is opened. In the first line of TTCN code, there is a colored bar.
This bar indicates which line will be executed the next time you click the Step Simulation button.
- Enter the command go-forever in the SDL simulator window.
- Click the Step Simulation button repeatedly until you reach the end of the test case.
Running Test Cases at Full Speed
- In the SDL and TTCN Integrated Simulator window, make sure that the test case TC_01 is still in the Selected box. If it is not, select the test case again and click the right arrow.
At this point the SDL simulator is running at full speed. This is normal and you can safely ignore the SDL simulator. The cause of this is a timer in the simulated SDL system that fires repeatedly while waiting for input from the SDL and TTCN Integrated Simulator.
Running Test Batches
It is also possible to execute more than one test case or test group.
- In the SDL and TTCN Integrated Simulator window, deselect the test case TC_01 in the Available box. You do this by clicking on the test case.
- Select the test case TC_02 and click the right arrow. The test case is added to the Selected box after TC_01.
- Press the Run Simulation button.
This requires an SDL Suite system that always ends in a state from where you can execute a new test case. The SDL Suite system may not require any manual resetting between test cases.
Toggling Breakpoints
- Make sure that the SDL and TTCN Integrated Simulator window is active and press <Ctrl+B>.
- Select Add from the Edit menu.
- Click in the edit field at the bottom of the Breakpoints window and type in TC_01 3 followed by <Return>.
- Select Save from the File menu.
- Type in a filename with the extension .ttb and select OK.
- In the simulator window, make sure that only the test case TC_01 is selected.
- Press the Run Simulation button.
- Select the breakpoint line we just added in the Breakpoints window.
- Select Delete from the Edit menu.
- Select Save from the File menu.
- Select Close from the File menu.
- Click the Run Simulation button.
Ending a Simulation
It is possible to end a simulation in the middle of an execution
- In the SDL simulator window, select Restart in the File menu.
- This restarts the SDL simulator. This step is necessary because otherwise the SDL Simulator and the SDL and TTCN Integrated Simulator would be out of sync.
- To continue co-simulation, you will need to enter the command start-itex in the SDL simulator, start running the test in the SDL and TTCN Integrated Simulator, and then enter the command go-forever in the SDL simulator.
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |