Alex
Alex

Reputation: 3971

Test Simulate Turn Off Network iPad Testers iOS

I have an app that needs to be tested for certain rare conditions involving the network dying at precise times, which occasionally happens in actual use, but is difficult to test for. As a developer, I simulate this by putting in break points disabling my internet, then continuing on with the test and this works OK.

Is there a solution available for iPad testers? I would love testers who download the app to be able to test these conditions. Does anyone have any experience with this that could shed some light on the best way to set it up?

I'm thinking I could have code at the spots of interest for that build and then add a field to settings like 'delay fetches' testers could turn on before running the app. This would give them enough time to go to settings and turn off their internet then return to the app.

Upvotes: 1

Views: 3347

Answers (1)

Artem Novichkov
Artem Novichkov

Reputation: 2341

iPad and iPhone users can use Network Link Conditioner to simulate different network states, for example, with high latency DNS or 3G/Edge speed. It located in Settings->Developer->Network Link Conditioner.

Upvotes: 1

Related Questions