How can I run an automatic robo test on Android app? like the one on Firebase Test Lab

孤者浪人 提交于 2021-01-29 13:20:04

问题


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 :

  1. You can record Robo tests through Android Studio. Crawler is part of Jetpack https://developer.android.com/training/testing/crawler

  2. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!