如何在Android应用上运行自动机器人测试?就像Firebase测试实验室的那个一样 [英] How can I run an automatic robo test on Android app? like the one on Firebase Test Lab
问题描述
在Play商店和Firebase测试实验室中,我可以运行自动化测试而无需编写任何脚本,它们只是通过应用程序并尝试了几分钟.
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.
如何从命令行或从Android Studio运行这种测试?我有大约10种不同的手机想要在其上运行.
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.
谢谢.
为了清楚起见,我问的是自动机器人测试,在这里我什么都没告诉,它只是在尝试.
just to be clear, I'm asking about the automatic robot test, where I don't tell it anything, it just tries stuff.
推荐答案
有2个选项:
-
您可以通过Android Studio记录Robo测试.爬虫是Jetpack的一部分 https://developer.android.com/training/testing/crawler
您可以通过命令行运行Monkey测试.猴子是一部分 https://developer.android.com/studio/test/monkey
You can run Monkey tests through command line. Monkey is part https://developer.android.com/studio/test/monkey
这篇关于如何在Android应用上运行自动机器人测试?就像Firebase测试实验室的那个一样的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!