Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是自动化android应用程序的新手。我从Monkeyrunner那里听说我们可以自动化..
我看过一些示例代码..
如何运行这个?保存代码的扩展名是什么?
我是否需要连接设备并从 cmd 提示符运行?
请告诉我,因为我对此很陌生。
您在连接设备或运行模拟器的情况下从开发计算机运行 monkeyrunner。
像:
$ monkeyrunner myscript.mr
如果您使用的是 Linux 或 OS X,您可以使用 she-bang 将其作为脚本的第一行
#! /usr/bin/env monkeyrunner
前提是monkeyrunner 在您的PATH 中。