Enhance android test reliability#3
Enhance android test reliability#3sauceadam0000345 wants to merge 5 commits intosaucelabs-training:mainfrom
Conversation
|
If you want to make this work properly then please:
|
- Update WebdriverIO from 7.40.0 to 9.18.1 (latest version) - Update Android configuration to use Android 16.0 consistently - Request Appium 2.0.0 on Sauce Labs for better stability - Add Appium 2.x specific capabilities for improved reliability - Maintain robust click strategies for cross-environment compatibility - Address maintainer feedback about using modern, supported versions
|
Thank you for the valuable feedback! I've updated the PR to address what you said: ✅ Updated WebdriverIO from 7.40.0 to 9.18.1 (latest version) The original robust click strategies remain in place to ensure cross-environment compatibility, but now the project uses modern, supported versions throughout. This should provide both immediate stability and long-term maintainability. Tests are now passing reliably on both local (Appium 2.19.0) and Sauce Labs (Appium 2.0.0) environments with the updated stack. |
|
And why use the Having said that, why use the robust clicks? |
|
Regarding the robust clicks: I initially implemented multiple fallback strategies when tests were failing intermittently on Sauce Labs with Appium 1.22.1. With the update to Appium 2.0.0, these should be less necessary, but I kept them as a safety net for cross-environment compatibility. If you prefer, I can simplify the click strategies now that we're using modern Appium versions. Regarding the demo app: You're absolutely right - this was part of my learning process to get things working. Eventually I can update to a more current app, but the focus was on demonstrating the testing framework and addressing the version compatibility issues. |
|
I understand regarding the learning process. What is the goal of the project now, to show it to customers? IF so, then please kill the project because there are "bad practices" in it. It's too old. If it's to learn, then also please kill the project or make it private due to the bad practices 😅 |
|
Not the intention to show to customers, no Will work on making it private/kill project |
|
I think it might be wise to do it for all project that I touched in the past, so also the demo-js projects |
|
@wswebcreation ok thanks for the heads up and also for the super fast responses! |
Enhanced Android Test Reliability
This PR improves the Android test suite with robust click strategies and Sauce Labs compatibility fixes.
�� Key Improvements:
noReset: false,fullReset: true) and replaced unsupportedmobile: clickGesturewith UiScrollable fallback-Updated README: Pointing to new docs for app management
🐛 Issues Fixed:
✅ Testing Results:
📁 Files Changed:
test/android.spec.ts- Enhanced test with robust click strategiesconfigs/wdio.android.sauce.emu.conf.ts- Fixed app reset configuration