Skip to content

Commit

Permalink
Merge pull request #27 from pTinosq/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
dtmilano authored Jul 5, 2024
2 parents 97e4c47 + 6e5ee7c commit 44ad0eb
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,25 @@ Continue reading and see how you can run this early preview.
# How to run CulebraTester2 ?
1. Have your device or emulator connected to `adb`
1. Install APKs
1. Downalod prebuilt **app** and **instrumentation** APKs from [Github Actions](https://github.com/dtmilano/CulebraTester2-public/wiki/Prebuilt-APKs)
1. Download prebuilt **app** and **instrumentation** APKs from [Github Actions](https://github.com/dtmilano/CulebraTester2-public/wiki/Prebuilt-APKs)
1. or build from source and install
1. Copy `local.properties.SAMPLE` to `local.properties` and adapt the values to your environment
1. `./culebratester2 install` (or run `./gradlew installDebug installDebugAndroidTest`)
1. Start server `bash <(curl -sL https://git.io/JT5nc) start-server`
1. alternative if you checked out the source you can run `./culebratester2 start-server` instead
1. alternatively if you checked out the source you can run `./culebratester2 start-server` instead
1. Open http://localhost:9987/ with a browser or `curl`
1. You should see `CulebraTester2: Go to http://localhost:<port>/help for usage details.`
1. If the previous request worked, you can try something more ambitious as http://localhost:9987/v2/uiDevice/screenshot
1. If the previous request worked, you can try something more ambitious like http://localhost:9987/v2/uiDevice/screenshot
1. Take a look at [CulebraTester2 API](https://mrin9.github.io/OpenAPI-Viewer/#/load/https%3A%2F%2Fraw.githubusercontent.com%2Fdtmilano%2FCulebraTester2-public%2Fmaster%2Fopenapi.yaml) or its spec [`openapi.yaml`](https://github.com/dtmilano/CulebraTester2-public/blob/master/openapi.yaml) for more info
1. When done testing, http://localhost:9987/quit will terminate the server
1. When you are done testing, navigating to http://localhost:9987/quit will terminate the server

# Want to learn more?
Detailed information can be found in the [CulebraTester2 wiki](https://github.com/dtmilano/CulebraTester2-public/wiki) wiki

# AndroidViewClient
**CulebraTester2** is a new backend for [AndroidViewClient/culebra](https://github.com/dtmilano/AndroidViewClient).
**CulebraTester2** is the new backend for [AndroidViewClient/culebra](https://github.com/dtmilano/AndroidViewClient).

It can be used like other backends, in this case you have to specify the command option
It can be used similarly to other backends with the following command options

```
-h, --use-uiautomator-helper use UiAutomatorHelper Android app
Expand Down Expand Up @@ -76,18 +76,18 @@ or set `useuiautomatorhelper=True` when you create a `ViewClient` object.
# culebra
**CulebraTester2** is a new implementation in Kotlin of [culebra](culebra.dtmilano.com).

A python client implementation can be found at **[CulebraTester2-client](https://github.com/dtmilano/CulebraTester2-client)**.
A Python client implementation can be found at **[CulebraTester2-client](https://github.com/dtmilano/CulebraTester2-client)**.

This previous version API specification can be found at [here](https://github.com/dtmilano/CulebraTester-public/wiki/RESTful-API).

# Example
The script [simple-calculator-test](https://github.com/dtmilano/CulebraTester2-public/blob/master/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
- finding one of the digit buttons (can be specified or a random one is selected)
- clicking on that button

# UI
We mentioned **CulebraTester2** provides an API that facilitates the creation of test automation tools and UI's.
We mentioned **CulebraTester2** provides an API that facilitates the creation of test automation tools and UIs.

Here we are, this is in the making.

Expand Down

0 comments on commit 44ad0eb

Please sign in to comment.