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/.
Load Testing your App Factory Setup
The WSO2 App Factory team provides a set of pre-written JMeter load testing scripts to test the load of your App Factory instance. Follow the steps below to execute:
Download the Jmeter scripts from https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/appfactory/2.0.0/jmeter-tests/module-based-script.
Install and set up Apache Jmeter in your environment.
Open the JMeter console. Its left navigation panel has two sections as
Test PlanandWorkbench.Select the
Test Planand load the Jmeter script test_plan.jmx by clicking File -> Open. It opens the relevant scripts in the JMeter console:Select
WorkBenchand merge workbench.jmx by selecting File-> Merge.Go to the
sample_datadirectory, which is inside the folder you checked out in step 1 and run the following scripts using the command prompt to generate sample applications and users. You can change the number of apps/users as you like../generate_apps.sh 5 war ./generate_users.sh 50 developer ./generate_users.sh 20 devops ./generate_users.sh 20 qa ./generate_users.sh 1 appownerGo to the JMeter console and click on
Test Plan. Update the following properties under User Defined Variables to point to your App Factory instance.working_dir: Provide the Jmeter script location. E.g.,
appfactory/2.0.0/jmeter-tests/module-based-scriptorganization: Change the domainusername, password, tenant_admin and tenant_admin_password: Change these to the tenant admin credentialsdeveloper_count,qa_count, devOps_count, global_ramp_up_time,appOwner_countetc. depending on your user count given in step 6.
Run the Jmeter script.