ios - Any techniques / tools for simulating server and/or network unresponsiveness and network timeouts etc.? -


i have network handling code in app (using nsurlconnection/nsurlrequest) , test how behaving when timeout connection expires before received response.

any there techniques/tools simulating on simulator , device?

(nsurlrequest apparently not allow short time out set, i.e. 1 second, have yet check if indeed case)

i recommend using charles proxy. application swiss-army knife tool set application uses http communication. can adjust throttling speed (potentially long enough trigger tour timeout) mapping remote hosts local server (and vice-versa). there ton of options , tools - , find useful.

http://www.charlesproxy.com/


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -