2-8 Infrastructure Components and Utilities Users Guide
2.4 Does the Scenario Need to be Unit or Flow Tested?
This section discusses different configurations for test and simulator definitions to achieve unit and flow tests.
This section includes the following topics:
■
Section 2.4.1, Describing a Unit Test Configuration
■
Section 2.4.2, Describing a Flow Test Configuration
■
Section 2.4.3, Describing a Complex Flow Test Configuration
2.4.1 Describing a Unit Test Configuration
This section will use a synchronous provider ABCS as the focus of the test example. However, this test configuration is not specific to message exchange patterns, so it can
be applied to asynchronous notify and asynchronous two-way components as well.
To unit test a component, place a test definition before the component and a simulator definition after it. This isolates the focus of the test to the single component.
Figure 2–10 illustrates how to unit test a provider ABCS.
Figure 2–10 Unit Testing a Provider ABCS
2.4.2 Describing a Flow Test Configuration
This section will use a synchronous provider ABCS as the focus of the test example. However, this test configuration is not specific to message exchange patterns, so it can
be applied to asynchronous notify and asynchronous two-way components as well.
Once you have unit tested the components in a scenario, you can flow test the scenario. To flow test a scenario, place a test definition before the requester ABCS at
the front of the scenario and a simulator definition after the provider ABCS at the end of the scenario, as shown in
Figure 2–11 .
Preparing to Use the Composite Application Validation System 2-9
Figure 2–11 Flow Testing a Scenario
2.4.3 Describing a Complex Flow Test Configuration
This section uses an EBF as the focus of the test example. However, this test configuration is not specific to EBFs, so it can be applied to any service that conducts
chatty conversations.
You can place a test definition before the requester ABCS at the front of a scenario and enable the EBF to make calls out to simulator definitions whenever required. You can
then go on to replace some of the provider applications with simulators at the end of the scenario, as shown in
Figure 2–12 .
Figure 2–12 Complex Flow Testing an EBF
2.5 Do I Have the Content I Need to Create the Definitions?