androidAndroid native automation testing

circle-info

Appfigurate doesn't currently support automation testing Flutter or React Native apps.

Appfigurate can change the configuration of an Android app being automation tested using using Espresso.

An example UI automation test using Espresso is available in AppfigurateExample. To test, ensure MainActivityTest is selected as the Run Configuration, then tap the run button.

Ensure allowInvalidSignatures returns true

In your nz.co.electricbolt.appfiguratelibrary.Configurationarrow-up-right subclass, ensure that your allowInvalidSignaturesarrow-up-right method returns true when running automation tests.

Test setup

Before each test, call the automationResetarrow-up-right method to ensure the app's configuration is reset to factory defaults.

Applying configuration to an automation test

In your test method, set your configuration properties to the values you require, then call the automationApplyarrow-up-right method.

Additional automation launch methods

See also automationActionarrow-up-right method of nz.co.electricbolt.appfiguratelibrary.Configurationarrow-up-right

Applying configuration at runtime to the app under test

circle-info

Android's Espresso tests run in the same process as the app under test, and therefore the iOS specific APIs automationSendConfigurationarrow-up-right, automationSendConfigurationResetarrow-up-right, automationSendConfigurationWithActionarrow-up-right, automationSendReadConfigurationarrow-up-right, APLAutomationSendMessagearrow-up-right and APLAutomationMessageReceivedBlockarrow-up-right functions are not required and not implemented in Android.

Last updated