This repository shows a few Java 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
The tests are meant to be run on an Windows or MacOS device.
To start the tests, depending of your OS run:
-
./start_tests_mac.sh on MacOS/Linux
Create a folder
mac
under project. The app is provided at https://altom.com/app/uploads/AltTester/TrashCat/TrashCatMacOS.app.zip and needs to be included under the mac/ folder. -
./start_tests_windows.sh on Windows
Create a folder
windows
under project. The app is provided at https://alttester.com/app/uploads/AltTester/TrashCat/TrashCatStandAlone2_0_1.zip and needs to be included under the windows/ folder.
Please make sure your android device is connected via USB before running the .sh script
To start the tests, run:
-
./start_tests_android.sh on Windows
Create a folder
android
under project. The app is provided at https://alttester.com/app/uploads/AltTester/TrashCat/TrashCatAndroid2_0_1.zip and needs to be included under the android/ folder.
This script will:
- start the app on your device
- run the tests
- stop the app after the test are done