About Selendroid:
Selendroid is a test automation framework which
drives off the UI of Android native and hybrid applications (apps) and the
mobile web. Tests are written using the WebDriver client API.
Solenoid can be used on emulators and real
devices and can be integrated as a node into the Selenium Grid for scaling and
parallel testing.
Overview about the Selendroid:
Selendroid is based on the Android
instrumentation framework, so therefor only testing one app is supported.
Selendroid contains four major components:
ü Selendroid-Client - the java client
library (based on the selenium java client).
ü Selendroid-Server - that is running
beside your app on the Android device.
ü Android Driver-App - a build in Android
driver web view app to test the mobile web.
ü Selendroid-Standalone - manages different
Android devices by installing the Selendroid-server and the app under test.
The selendroid-standalone-0.7.0.jar does contains the standalone-server,
Selendroid-server and as well the Selendroid-client driver.
Selendroid-Server:
Central driver class is Default
Selendroid Server. That class is responsible for doing the common activities
(like taking screenshots) for both contexts Native_app
and Web_app.
The web view related driver class
is SelendroidWebDriver and native
class is SelendroidNativeDriver.
Selendroid-Standalone:
Central driver class is Selendroid
Standalone Driver that acts as a proxy between the Selendroid-client and the
Selendroid-server and starts e.g. an Android emulator, creates for the app
under test a customized Selendroid-server and installs everything on the
device.
Features
of Selendroid:
ü The only mobile WebDriver
that supports native & hybrid apps on Android version.
ü The app under test must not
be modified in order to automate it
ü Different locator types are
supported to find elements
ü Gestures are supported:
Advanced User Interactions API
ü Selendroid can interact
with multiple Android devices (emulators or hardware devices) at the same time
ü Existing Android emulators
are started automatically
ü It can be integrated as a
node into the Selenium Grid for scaling and parallel testing
ü Build in Inspector to
simplify test case development.
ü Full compatibility to the
WebDriver JSON Wire protocol.
Selendroid
Architecture:
System Requirements:
ü Selendroid is tested to run on Mac, Linux and Windows.
ü Java SDK (minimum 1.6) is installed and JAVA_HOME is
configured
ü Latest Android-SDK is installed and ANDROID_HOME is
set.
ü At least one Android virtual device must exist or an
Android hardware device must be plugged in to the computer