monkeyrunner
-
You use monkeyrunner with Python programs to test applications and devices .
你在Python程序中使用monkeyrunner来测试程序和设备。
-
The monkeyrunner tool provides these unique features for Android testing
monkeyrunner工具为Android测试提供了以下特性
-
You can also add your own classes to the monkeyrunner API .
您还可以向monkeyrunnerAPI中添加您自己的类。
-
The monkeyrunner tool is an API and execution environment .
monkeyrunner工具是一套API和执行环境。
-
You can generate an API reference for monkeyrunner by running
您可以用以下命令来生成monkeyrunner的API参考
-
MonkeyRunner : A class of utility methods for monkeyrunner programs .
一个为monkeyrunner程序提供工具方法的类。
-
Functional testing : monkeyrunner can run an automated start-to-finish test of an Android application .
功能测试:monkeyrunner可以为一个应用自动贯彻一次功能测试。
-
This is described in more detail in the section Extending monkeyrunner with plugins .
我们将在使用插件扩展monkeyrunner一节中对此进行详细讨论。
-
The monkeyrunner tool uses Jython , a implementation of Python that uses the Java programming language .
monkeyrunner工具使用Jython(使用Java编程语言的一种Python实现)。
-
Jython allows the monkeyrunner API to interact easily with the Android framework .
Jython允许monkeyrunnerAPI与Android框架轻松的进行交互。
-
Multiple device control : The monkeyrunner API can apply one or more test suites across multiple devices or emulators .
多设备控制:monkeyrunnerAPI可以跨多个设备或模拟器实施测试套件。
-
The monkeyrunner tool is not related to the UI / Application Exerciser Monkey , also known as the monkey tool .
monkeyrunner工具与(UI/ApplicationExerciserMonkey)用户界面/应用程序测试工具,也称为monkey工具并无关联。
-
The monkeyrunner tool provides an API for writing programs that control an Android device or emulator from outside of Android code .
monkeyrunner工具提供了一个API,使用此API写出的程序可以在Android代码之外控制Android设备和模拟器。
-
You can either run monkeyrunner programs from a file , or enter monkeyrunner statements in an interactive session .
您可以直接使用一个代码文件运行monkeyrunner,抑或在交互式对话中输入monkeyrunner语句。
-
The syntax of the monkeyrunner command is
monkeyrunner命令的语法为
-
In comparison , the monkeyrunner tool controls devices and emulators from a workstation by sending specific commands and events from an API .
而monkeyrunner工具则是在工作站上通过API定义的特定命令和事件控制设备或模拟器。
-
You do both by invoking the monkeyrunner command which is found in the tools / subdirectory of your SDK directory .
不论使用哪种方式,您都需要调用SDK目录的tools子目录下的monkeyrunner命令。
-
Besides using the monkeyrunner API itself , you can use the standard Python os and subprocess modules to call Android tools such as Android Debug Bridge .
除了使用monkeyrunnerAPI之外,您还可以使用标准的Pythonos和模块来调用如AndroidDebugBridge这样的Android工具。
-
Extensible automation-Since monkeyrunner is an API toolkit , you can develop an entire system of Python-based modules and programs for controlling Android devices .
可扩展的自动化:由于monkeyrunner是一个API工具包,您可以基于Python模块和程序开发一整套系统,以此来控制Android设备。
-
The monkeyrunner tool is primarily designed to test applications and devices at the functional / framework level and for running unit test suites , but you are free to use it for other purposes .
monkeyrunner工具的主要设计目的是用于测试功能/框架水平上的应用程序和设备,或用于运行单元测试套件,但您当然也可以将其用于其它目的。