Java Apache-2.0

appium-uiautomator2-server

Appium UiAutomator/UiObject2-based server for Android UI automation. This module is used by appium-uiautomator2-driver component

A

appium

Dernière activité 10 sept. 2026
appium/appium-uiautomator2-server

411

étoiles

269

forks

70

issues ouvertes

androidappiumappium-androidjavaserveruiautomator2

Ce README est souvent en anglais.

appium-uiautomator2-server

NPM version Downloads

This repository has moved. Development now continues in the appium-android monorepo.

A netty server that runs on the device listening for commands and executes using UiAutomator V2.

building project

build the android project using below commands

./gradlew clean assembleServerDebug assembleServerDebugAndroidTest

You can also build with specific version name and version code using this command. ./gradlew -PversionName=8.0.0 -PversionCode=300 clean assembleServerDebug assembleServerDebugAndroidTest

Starting server

push both src and test apks to the device and execute the instrumentation tests.

adb shell am instrument -w io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner

run unitTest

build the unitTest flavor using the below commands

./gradlew clean assembleE2ETestDebug assembleE2ETestDebugAndroidTest

unitTest flavor contains tests for handlers and can be invoked by using following command

./gradlew clean connectedE2ETestDebugAndroidTest

the above command takes care about installing the AUT apk in to the testing device/emulator before running the tests.

you can also invoke the test using below command

adb shell am instrument -w io.appium.uiautomator2.e2etest.test/androidx.test.runner.AndroidJUnitRunner

Note: AUT apk should be installed before executing above command.

Development tests

Server JVM unit tests (including XPath 2.0 selector coverage) and the vendored PsychoPath processor suite:

npm run test                  # rebuilds vendor JAR, runs app unit tests
npm run test:vendor-xpath2    # runs upstream XPath2 processor tests

The XPath 2.0 engine is vendored from Eclipse WTP; see vendor/README.md for build details, local patches, and troubleshooting.

Other Sections

Projets similaires

Appium driver for Android UIAutomator2

TypeScriptandroidappiumdriver
Aappium
883 étoiles230

Android Uiautomator2 Python Wrapper

Pythonpythontestuiautomator
Oopenatx
8,4 k étoiles1,6 k

Cross-platform automation framework for all kinds of apps, built on top of the W3C WebDriver protocol

TypeScriptandroidappiumautomation
Aappium
22 k étoiles6,3 k