Autonomy Docs
Migrate

Appium

Convert Appium mobile suites in Java, Python, or JavaScript to Autonomy iOS and Android test cases. Drop the capabilities, drivers, and locators.

Appium tests are Selenium tests with device capabilities. Autonomy runs the migrated case on iOS simulators and Android emulators using the uploaded build; see Mobile for artifact setup.

Prompt

Paste this into a coding agent connected to the Autonomy MCP server from inside the repository:

Codetext
Migrate the Appium tests in this repository to Autonomy.
For each test: read it, then create one Autonomy Test Case with autonomy_test_case_create named after the test title.
Convert selectors into plain-language descriptions of the control. Keep every asserted value exactly as written.
Replace hard-coded credentials with agent-chosen fill values and configuration with environment values.
Set the Test Case platform to ios or android from the Appium capabilities. Treat accessibility-id / XPath locators as described targets. Drop waits, retries, and framework fixtures. List existing Test Cases first and skip any that already cover the journey.
Report a table of source test -> created Test Case ID when done.

Mapping notes

  • desiredCapabilities (platformName, app) become the Test Case platform and an uploaded artifact on the Environment.
  • MobileBy.AccessibilityId / iOS class chains / UiAutomator selectors become described targets.
  • driver.resetApp() / permission dialogs become Preconditions on the Test Case.
  • Gesture helpers (TouchAction, swipe) become Scroll or Tap/Click steps with the intent stated.

See the migration overview for the full construct-by-construct mapping.

On this page