--- name: run-automation-suite description: Run local Appium test scripts against Kobiton devices. Guides you through app upload, device selection, script capability parsing, and local execution. --- ## Workflow ### 1. Identify the app **IMPORTANT: Always ask the user this question, even if they already provided an app file path. Do NOT skip ahead or start uploading automatically.** Ask the user: > "Would you like to:" > > 1. Upload a new app build > 2. Use an existing app from Kobiton Store or a provided URL Wait for their response before proceeding. Do not call any upload or app-related tools until the user responds. **If uploading a new app:** Look for .apk, .ipa, .zip files in the project context, or ask the user for the file path. Upload via `uploadAppToStore` (permanent, visible in app repository). This is a three-step process: call the tool to get a pre-signed URL, upload the file via PUT, then confirm the upload. **If reusing an existing app:** Check `appium:app` field of capabilities in the test script. Call `listApps` with that app version as keywork to check uploaded or not. Let the user pick the version to use (e.g., `kobiton-store:v72107`) if needed ### 2. Select a device Ask the user which device or platform to target. Call `listDevices` with the relevant platform filter to show available options. If the user has a specific device in mind, confirm its availability with `getDeviceStatus`. Reserve the device with `reserveDevice` if needed. ### 3. Identify script & parse capabilities Ask the user for the path to their local Appium test script. Detect the language and runtime from the file extension: | Extension | Runtime | Command | |-----------|---------|---------| | `.js` | Node.js | `node