You can record events that are being sent to the server,
capture them, and then play them back at a later time. In the Business Monitor test environment,
you can turn on event recording for a particular server. You can later
play back the recorded events from the Integrated Test Client so that
you can iteratively test monitor models that use the Common Event
Infrastructure (CEI) without having to rerun the application that
it will be monitoring. You can also use recorded events with the monitor
model debugger.
About this task
Restriction: In IBM® Business Monitor V8.5.5,
only CEI-based monitor models are supported for use with the Integrated
Test Client.
For more control over recording and playing back
events, including filtering and managing the events, use Recorded
Event Management in the WebSphere® Application
Server administrative
console.
To record and play back events in the test environment,
complete the following steps:
Procedure
- Start the test server and the application to be monitored.
- The events that are sent to Business Monitor are already
being recorded. (If you previously turned off event recording and
want to turn it on again, right-click the test server and select .)
When you have all the events you want, right-click the test server
and click .
Note: When you first start Integration
Designer or Rational® Application
Developer, all the
menu items for IBM Business
Monitor Event
Recording are shown as available, whether or not events
are being recorded. If you click Enable (or Disable if
you previously turned off event recording), you see a message that
this action is not enabled. After that, the action you chose is correctly
displayed as unavailable in the menu.
- In the Integrated Test Client, click the Target
Server tab and ensure that the same test server is selected.
- Click the Events tab and create
a new test script by clicking Create new test script
.
- In the test script, click Import Events
, and select IBM Business
Monitor recorded
events. Click Browse and navigate
to the directory where you want to save the file of recorded events.
Enter a name for the file.
- Click Finish. The recorded events
are extracted into the file, and an import command that imports the
file that you specified is added to the test script.
- To run the current test script and send the events, click Run
Script
.
What to do next
When you are finished testing with those events and want
to record a new set of events, select . (You can still use the existing files for any events
that you previously extracted.)