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.yourbundleID")
app.launch()

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

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

Updating the package

Please be sure to update your package. To update, locate qaml on the left side menu > right click > Update Package.

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.