Network Connection

This feature is currently in Beta for Android Only.

Moropo lets you mimic offline mode in your app. Use this feature to build tests that assert your app behaves correctly when the network drops.

Use the Network Connection runScript step

Trigger using the runScript command.

To disable the network, set enabled to false. To re-enable network, set enabled to true.

Copy this snippet into your test to try it now:

- runScript:
    file: './moropo.js'
    env:
      command: 'networkConnection'
      enabled: 'false'
- takeScreenshot: 'Network off'

Which platforms are supported?

Currently, only Android. If you need this feature on iOS, please email support@moropo.com

Last updated