mirror of
https://github.com/appium/appium.git
synced 2026-05-05 09:59:58 -05:00
update android test and system docs
This commit is contained in:
+11
-1
@@ -54,7 +54,17 @@ all set now!
|
||||
|
||||
<a name="run-android"></a>Running your test app with Appium (Android)
|
||||
-----
|
||||
First make sure Appium is running:
|
||||
First, make sure you have one and only one Android emulator or device
|
||||
connected. If you run `adb devices`, for example, you should see one device
|
||||
connected. This is the device Appium will use for tests. Of course, to have
|
||||
a device connected, you'll need to have made an Android AVD (see [system
|
||||
setup](https://github.com/appium/appium/blob/master/docs/system-setup.md#android)
|
||||
for more information). If the Android SDK tools are on your path, you can
|
||||
simply run:
|
||||
|
||||
emulator -avd <MyAvdName>
|
||||
|
||||
And wait for the android emulator to finish launching. Now, make sure Appium is running:
|
||||
|
||||
node server.js -V
|
||||
|
||||
|
||||
@@ -4,5 +4,25 @@ Preparing your system to run Appium tests
|
||||
<a name="ios"></a>System setup (iOS)
|
||||
--------
|
||||
|
||||
* Make sure you have XCode and the iOS SDK(s) installed.
|
||||
* You might also want to install additional versions of the iOS SDKs if you
|
||||
want to test on older or multiple versions.
|
||||
|
||||
<a name="android"></a>System setup (Android)
|
||||
--------
|
||||
|
||||
* Make sure you have the Android SDK installed
|
||||
* Make sure you have Android SDK API >= 17 installed. To do this, run the
|
||||
android SDK manager and select the API in the extra packages you can install.
|
||||
* Make sure you have ant installed. Ant is used to build the Appium bootstrap
|
||||
jar as well as the test applications.
|
||||
* Make sure you have exported `$ANDROID_HOME`, containing your android sdk
|
||||
path. If you unzipped the Android SDK to `/usr/local/adt/`, for example, you
|
||||
should add this to your shell startup:
|
||||
|
||||
export ANDROID_HOME="/usr/local/adt/sdk"
|
||||
|
||||
* Make sure you have an AVD set to a recent Android version (one that can run
|
||||
UIAutomator. Just choose the latest Android OS). You can create an AVD by
|
||||
using the android SDK tools. Remember the name you give the AVD, so that you
|
||||
can launch an emulator with it and run tests against it.
|
||||
|
||||
Reference in New Issue
Block a user