Testing how an application responds to different network responses and conditions can be a real pain.
Today I came across a library from Oliver Hannigan that makes this much easier. This library allows you to intercept http requests made by your app (whether you use NSURLConnection or some other networking framework) and provide a response of your choice.
You can also set a custom response time or download speed. There are constants set so you can easily simulate the download speed of a GPRS, EDGE, 3G, 3GPlus or WiFi connection.
You can find the library OHHTPStubs on Github here with extensive documentation and a demo project.
A fantastic library for faster testing of an app’s networking.
Original article: Library For Testing iOS App Networking With Custom Responses And Response Time
©2012 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.





