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
- adb
- python3
- pip3
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.
- Download and install the AltTester® Desktop from here, then open it.
- Instrument the TrashCat application using the latest version of AltTester® Unity SDK - for additional information you can follow this tutorial
- Create a folder
appand include the instrumented app under the folder. - To start the tests, depending on your OS run:
./run_tests_mac.shon MacOS/Linux./run_tests_windows.shon 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