The Integrated Test Client is installed
as part of the Business Monitor development toolkit installation
and is integrated into Integration
Designer. You can
use this tool to emit sample events for the Business Monitor test environment
server and to quickly and conveniently test monitor models that use
the Common Event Infrastructure (CEI).
Before you begin
Restriction: In IBM® Business Monitor V8.5.5,
only CEI-based monitor models are supported for use with the Integrated
Test Client.
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.
About this task
To create a test script and emit events to your monitor model,
complete the following steps:
Procedure
- 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.
- 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. Note: When you click
Create new test script 
, any commands currently in the test script
are cleared.
- To create new events in the Integrated
Test Client, see Creating sample events for testing.
- 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.
- To add other commands to the test
script, see Creating or modifying the test script.
- 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.