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

Use the Integrated Test Client to send events

The Integrated Test Client is installed as part of the Business Monitor development toolkit installation and is integrated into Rational Application Developer or Integration Designer. You can use this tool to emit sample events for the Monitor test environment server and to quickly and conveniently test a monitor model.

The Integrated Test Client panel has two sections, the Add Values to Events section and the Create Test Script section. In the Add Values to Events section, you can select, modify, and add events from the monitor model to the test script. (A script is a series of commands that perform a particular function and are interpreted as they are run.) In the Create Test Script section, you can add and edit commands, rearrange events and commands, and import events into the test script.

You can either create a test script or use an existing script to send sample events to your monitor model. You can create and emit sample events for inbound events only. The Integrated Test Client can handle events from Business Monitor version 6.0.2 or later.

You can open an Integrated Test Client instance for each monitor model you have in your project.

To create a test script and emit events to your monitor model:


Procedure

  1. To start the Integrated Test Client, right-click a monitor model in the Project Explorer view and click Launch Integrated Test Client.

    The Monitor model field in the Add Values to Events section indicates the name of the monitor model that this Integrated Test Client instance is testing.

    The Integrated Test Client automatically retrieves all monitoring contexts defined in this monitor model and lists them in the Monitoring context field. It also retrieves all of the inbound events that are defined in the selected monitoring context and lists them in the Event definition field.

  2. Either create a test script by clicking Create new test script

    or open an existing script by clicking Open existing test script

    in the Create Test Script section.

    When you click Create new test script

    , any commands currently in the test script are cleared.

  3. To create new events in the Integrated Test Client, see Create sample events for testing.

  4. To import events when the script runs, either from an existing file or from the Common Event Infrastructure database, or from previously recorded events, see Importing events for testing.

  5. To add other commands to the test script, see Create or modifying the test script.

  6. Run the test script, using the following buttons:

    • To start the interpreter and run the current test script, click Run Script

      . You can also use this button to resume running the interpreter after a Pause command is encountered.

    • To change the current execution step, highlight the command in the list to be run next. To return to the beginning of the script, click the first item in the list. If you change the selected command while the script is running, it changes the next command that is run.

Emitting test events