问题
On the Play Store and on Firebase Test Lab I can run automated tests without writing any scripts, they just go through the app and try stuff for a few minutes.
How can I run this kind of test either from the command line or from Android Studio? I have about 10 different phones I would like to run it on.
Thanks.
Edit: just to be clear, I'm asking about the automatic robot test, where I don't tell it anything, it just tries stuff.
回答1:
There are 2 options :
You can record Robo tests through Android Studio. Crawler is part of Jetpack https://developer.android.com/training/testing/crawler
You can run Monkey tests through command line. Monkey is part https://developer.android.com/studio/test/monkey
来源:https://stackoverflow.com/questions/58496205/how-can-i-run-an-automatic-robo-test-on-android-app-like-the-one-on-firebase-te