1. Install Jmeter *sudo apt-get install jmeter* 2. Replace the '*/usr/share/jmeter/lib/*' directory with the 'lib' directory which could be downloaded from below link. (This file contains all the necessary library files needed to run test scripts) https://drive.google.com/file/d/0B1raQ3vGHU8uMjlhZU1EVzR0VGc/view?usp=sharing
3. Download and extract the scripts file https://drive.google.com/file/d/0B1raQ3vGHU8uaXhULTZzQUQwamc/view?usp=sharing The above '*EMM200LoadTests.zip*' file contains a total of 5 files. - *emm_devices.csv *- Contains information about 500000 unique devices - *EnrollDevices.jmx* - Enrolls Devices - *AddOperations.jmx* - Adds Operations to enrolled devices (2 operations per each device) - *GetPendingOperations.jmx* - Hits the '/mdm-android-agent/operation' endpoint which is the most heavily used API of the EMM - *MDM2LoadTesting.jmx* - This script contains a sample Jmeter test plan which has several additional useful test ThreadGroups which can be used to simulate scenarios such as Operation Execution, Policy Creation and Policy Monitoring *[Important]* Make sure the 'emm_devices.csv' file and the script files are in the same folder. 4. Specify these parameters when running test scripts *JHOST* --> Server Host *JPORT* --> Server Port *JUSERS* --> Number of Users (Concurrency) *JLOOPCOUNT* --> Number of Iterations per User Device Enrollment jmeter -n -JHOST=<specify_host> -JPORT=<specify_port> -JUSERS=<specify_users> -JLOOPCOUNT=<specify_loops> -t EnrollDevices.jmx -l errors.log - To enroll a '*n*' number of devices set the parameters as follows, *(-JUSERS)*(-JLOOPCOUNT) = n* Add Operations jmeter -n -JHOST=<specify_host> -JPORT=<specify_port> -JUSERS=<specify_users> -JLOOPCOUNT=<specify_loops> -t AddOperations.jmx -l errors.log Get Pending Operations jmeter -n -JHOST=<specify_host> -JPORT=<specify_port> -JUSERS=<specify_users> -JLOOPCOUNT=<specify_loops> -t GetPendingOperations.jmx -l errors.log -- Dileesha Rajapakse *Intern - Engineering* Mobile : +94 (0) 772 555 933 Tel : +94 112 741 505 [email protected]
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
