Skip to content

kevin-brotcke/android-uiautomator-server

 
 

Repository files navigation

Purpose

UIAutomator is a great tool to perform Android UI testing, but to do it, you have to write java code, compile it, install the jar, and run. It's a complex steps for all testers...

This project is to build a light weight jsonrpc server in Android device, so that we can just write PC side script to write UIAutomator tests.

Build

  • Run command:

      $ ./gradlew build
      $ ./gradlew packageDebugAndroidTest
    
  • Run the jsonrcp server on Android device

      $ ./gradlew cC
      $ adb forward tcp:9008 tcp:9008 # tcp forward
    

How to use

from uiautomator import device as d

d.screen.on()
d(text="Settings").click()
d(scrollable=True).scroll.vert.forward()

Refer to python wrapper library uiautomator.

Notes

If you have any idea, please email xiaocong@gmail.com or submit tickets.

Dependencies

TODO

  • move from java to kotlin
  • support unicode input

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 96.9%
  • Kotlin 3.1%