在前面一篇文章中已经介绍了如何搭建 Java+Eclipse环境,现在介绍下如何在Eclipse基础上搭建UIAutomator环境,进行移动端测试。
第一步:安装Android SDK
Link:http://developer.android.com/sdk/installing/index.html . 因为是在Eclipse下,我选的是Stand-alone SDK Tools。进行Download 和Install.
设置环境变量:ANDROID_HOME = D:\Program Files (x86)\Android\android-sdk
设置Path:Path= ;%ANDROID_HOME%\tools
第二步:在Eclipse中安装ADT(AndroidDeveloperTools) 插件及配置
SDK Tools Integration
Many of the tools that you can start or run from the command line are integrated into ADT. They include:
Traceview: Allows you to profile your program's execution (Window > Open Perspective > Traceview).
android: Provides access to the Android SDK Manager and AVD Manager. Other android features such as creating or updating projects (application and library) are integrated throughout the Eclipse IDE.
Hierarchy Viewer: Allows you to visualize your application's view hierarchy to find inefficiencies (Window > Open Perspective > Hierarchy Viewer).
Pixel Perfect: Allows you to closely examine your UI to help with designing and building. (Window > Open Perspective > Pixel Perfect).
DDMS: Provides debugging features including: screen capturing, thread and heap information, and logcat (Window > Open Perspective > DDMS).
adb: Provides access to a device from your development system. Some features of adb are integrated into ADT such as project installation (Eclipse run menu), file tran