MOBILE Performance Testing
This is another interesting twitch that is available in Jmeter which can be used for Load Testing when we are trying to simulate mobile device.
This acts as one of the few steps towards our Goal of Mobile Performance Testing. Please find the details mentioned below,
Prerequisites :
Have Jmeter installed in your PC (Jmeter 3 and above)
Have the Updated Java running (Preferably 1.8)
Steps :
Add the following mentioned below
#httpclient.socket.http.cps=0
#httpclient.socket.https.cps=0
These parameter should be defined in the “user.properties”. (From Jmeter 3 and above these parameters come as default in the user.properties but it is commented.
Restart Jmeter (this will reload the Jmeter user.properties file with the new changes)
Decryption of CPS :
It stands for character per second
The values for the cps should be in accordance with the bandwidth we are trying to aim for,
Now, if we donot need to calculate the cps , if we want to simulate a load on our choice
cps = (target bandwidth in kbps * 1024) / 8
NOTE : We can also send the values in command line (Parameter values à -Jhttpclient.socket.https.cps & Jhttpclient.socket.http.cps)