Private Device Farm
The Private Cloud Listener is an npm package installed on your Mac Mini/Windows machine. It authenticates with QApilot, receives test jobs, and controls the attached devices. Currently this is support for android devices only.

Prerequisites
Before starting setup, confirm the following are in place.
Hardware & OS
Software
QApilot Access
Devices
Setup
Step 1 - Generate credentials in QApilot (Tenent Admin)
Sign in to QApilot and navigate to Settings → Private Device Farm.
Click Add New Listener.
Enter a name for this listener (e.g.
mac-mini-lab-01).Copy the Listener Token shown - this is only displayed once.
Note your Username, Password, and the Server URL for your tenant.
Store the Listener Token securely. It cannot be retrieved after this step. If lost, generate a new one from the same Settings page.
Credential reference
--username
Your QApilot account email
--password
Your QApilot account password
--token
Listener token generated in this step
--server
Your tenant API URL (e.g. https://api.qapilot.io/)
Step 2 - Start the Appium server
Run the following command on the same Mac Mini where the listener is installed:
Configuration reference
--port
4723
Port Appium listens on
--allow-insecure
chromedriver_autodownload
Auto-downloads matching ChromeDriver
--allow-insecure
adb_shell
Allows ADB shell commands for device control
--base-path
/wd/hub
Standard WebDriver base path
--allow-cors
—
Allows cross-origin requests from QApilot
Step 3 - Install the Private Cloud Listener
Install (on Mac Mini)
Upgrade (existing installations)
Start the listener
When the listener starts successfully, it will appear as Online in Settings → Private Device Farm in QApilot.
Step 4 - Assign devices in QApilot
Go to Settings → Private Device Farm in QApilot.
Confirm your listener shows as Online.
Devices detected by the listener will appear in the device list.
Assign each device a display name and set its state to Active.
Step 5 - Configure app and test management
Upload your
.apkfile via App Management in QApilot.Open your test plan and assign it to one or more private devices.
Set the execution environment to Private Device Farm.
Save and run a test to verify the end-to-end connection.
Validation Checklist
Run through these checks after completing setup to confirm everything is working correctly.
Security Considerations
The Listener Token grants access to your QApilot tenant. Treat it like a password and store it in a secrets manager, not in plain text or source control.
Devices on the private farm are isolated to your tenant and are not shared with other QApilot users.
Rotate listener tokens periodically via Settings → Private Device Farm.
Restrict Mac Mini access to authorised personnel only. Anyone with machine access can view running Appium sessions.
Use a dedicated QApilot service account for the listener rather than a personal account.
Troubleshooting
Listener shows as Offline
Check that the listener process is running on the Mac Mini. Verify the --server URL and credentials are correct. Confirm outbound HTTPS access to api.qapilot.io is not blocked by a firewall.
Devices not appearing in QApilot
Run adb devices on the Mac Mini and confirm devices show as authorized. Restart the ADB server with adb kill-server && adb start-server, then restart the listener.
Appium fails to start
Verify ANDROID_HOME is set and that adb is available in your PATH. Ensure no other process is using the specific port 4723.
Tests fail immediately with a connection error
Confirm Appium is running and the base path is set to /wd/hub. Check that the correct device UDID is being passed to the test configuration.
Last updated