This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Building from Source
WSO2 Test Framework is located at the platform directory under platform-integration directory as a maven module.
The test-automation-framework module can be found inside the directory. It contains four major modules which are used for the integration test implementation.
- org.wso2.carbon.automation.api - Provides the Admin Service client class implementation.
- org.wso2.carbon.automation.engine - Provides the core functionality of the test framework.
- org.wso2.carbon.automation.tools.jmeter - Provides the jmeter test executor.
- org.wso2.carbon.automation.utils - Provides various utilities for the test classes.
Test Framework heavily depends on the carbon kernel and service stubs, although a few other components are needed as well. So in order to build the framework, you should build the required dependency first.
- Build the Carbon kernel (including the patches).
- Go to Platformand build the modules listed below accordingly:
- parent
- dependencies
- service-stubs
- components
- Build the test framework.
After building the test framework, you can directly use test-framework in your test modules as a dependency and implement WSO2 product integration tests.
In WSO2 product integration, test case are implemented at the integration directory in the product level. See example:Â https://svn.wso2.org/repos/wso2/carbon/platform/trunk/products/esb/modules/integration/
In the Integration module, we can add tests modules with the test framework dependency. For more information see Lightweight Test Module.
To run the test cases you need to build the product as well.