Repository navigation
Closed
Labels
Description
Porting squish gui tests into appium with behave.
POC: #857
Docs:
- behave: https://behave.readthedocs.io/en/stable/gherkin/
- linux driver: https://community.kde.org/Selenium#Writing_Tests
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
@smoketag) 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
- Move feature file from
tst_***into its own suite insidefeatures/dir - Remove
@skiptag from the smoke test scenarios - Fix step definition and table if necessary (
⚠️ behave has different step param and table parsing) - Replace necessary element selector. Preference (In order):
BY.NAMEBY.CLASS_NAMEBY.XPATHBY.ACCESSIBILITY_ID(very long ids)
- Replace Squish API with appium
- Make the test scenario pass
- Make a PR targeting
test/port-to-appiumbranch
Tasks
- Identify smoke test scenarios (test(gui): tag smoke test scenarios #867)
- Enable scenarios (smoke scenarios):
- tst_activity (@prashant-gurung899)
- tst_addAccount (@saw-jan)
- tst_deleteFilesFolders (@anon-pradip)
- tst_editFiles (@anon-pradip)
- tst_loginLogout @anon-pradip test: port tst_loginLogout #877
- tst_moveFilesFolders @prashant-gurung899
- tst_removeAccountConnection (@prashant-gurung899)
- tst_spaces (@saw-jan)
- tst_syncing @prashant-gurung899
- Enable all test scenarios:
- tst_activity @Asmitapaudel
- tst_addAccount @Asmitapaudel
- tst_checkAlltabs
- tst_deleteFilesFolders @Asmitapaudel
- tst_editFiles @prashant-gurung899
- tst_loginLogout
- tst_moveFilesFolders
- tst_removeAccountConnection @prashant-gurung899
- tst_spaces @Asmitapaudel
- tst_syncing @prashant-gurung899 @Asmitapaudel
[ ] tst_vfs
- Test reports
- Run tests in CI
- Cleanup:
- delete obsolete files and folders (@saw-jan test: remove obsolete test files #894)
- envs.txt
- suite.conf
- shared/
- webUI/
- delete obsolete files and folders (@saw-jan test: remove obsolete test files #894)
Activity
m13v commentedon Apr 7, 2026
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.
m13v commentedon Apr 7, 2026
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
saw-jan commentedon Jul 6, 2026
finally done!