Which mobile scenarios are worth automating
Updated:
The value of automation is determined not by the number of tests, but by the faults it helps detect early. The first scenarios should therefore not be only those that are easiest to write. We select them according to their impact on the user, frequency of use, repeatability and maintenance cost.
Why a long list of screens is not enough
Automating only in the order of the app’s menu items can leave important journeys out. This produces dozens of checks of lists and settings, while sign-in, payment or recovery after a network outage remain subject to manual testing. The report looks comprehensive, but the greatest risks remain uncovered.
The opposite problem is trying to move every detail into the end-to-end layer. Such tests are slower, work with multiple systems and require more maintenance. A price calculation or input validation can often be verified faster and more accurately at the unit or API test level.
How to determine the order
We assign four simple assessments to each candidate:
- Impact of a fault: would it stop the customer, a payment or an important process?
- Frequency: how often do customers use the journey and the team repeat it?
- Repeatability: can we prepare a known state and verify the result unambiguously?
- Appropriate layer: does the scenario need to go through the mobile interface, or would an API or lower-level test verify it better?
We select scenarios with a high impact and a clear outcome first. We take implementation difficulty into account, but it should not automatically eliminate the most important journey.
Scenarios that tend to be good candidates
- Installation, updates and first launch. These verify a clean state, initial setup and preservation of data after an update.
- Sign-in and access recovery. These include successful and unsuccessful attempts and the session state after a restart. Two-factor authentication needs a test mechanism.
- The product’s main function. This is the journey for which a customer installed the application, not a generic list of screens.
- Payment or order. We use a sandbox and controlled test data, not a real card or production purchase.
- Permissions. We verify granting permission, denying it and returning from settings, while reliably restoring the application’s state before the test.
- Offline and interrupted processes. We check for a clear response, retrying the request and protection against a duplicate operation.
- Notifications and deep links. Registration and data processing can be verified separately. A smaller number of end-to-end tests checks that the correct screen opens.
We select scenarios such as a call, orientation change or a restriction on the background process according to whether they affect a specific function. Not every application needs them in its first suite.
How to turn candidates into a maintainable suite
For every scenario, we define the initial state, test data, expected outcome and owner. We prepare data through an API or controlled helper mechanism unless creating it through the interface is itself the subject of the test. This shortens the run and reduces the number of random failures.
The shortest critical journeys form the smoke suite. Broader and slower combinations run regularly or before release on a selected device matrix. We fix a test that fails over the long term without a product fault, or temporarily exclude it with a clear owner. It must not become tolerated noise.
If the mobile application depends on a backend, a large proportion of the rules can be covered less expensively through API testing. The mobile layer then verifies the connection between systems and the actual user journey.
An example for an ordering app
The following table is a decision model, rather than a test result from a particular app. It assumes a test backend, an account with a prepared basket and a payment sandbox. Set actual priorities using your product and known defects.
| Candidate | Outcome to verify | How to divide the checks |
|---|---|---|
| Submitting an order | Exactly one order is created with the correct items, and the user can see its status | Rules and duplicate protection through the API, form-to-result integration through the mobile interface |
| Losing the connection after submission | When connectivity returns, the app checks the operation’s status instead of submitting it again without checking | A controlled communication failure followed by verification of backend orders |
| Changing font size | Important information and the submit button remain accessible | Automated checks of selected states, supplemented by manual assessment of readability and operation |
Do not postpone a rare, high-impact scenario solely because of its low frequency. A duplicate payment may be a priority even when users rarely repeat a submission. If an interruption cannot be triggered reliably, first establish communication controls or a lower-level test. Randomly switching connectivity does not replace a known failure point.
The Android Developers strategy helps with layer selection: use the lowest layer that provides the feedback you need. A price calculation need not wait for the entire device journey every time. At least a selected critical journey must still check the actual connection between the app and its services.
Initial state must cover the app and server
Before a run, record the app version, device and operating system, sign-in state, permissions and prepared data. A clean installation and an update to an existing installation are different scenarios. Update testing needs data created by a supported older version and an expectation of which data should survive or change.
Clearing local data does not remove server-side orders or sessions. Prepare separate accounts or a safe way to restore server state. Concurrent tests must not modify the same basket and misreport the resulting conflict as an app defect. For a failed payment attempt, also agree how to verify that no payment or order was created when the rules required none.
When testing a return to the app, distinguish moving to the background, recreating a screen and terminating the process. Android’s lifecycle documentation explains that the system can terminate an app’s background process. Returning from another app alone therefore does not prove correct recovery from that condition. Choose a way to trigger the event for the platform concerned and verify the agreed preservation of unfinished work.
When to keep a manual check
If you cannot define an unambiguous outcome, adding more clicks will not resolve that gap. Readability, the clarity of an error message, screen-reader operation or physical sensor behaviour may require a person and a real device. Automation can prepare the state or catch a specific regression, but a passing script alone cannot establish usability across the app.
For a hybrid app, also check access to WebView elements. Appium distinguishes contexts where supported locators and interactions may differ. Include the transition from a native screen to embedded web content in the pilot if a critical journey uses it. Support depends on the particular driver and configuration, rather than selecting Appium alone.
How to decide after the pilot
For both selected journeys, track preparation, execution and assessment time, manual interventions and the causes of failed runs. Agree on the feedback time the team needs before starting. Use a build close to the planned release so that the test checks more than a helper development configuration.
In a safe environment, deliberately introduce a known fault and check that the test detects it and the report explains it. Repeated success on an unchanged app helps assess stability but does not demonstrate defect detection without this check. End the pilot with a decision: add the scenario to a specific layer, provide missing preparation or retain manual verification with an owner. Record the uncovered risk and reason for the decision.
What you gain
A well-chosen suite focuses checks on important risks. Dividing them between appropriate layers can shorten feedback time and make assessment easier. The team knows which risk each test covers.
Clear priorities also make expansion easier. When a feature or production problem is added, the new scenario is classified according to the same rules instead of enlarging the suite arbitrarily.
Next step
Take the five most important user journeys and assess them according to impact, frequency, repeatability and the appropriate testing layer. Verify the two highest-ranked journeys in a pilot and define a measurable outcome for each. Only then add further scenarios.