WSO2 API Cloud gives you automated scaling and call limit enforcement. Today we will describe how you can use Apache JMeter to load-test your APIs in WSO2 API Cloud and see these limits enforced. 1. Start by publishing your API and subscribing to it as explained in API Cloud tutorials. 2. Download Apache JMeter here, extract the files, navigate to
/apache-jmeter-2.11/binfolder, and start it by running:
sh jmeter.shon Linux or Mac,
gateway.api.cloud.wso2.com. Path is the rest of the URL. For example, in my case this is
/t/wso2new/wb/1.0.0/countries/us. Put your parameters in the corresponding fields of JMeter: your API Cloud subscription level will lead to "Your request was blocked due to exceeding the allocated quota. Please contact the API Store owner to resolve this.":
sh jmeter.sh -n -t TestPlan.jmx -l Test1.jtlwhere
-tspecifies the saved Test Plan file and
-lspecifies the output file for the responses, or the corresponding .bat command on Windows. That is it! Try it today in WSO2 API Cloud!