How would you test a mobile app upgrade that changes local data or storage schema?
Answer
Install representative supported older versions with realistic sessions, settings, cached and persisted data, then upgrade in place to the candidate build. Verify schema migration, authentication state, user preferences and business data, including large and partially populated stores. Exercise interrupted migration, low-storage and restart paths, confirm migration is idempotent where applicable, and ensure failure is recoverable without silent corruption or data loss.
Strong answer includes
- tests in-place upgrades from representative supported historical versions
- verifies local schema, session, preferences and business data after migration
- covers interruption and recovery without silent corruption or duplicated migration
Practical example
Version 6 moves offline orders from one local table layout to another. QA prepares devices on versions 4 and 5 with unsent orders and active sessions, upgrades directly to 6, interrupts one migration by killing the app, and verifies all supported paths resume safely without duplicate orders, lost authentication or an unreadable database.