20 AI testers on 20 different phones, in parallel, on GitHub's free runners: Claude Code agents on iOS Simulators and Android emulators that find broken flows, translation, layout and accessibility bugs
Python accessibility-testingai-agentsai-testingandroidandroid-emulatorclaudeclaude-codee2e-testingexploratory-testingexpofluttergithub-actionsiosios-simulatorllmmobile-testingqareact-nativetest-automationui-testing
Public app repos need no token; each platform reads its app id from the built app
Pierre RAFFALLI72838500c653
diff --git a/.github/workflows/agent-testers.yml b/.github/workflows/agent-testers.ymlindex 743f4d0..57c4780 100644--- a/.github/workflows/agent-testers.yml+++ b/.github/workflows/agent-testers.yml@@ -18,7 +18,7 @@ on:description: App folder (where package.json is)default: demo-appapp_id:- description: Android package / iOS bundle id+ description: Android package / iOS bundle id (if a platform uses another id, the one inside its built app is used)default: com.example.tinytodoframework:description: auto, flutter, expo, react-native, capacitor, kmp, native or maui@@ -90,7 +90,7 @@ jobs:with:repository: ${{ inputs.source_repo }}ref: ${{ inputs.ref }}- token: ${{ secrets.SOURCE_REPO_TOKEN }}+ token: ${{ secrets.SOURCE_REPO_TOKEN || github.token }} # the secret only for a private app repopath: srcpersist-credentials: false- uses: actions/setup-node@v4@@ -134,7 +134,7 @@ jobs:with:repository: ${{ inputs.source_repo }}ref: ${{ inputs.ref }}- token: ${{ secrets.SOURCE_REPO_TOKEN }}+ token: ${{ secrets.SOURCE_REPO_TOKEN || github.token }} # the secret only for a private app repopath: srcpersist-credentials: false- uses: actions/setup-node@v4diff --git a/README.md b/README.mdindex a65e882..a6d86a6 100644--- a/README.md+++ b/README.md@@ -43,7 +43,7 @@ gh workflow run agent-testers.yml -f source_repo=you/app -f app_id=com.you.app \| Input | ||---|---|| `source_repo`, `ref` | App repo and branch (empty = this repo). Private repo: add a read-only `SOURCE_REPO_TOKEN` secret |-| `app_dir`, `app_id` | App folder, Android package / iOS bundle id |+| `app_dir`, `app_id` | App folder, Android package / iOS bundle id (if the other platform uses another id, it is read from its built app) || `android_personas`, `ios_personas` | Ids from [personas.json](personas.json), one phone each || `brief` | Agent instructions ([AGENT_BRIEF.md](AGENT_BRIEF.md)) || `framework` | `auto` (default) or force one of the frameworks below |diff --git a/plugins/mobile-agent-testers/skills/setup/SKILL.md b/plugins/mobile-agent-testers/skills/setup/SKILL.mdindex 11ad107..84f2912 100644--- a/plugins/mobile-agent-testers/skills/setup/SKILL.md+++ b/plugins/mobile-agent-testers/skills/setup/SKILL.md@@ -58,7 +58,7 @@ defaults in `.github/workflows/agent-testers.yml`):| `source_repo` | owner/name of the app repo (empty if the app is in the testers repo) || `ref` | branch or full SHA to test || `app_dir` | folder with package.json (`.` for most apps) |-| `app_id` | `expo.android.package` / `expo.ios.bundleIdentifier` in app.json, or `applicationId` in android/app/build.gradle and `PRODUCT_BUNDLE_IDENTIFIER` in the Xcode project |+| `app_id` | `expo.android.package` in app.json, or `applicationId` in android/app/build.gradle. One id is enough: if the iOS bundle id differs, it is read from the built app |If the app repo is private, point the user to the "Private repo" line of thetemplate README: they create a read-only access for that one repo and store itdiff --git a/scripts/android/run_agent.sh b/scripts/android/run_agent.shindex 04f84c0..8e93dde 100755--- a/scripts/android/run_agent.sh+++ b/scripts/android/run_agent.sh@@ -17,7 +17,12 @@ if [ "$(adb shell getprop persist.sys.locale | tr -d '\r')" != "$LOCALE" ]; thenadb shell "setprop persist.sys.locale $LOCALE; setprop ctl.restart zygote"; sleep 10; adb wait-for-devicefor i in $(seq 1 60); do [ "$(adb shell getprop sys.boot_completed | tr -d '\r')" = 1 ] && break; sleep 3; donefi-# 3. App + persona settings+# 3. App + persona settings. The package inside the APK wins over app_id+# (which may be the iOS bundle id)+AAPT2=$(ls "${ANDROID_HOME:-/usr/local/lib/android/sdk}"/build-tools/*/aapt2 2>/dev/null | sort -V | tail -1)+PKG=$([ -n "$AAPT2" ] && "$AAPT2" dump packagename app.apk 2>/dev/null | tr -d '\r')+if [ -n "$PKG" ] && [ "$PKG" != "$APP_ID" ]; then echo "Package read from the APK (differs from app_id)"; APP_ID=$PKG; fi+export APP_IDadb install -r -g app.apk || adb install -r app.apkadb shell settings put system font_scale "${FONT_SCALE:-1.0}"[ "${THEME:-light}" = dark ] && adb shell cmd uimode night yesdiff --git a/scripts/ios/run_agent.sh b/scripts/ios/run_agent.shindex 69f4e64..f5b94e6 100755--- a/scripts/ios/run_agent.sh+++ b/scripts/ios/run_agent.sh@@ -10,7 +10,13 @@ donexcrun simctl ui "$UDID" appearance "${THEME:-light}"xcrun simctl ui "$UDID" content_size "${TEXT_SIZE:-large}"xcrun simctl location "$UDID" set "$GEO" 2>/dev/null || true-xcrun simctl install "$UDID" "$(find app -maxdepth 2 -name '*.app' -type d | head -1)" || { echo "install failed"; exit 1; }+APP=$(find app -maxdepth 2 -name '*.app' -type d | head -1)+xcrun simctl install "$UDID" "$APP" || { echo "install failed"; exit 1; }+# The bundle id inside the app wins: it often differs from the Android package+# (a new Flutter app is com.example.myApp on iOS, com.example.my_app on Android)+BID=$(/usr/libexec/PlistBuddy -c 'Print :CFBundleIdentifier' "$APP/Info.plist" 2>/dev/null)+if [ -n "$BID" ] && [ "$BID" != "$APP_ID" ]; then echo "Bundle id read from the app (differs from app_id)"; APP_ID=$BID; fi+export APP_IDxcrun simctl launch "$UDID" "$APP_ID"; sleep 8# First capture stores the screen width in points for gesture.shpython3 scripts/ios/screen.py "$RUNNER_TEMP/warmup" 00 >/dev/null 2>&1 || true