I would like to test the behavior of my app in case of slow network. Can Charles Proxy do it? please give me some guidance. Many thanks.
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
First of all, you need to know how to connect your mobile phone with Charles proxy.
Here are the quick and easy steps to set this up (I am using iPhone, but you can also connect android devices using step in this post: http://jaanus.com/blog/2012/02/12/debugging-http-on-an-android-phone-or-tablet-with-charles-proxy-for-fun-and-profit/):
Now you can test your application and see what network calls your app is making, and what responses it is getting back to help you troubleshoot all of those hard-to-resolve network related bugs.
Testing Your App In Various Network Conditions
Set up your proxy as described in the section above.
Charles proxy can do it, there are a number of other software and hardware solutions that give you control over network bandwidth and other network behavior such as packet loss, latency, etc. You can search for "WAN Simulator" to find some of them. If all you're doing is simulating a low bandwidth connection, like a 56k modem or something then Charles Proxy is probably fine for your needs. If you want to simulate traffic to your site hosted in the US from someone in China, then I would suggest going with one of the more full featured software or hardware solutions that gives you more control.
I believe that you can do even more with Apache JMeter.
If you don't need any load testing and just want to check application's behavior for slow network you can use Apache mod_qos for throttling.