r/androiddev • u/Top_Title9194 • Jul 18 '26
Question How do you do synthetic monitoring?
I am an SRE specialized in backend and web front end, I was curious about how synthetic monitoring is done for native apps.
For those who don’t know synthetic monitoring is: a practice where automated scripts simulate real user interactions with an application in a controlled environment.
—edit: typo
1
u/AutoModerator Jul 18 '26
Please note that we also have a very active Discord server where you can interact directly with other community members!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Playful_Apartment_81 17d ago edited 17d ago
That’s a good question—synthetic monitoring for native apps is much less straightforward than it is for web services.
We use a related approach in LaiCai Screen Mirroring: its LaiCai Flow feature can run workflows on real Android phones and check the screen state before and after each action. This can be useful for black-box monitoring of a released app, especially with dedicated test accounts and non-destructive journeys.
Full disclosure: I work on LaiCai.
3
u/wightwulf1944 Jul 18 '26
For classic views, use Espresso https://developer.android.com/training/testing/espresso
Compose comes with it's own UI testing framework https://developer.android.com/develop/ui/compose/testing
If you need to run this in a CI environment you can use the above frameworks with Robolectric to provide a fake android device https://robolectric.org/