IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Testing modules

Component testing

The test suite editor and associated wizards allow you to create and define test cases that consist of one or more operations. This enables you to sequentially test multiple operations as a group in the integration test client. You can also perform batch component testing on either a test environment server or a stand-alone server by using test scripts or the user interface of the web-based Component Test Explorer.

The test suite editor is fully integrated into the workbench, which enables you to navigate through the Business Integration view and other views while using the editor. It is also closely integrated with the assembly editor and you can open the assembly editor from the test suite editor. The primary launch point for the test suite editor is the Business Integration view. You can open multiple instances of the test suite editor and use them to define your test suites and test cases.

Before you work with the test suite editor and perform component testing, you should have experience with unit testing and the integration test client. The component testing documentation largely extends the unit testing documentation, so you should familiarize yourself with the topics on unit testing.

To successfully work with the test suite editor, it is important to understand the following component-testing concepts:

These concepts are discussed in the following sections.


Component test projects

A component test project is a container for test suites. Generally, the first step in performing component testing is to create a component test project.

In version 7.0 and later, component test projects are created as SCA modules. You can import your 6.2x component test projects into IBM Integration Designer version 7.x, the component test projects are automatically migrated to version 7.x specifications and you can test them like a version 7.x component test project. If you used WebSphere Integration Developer version 6.2x to generate an EAR file from component test projects and other artifacts, you can deploy and run the EAR file on IBM Integration Designer version 7.x without performing any manual migration tasks.


Test suites

A test suite is a collection of one or more test cases. When you create a test suite, you can choose from one of the following test patterns:

In operation-level testing, a separate test case is created for each operation that you select for component testing. In scenario-based testing, a single test case is created for all of the operations that you select for component testing.


Test cases

You can think of a test case as being a container for multiple operations that you have selected for testing. Test cases enable you to automate and simultaneously test the operations in the integration test client. Test data for test cases is defined in the test data table, which contains a set of named variables that can be used for either input or output in the test case invocations.


Test variations

A test variation is a specific set of variable values for a test case. Although each test case is automatically assigned a default test variation, you can create multiple test variations for a test case that each contain a different set of variable values. When a test case is run, all of the test variations for the test case are run unless one of the test variations fails.


Test bucket configurations

A test bucket configuration is a set of specific test suites and test cases that are run together in the same test session.


Events

In addition to the standard events that are generated in the integration test client when you are unit testing, such as the Invoke and Return events, component testing adds the following events in the integration test client:

Event type Description
Run Test An informational event that is generated when you select Run Test menu item from either the integration test client or the Business Integration view. The event informs you whether the component test passed or failed. It also presents statistics on the total number of test cases that were run and the number that passed, failed, or were flagged with an error.
Test Suite An informational event that informs you whether the test suite has passed or failed the test run. It also presents statistics on the total number of test cases that were run and the number that passed, failed, or were flagged with an error.
Test Case An informational event that informs you whether the test case has passed or failed the test run.
Test Variation An informational event that informs you whether the test variation has passed or failed the test run.

Testing modules