The
Debug perspective offers an array of tools to test code, including pattern code. You
can set up a custom debug configuration and reuse it to perform your
testing. Refer to the online help to learn more about the debugging
tools.
Before you begin
Ensure that your code is compiled
before you test. The default build setting is Build Automatically.
To compile your code if you have changed the default setting, click . Save the workspace.
About this task
You can launch a runtime instance of your developer workbench
to test the pattern. The pattern is tested by applying it. The developer
and runtime instances are interactive. Any breakpoints or trace messages
that you included in the pattern code are reported to the developer
workbench.
Note: You cannot make changes to the pattern code while
the runtime session is running.
To launch the runtime
workbench:
Procedure
- Click to open the Select Perspective window.
- Click Debug and click OK. The Debug perspective opens.
- Click . The Debug
window opens.
- Type a configuration name in the Name field and select the Clear workspace data before launching check box to ensure that the latest changes to your pattern are
used.
- Click Debug to launch a new instance
of the workbench.
Note: After you set up a debug configuration,
you can start a debug session by clicking the debug bug icon

.
The Rational® Software Delivery Platform splash screen appears while
the run time instance is loading.
- In the runtime instance, do the following steps:
- Add a UML project and model.
- Add elements to the model that represent the design
conditions that you want your pattern to modify.
- Locate your pattern in the Pattern Explorer view.
Results
You are ready to start testing your pattern.
You can test
your pattern by performing each type of possible expansion to ensure
that the pattern achieves the anticipated results.