https://github.com/alttester/examples-python-android-alttrashcat
https://github.com/alttester/examples-python-android-alttrashcat
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/alttester/examples-python-android-alttrashcat
- Owner: alttester
- Created: 2022-09-20T09:23:46.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2025-04-24T05:12:25.000Z (over 1 year ago)
- Last Synced: 2025-08-29T18:56:51.451Z (11 months ago)
- Language: Python
- Size: 516 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AltTester® Examples Tests for Android Build with Python Tests
This repository shows a few Python tests that use the page object model and AltTester® to test the Unity Endless Runner sample:
https://assetstore.unity.com/packages/essentials/tutorial-projects/endless-runner-sample-game-87901
## Prerequisites
* adb
* python3
* pip3
## Running the tests
> **Note**: The tests are meant to be run on an Android device.
❗ Starting with version 2.0.0, the AltTester® Desktop must be running on your PC while the tests are running.
1. Download and install the AltTester® Desktop from [here](https://alttester.com/downloads/), then open it.
2. Instrument the TrashCat application using the latest version of AltTester® Unity SDK - for additional information you can follow [this tutorial](https://alttester.com/walkthrough-tutorial-upgrading-trashcat-to-2-0-x/#Instrument%20TrashCat%20with%20AltTester%20Unity%20SDK%20v.2.0.x)
3. Create a folder `app` and include the instrumented app under the folder.
4. To start the tests, depending on your OS run:
- `./run_tests_mac.sh` on MacOS/Linux
- `./run_tests_windows.sh` on Windows
This script will:
* try to uninstall the apk and reinstall it
* start the app
* try to create a Python virtual env and install the dependencies
* run the tests
* stop the app