AI AGENT · NEW
Write mobile tests
Ask your agent for an Android or iOS test. It drives a device, emulator or simulator through your Appium server and writes page objects and tests.
Before you start
- An Appium server and a connected device, emulator or simulator; see Install.
- The app file: an
.apkfor Android, an.appor.ipafor iOS. - A BELLATRIX C# or Java mobile test project, set up with the mobile skills:
bellatrix init --agent claude --language csharp --domains mobile What to say to your agent
- Write a BELLATRIX Android test for the login screen of C:\apks\your-app.apk.
- Add a swipe test for the onboarding carousel.
- Run the same test on iOS.
What you will see
- The agent installs and starts the app on the device through Appium.
- It performs each step: taps, typing, swipes and scrolling.
- Its locator specialist picks a stable locator for each element.
- It writes or extends the screen's page object and the test, then builds the project.
- It closes the session and asks you to run the test.
Where the files end up
In your mobile test project: one folder per screen under Pages/, with the screen's elements, actions and assertions, and the tests under Tests/.
Tips
- Ask your developers for accessibility IDs. The agent prefers them, then resource IDs, and uses XPath only as a last resort.
- Appium and WinAppDriver share port 4723 by default. Run one at a time.
- Mobile tests need C# or Java. TypeScript covers web only.
Under the hood
- The agent calls
bellatrix mobile start-session --platform android|ios --app <path>, then verbs such asclick,swipeandscroll-to-element. - A locator starting with
/or(/is XPath; anything else is an accessibility ID. - The CLI never starts Appium; it connects to
http://127.0.0.1:4723unless told otherwise (--appium-url). - More: How the agent works, mobile commands.