![]() |
![]() |
![]() |
![]() |
![]() |
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
- This is the test case that you are going to execute.
- 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.
When you have reached the end of the test case, the bar that indicates the current line will change color. The color indicates the result of the execution of the test case. The colors are as follows:
At this point the SDL Simulator is running at full speed. This is normal and you can safely ignore it. The cause of this is a timer in the simulated system that fires repeatedly while waiting for input from the SDL and TTCN Integrated Simulator.
Running Test Cases at Full Speed
Running Test Batches
It is also possible to execute more than one test case or test group.
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
- Select test case TC_01 in the Browser.
- Press the Run Simulation button.
- Set the cursor on line 3 in the test case TC_01.
- Press the Toggle Breakpoint button.
- Press the Run Simulation button.
Ending a Simulation
It is possible to end a simulation in the middle of an execution:
- Select test case TC_01 in the browser.
- Click the Step Simulation button twice.
- Click the Abort Simulation button.
- 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 |
![]() |
![]() |
![]() |
![]() |