CulebraTester: Snaky Android Testing
Android testing can be complicated, time-consuming, and tedious. What if it didn’t have to be?
CulebraTester2 provides an API that facilitates the creation of test automation tools and UI's. Not sure what we mean?
Continue reading and see how you can run this early preview.
This is an alpha version of CulebraTester2 expect changes |
- Have your device or emulator connected to
adb
- Install APKs
- Build and install
- Copy
local.properties.SAMPLE
tolocal.properties
and adapt the values to your environment ./culebratester2 install
(or run./gradlew installDebug installDebugAndroidTest
)
- Copy
- or downalod prebuilt app and instrumentation APKs from Github Actions
- Build and install
- Start server
./culebratester2 start-server
- Open http://localhost:9987/ with a browser or
curl
- You should see
CulebraTester2: Go to http://localhost:<port>/help for usage details.
- If the previous request worked, you can try something more ambitious as http://localhost:9987/v2/uiDevice/screenshot
- Take a look at CulebraTester2 API or its spec
openapi.yaml
for more info - When done testing, http://localhost:9987/quit will terminate the server
CulebraTester2 is a new backend for AndroidViewClient/culebra.
CulebraTester2 is a new implementation in Kotlin of culebra.
A python client implementation can be found at CulebraTester2-client.
This previous version API specification can be found at here.
The script simple-calculator-test shows a rudimentary usage of this API by
- starting Calculator activity
- finding one of the digit Buttons, can be specified or a random one is slected
- clicking on that Button
We mentioned CulebraTester2 provides an API that facilitates the creation of test automation tools and UI's.
Here we are, this is in the making.
Found issues? Use https://github.com/dtmilano/CulebraTester2-public/issues
Have questions? Use https://stackoverflow.com/questions/tagged/androidviewclient.