This project contains automated tests for the TrashCat game using AltTester® with Appium. The tests validate game functionality through the AltTester® Unity SDK.
- Page Object Models (
pages/): Reusable page objects for different game screens - Test Suite (
tests/): Automated test cases for the TrashCat game - Test Runner Script (
run_tests_android.sh): Automated script that starts Appium, installs the app, and runs all tests
Before running the tests, you need:
-
AltTester® Desktop (version 2.0.0 or later)
- Download from: https://alttester.com/downloads/
- ❗ Must be running during test execution
-
Appium Server Setup
- Follow the setup guide: https://alttester.com/docs/sdk/latest/pages/alttester-with-appium.html
-
Python Environment
- Python 3.x installed
- Dependencies will be installed automatically by the script
You need to create an instrumented TrashCat.apk file:
-
Clone the TrashCat Unity project with AltTester® Unity SDK:
git clone --recursive https://github.com/alttester/trashcat.git
-
Open the project in Unity
-
Instrument the application using the latest version of AltTester® Unity SDK
- Detailed instrumentation instructions: https://alttester.com/docs/sdk/latest/pages/get-started.html
-
Build the Android APK from Unity
-
Create an
appfolder in the project root (if it doesn't exist):mkdir app
-
Copy your instrumented
TrashCat.apkinto theapp/folder:app/ └── TrashCat.apk
-
Start AltTester® Desktop
- Open the AltTester® Desktop application
-
Connect Your Android Device or Emulator
- Ensure your device is connected via USB with USB debugging enabled, OR
- Start an Android emulator
-
Run the Test Script
./run_tests_android.sh
The run_tests_android.sh script automatically:
- Installs/updates all Python dependencies from
requirements.txt - Starts the Appium server
- Installs the TrashCat app from the
app/folder onto your device - Executes all test cases in the
tests/folder - Generates a test report