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.
Comments
Post a Comment