Swift package

You can use qaml from XCUITest to automate tasks in natural language. Initialize the qaml client with your API key and then start executing commands:

import qaml

// Set the bundle ID of the app you'd like to test
let app = XCUIApplication(bundleIdentifier: "com.toyopagroup.picaboo")
app.launch()

let q = QamlClient(apiKey: "<API_KEY>", app: "<APP_INSTANCE>")

try await q.execute("tap the address bar")
try await q.execute("type camelqa.com")

Updating the package

Please be sure to update your package. To update, open XCode > File > Packages > Update to Latest Package Version.

XCode Cloud integration

If you have XCode cloud set up, these tests will run as part of your Xcode cloud actions. Apple offers iOS developers 25 hours of free device farm access per month. Read more about this on Xcode’s documentation.