Java
Last updated
Last updated
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.
In your nz.co.electricbolt.appfiguratelibrary.Configuration
subclass, ensure that your allowInvalidSignatures method returns true
when running automation tests.
Before each test, call the automationReset method to ensure the app's configuration is reset to factory defaults.
Java example
In your test method, set your configuration properties to the values you require, then call the automationApply method.
Java example
See also automationAction method of nz.co.electricbolt.appfiguratelibrary.Configuration
.