Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

How to simulate network bandwidth in JMeter?

Category: JMeter

In Apache JMeter, we can simulate network bandwidth very easily.

Following are the steps to simulate network bandwidth:

Open ‘jmeter.properties’ file in notepad (location: apache-jmeter/bin)

Search ‘cps’ (characters per second) you will find
Define characters per second > 0 to emulate slow connections
#httpclient.socket.http.cps=0
#httpclient.socket.https.cps=0

Change cps value as per your need
cps = rb*128 (rb= Required Bandwidth)

cps = (target bandwidth in kbps * 1024) / 8

Bandwidthcps Value
GPRS21888
3G2688000
4G19200000
WIFI 802.11a/g6912000
ADSL1024000
100 Mb LAN12800000
Gigabit Lan128000000

Leave a Reply

Your email address will not be published. Required fields are marked *