IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Developing monitor models > Testing monitor models > Emitting test events

Recording and playing back events

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 your monitor model without having to rerun the application that it will be monitoring. You can also use recorded events with the monitor model debugger.

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:


Procedure

  1. Start the test server and the application to be monitored.

  2. 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 IBM Business Monitor Event Recording > Enable.) When you have all the events you want, right-click the test server and click IBM Business Monitor Event Recording > Disable.

    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.

  3. In the Integrated Test Client, click the Target Server tab and ensure that the same test server is selected.

  4. Click the Events tab and create a new test script by clicking Create new test script

    .

  5. 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.

  6. 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.

  7. 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 IBM Business Monitor Event Recording > Clear Recorded Events. (You can still use the existing files for any events that you previously extracted.)

For more information about using the Integrated Test Client, see Use the Integrated Test Client to send events.

Emitting test events