In today world performance is the key to increase users and users using smartphones,tablet and other portable gadgets and they has different type of internet connection that come with various network bandwidth like 2G,3G, 4G, WIFI etc. we have to ensure performance on smartphone,tablet etc devices other wise user will not use your app or your services.
see below steps to test performance on smartphones,tablet etc.
1. Add below two lines to your user.properties file (you’ll find this file in bin folder of your JMeter installation)
You’ll need to restart JMeter to pick these properties up
2. Second technique, you can pass the properties values via the -J command line argument.
jmeter -Jhttpclient.socket.http.cps=21888 -Jhttpclient.socket.https.cps=21888 -t /path/testsampleplan.jmx
cps values are calculated with this formula :
cps = (target bandwidth in kbps * 1024) / 8
Network Bandwidth examples:
Note:- Need to use HttpClient 3.1 or HttpClient 4 implementations in jmeter.