
apk + activity (‘app’ + ‘appActivity’ capabilities). apk or zip only, the default activity will be launched (‘app’ capability). The same as when the application is started via adb): There are several ways to start an Appium application (it works exactly Otherwise failing, you can restart it by running: If it’s not showing any connected devices or If the Android SDK tools are on your path, you canĪnd wait for the android emulator to finish launching. Of course, to haveĪ device connected, you’ll need to have made an Android AVD (see systemįor more information). This is the device Appium will use for tests.
If you run adb devices, for example, you should see one deviceĬonnected. Running your test app with Appium (Android)įirst, make sure you have one and only one Android emulator or deviceĬonnected. Whatever host and port you specified when you started Appium). Using your WebDriver library of choice, set the remote session to use theseĬapabilities and connect to the server running at port 4723 of localhost (or
A path to one of the sample app relative to the appium install root. A local absolute path to your simulator-compiled. In this set of capabilities, myApp must be either:
DEVICE_NAME, "iPhone Simulator" ) capabilities.
java DesiredCapabilities capabilities = new DesiredCapabilities () capabilities. Then script your WebDriver test, sending in the following desired capabilities: The best way to see what to do currently is to look at the example tests:īasically, first make sure Appium is running: