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.

  1. org.wso2.carbon.automation.api - Provides the Admin Service client class implementation.
  2. org.wso2.carbon.automation.engine - Provides the core functionality of the test framework.
  3. org.wso2.carbon.automation.tools.jmeter - Provides the jmeter test executor.
  4. 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.

  1. Build the Carbon kernel (including the patches).
  2. Go to Platformand build the modules listed below accordingly:
    1. parent
    2. dependencies
    3. service-stubs
    4. components
  3. 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.