Skip to content

[QA] GUI automation tests in appium #861

Closed

Description

@saw-jan

Porting squish gui tests into appium with behave.

POC: #857

Docs:

Things to consider:

  • restructure features, steps and helpers
  • move step defs to test/gui/steps
  • convert step defs and data tables into behave format
  • replace squish APIs with appium or custom ones
  • setup hooks and configs
  • identify smoke tests (add @smoke tag) and fix them

Replace squish API with appium

Appium APIs: https://appium.github.io/appium.io/docs/en/about-appium/api
Selector format:

from appium.webdriver.common.appiumby import AppiumBy as By

class LoginWizard:
  SOME_ELEMENT = SimpleNamespace(by=By.NAME, selector="Login")

💡 Guidelines for Porting GUI Tests

  1. Move feature file from tst_*** into its own suite inside features/ dir
  2. Remove @skip tag from the smoke test scenarios
  3. Fix step definition and table if necessary (⚠️ behave has different step param and table parsing)
  4. Replace necessary element selector. Preference (In order):
    • BY.NAME
    • BY.CLASS_NAME
    • BY.XPATH
    • BY.ACCESSIBILITY_ID (very long ids)
  5. Replace Squish API with appium
  6. Make the test scenario pass
  7. Make a PR targeting test/port-to-appium branch

Tasks

Activity

  1. added theissue type on Apr 7, 2026
  2. self-assigned this
    on Apr 7, 2026
  3. m13v commented on Apr 7, 2026

    @m13v

    migrating from Squish to Appium with Behave is a big lift but worth it for the open source tooling and CI flexibility. the trickiest part of the migration is translating Squish's object map and waitForObject calls into Appium's element finding and explicit waits. Squish has very sophisticated object recognition that considers both accessibility properties and visual position, while Appium relies more on accessibility hierarchy alone. expect some tests to need completely different locator strategies rather than direct translations.

    for the step definitions, keep the Behave steps high-level (Given I am logged in, When I sync a file) and push the Squish-to-Appium translation into helper modules. that way if the locator strategy changes again you only update the helpers, not every step definition. also for the smoke test identification, prioritize the tst_loginLogout and tst_syncing suites first since they cover the critical path and will surface the biggest Appium integration issues early.

  4. m13v commented on Apr 7, 2026

    @m13v

    for the element finding and locator strategy translation from Squish to accessibility-based approaches, we built a cross-platform desktop automation framework that uses the same accessibility tree approach as Appium. the element targeting logic with multi-strategy fallback chains: https://github.com/mediar-ai/terminator/blob/main/crates/terminator/src/element.rs and the core automation library: https://github.com/mediar-ai/terminator/blob/main/crates/terminator/src/lib.rs

  5. saw-jan commented on Jul 6, 2026

    @saw-jan
    ContributorAuthor

    finally done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions