IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Developing monitor models
Testing monitor models in the test environment
After you create a monitor model, you must test it on a running monitor model in the Business Monitor test environment. In the test environment, results of the tests are displayed in a Monitor dashboard space, where you can quickly verify that the metrics are being collected correctly and that your calculations are correct.
Before testing your monitor model, determine your test scenarios, the set of events to emit, and the expected results. Then complete each of the following steps.
- Setting preferences for generating Monitor Java EE projects
In the Business Monitoring preferences window, you can set a preference that enables you to specify the templates that you want to use to automatically populate the text fields in the Generate Monitor Java EE Projects window with default project names.- Generate Monitor Java EE projects
Before you can publish your monitor model to the Business Monitor test environment, first generate Java™ 5 Platform, Enterprise Edition (Java EE) projects from the model.- Starting the Monitor test environment server
After you generate the projects from the monitor model, you must start a Monitor test environment server so that you can publish and test the monitor model.- Adding projects to the Monitor test environment server
After generating Java EE projects from the monitor model and starting the Monitor test environment server, you must add your monitor model project to the server before testing.- Emitting test events
After your Java 5 Platform, Enterprise Edition (Java EE) projects and your test environment server are ready, the next step in testing monitor models is to send events to test the monitor model.You can use numerous tools, such as the Integrated Test Client that is provided as part of the Business Monitor development toolkit.
- Verifying the test results
You can examine the results either in the Monitor dashboard space or in the database to verify the correctness of your monitor model logic and that you are capturing the information that you want in the best format. Using the dashboard space for this purpose is typically the easier method.
- Optional: Resetting the Monitor test environment
Test environment server profiles are created when the Monitor test environment is installed with Integration Designer or Rational Application Developer. In the Servers view, you can create or reset a default server profile for Business Monitor on either Process Server or WebSphere Enterprise Service Bus.For example, you might now want to create a default server profile that you did not create when installed the Monitor test environment. Or, you might need to reset an existing default server profile that is no longer functioning correctly.
- Optional: Remove the monitor model
After you have completed testing, you can remove a monitor model from the test server.