WSO2 ESB - Design for testability
- Sending to an endpoint
Design for testability
- Configure separate
testable parts within a separate sequence
A good guideline in splitting is that the parts should be as independant as possible from other parts. Good examples are: input validation, data transformation, sending a message to an endpoint, a step within an iteration.
- Define a separate
developer studio project for the test
This will be the proxies that will contain a testable sequence and can be called from soapUI for example. This way also the test package can be deployed separately. This way the test project is not deployed on production.
- Define a soapUI project
for testing the component
It is wise to define a separate soapUI project for each component (WSO2 proxy) you want to test. Note that this can also be used within a Continuous Integration environment for automatic testing.
Step 2 – Define separate ESB project with test proxy
This result can be checked within soapUI using Asserts later on.
Feel free to comment on this blog ! All feedback is welcome