@deque/axe-appium3-uiautomator2-server
v1.7.1
Published
A netty server with uiautomator2 handlers including axeDevToolsMobile Android SDK
Readme
axe-appium3-uiautomator2-server
A netty server with uiautomator2 handlers including axeDevToolsMobile Android SDK.
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 com.deque.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 com.deque.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:
pnpm run test # rebuilds vendor JAR, runs app unit tests
pnpm run test:vendor-xpath2 # runs upstream XPath2 processor testsThe XPath 2.0 engine is vendored from Eclipse WTP; see vendor/README.md for build details, local patches, and troubleshooting.
Other Sections
Supported Node version
this repo is regularly synced with public repo because of which the supported node versions are ^20.19.0 || ^22.12.0 || >=24.0.0. Restricting the node version to just >=24.0.0 may break functionality for the end users.
