ShaftHQ / SHAFT_ENGINE

SHAFT is a unified test automation engine for web, mobile, API, CLI, database, and desktop e2e testing. Powered by best-in-class frameworks, SHAFT provides a wizard-like syntax to drive your automation efficiently, maximize your ROI, and minimize your learning curve with no limitations! Stop reinventing the wheel! Upgrade now!
https://shafthq.github.io/
MIT License
324 stars 123 forks source link

[Bug]: No Appium session started for most recent SHAFT version #1638

Closed rsaveanu-salt closed 2 months ago

rsaveanu-salt commented 2 months ago

Describe the bug

When running an automated test on a real mobile device locally or in grid, no Appium session is created: confirmed by the Appium logs.

Link to SHAFT_Engine Console logs

[INFO] Setting discrete logging to: 'false' | com.shaft.tools.io.ReportManager - main - 05:28:29 PM [INFO] Initializing the WebDriver. | salt.bank.automation.tests.mobile.MobileDriver - main - 05:28:29 PM [INFO] Setting "autoMaximizeBrowserWindow" property with "false". | com.shaft.tools.io.ReportManager - main - 05:28:29 PM [INFO] Setting "screenshotParams_screenshotType" property with "VIEWPORT". | com.shaft.tools.io.ReportManager - main - 05:28:29 PM [INFO] Attempting to run remotely on: "ANDROID | http://127.0.0.1:4723/". | com.shaft.tools.io.ReportManager - main - 05:28:29 PM [INFO] Capabilities {appium:allowTestPackages: true, appium:app: /Users/robert.saveanu/Downl..., appium:appWaitActivity: *, appium:autoAcceptAlerts: true, appium:autoGrantPermissions: true, appium:automationName: uiautomator2, appium:clearDeviceLogsOnStart: true, appium:disableWindowAnimation: true, appium:enableWebviewDetailsCollection: true, appium:enforceAppInstall: false, appium:forceAppLaunch: true, appium:fullReset: false, appium:ignoreHiddenApiPolicyError: true, appium:isHeadless: true, appium:noReset: true, appium:noSign: true, appium:platformVersion: 14.0, appium:printPageSourceOnFindFailure: true, appium:shouldTerminateApp: true, appium:showChromedriverLog: true, language: en, locale: US, unlockKey: 1988, unlockType: pin} | com.shaft.tools.io.ReportManager - main - 05:28:29 PM [INFO] Attempting to instantiate remote driver instance for up to 10min. | com.shaft.tools.io.ReportManager - main - 05:28:29 PM [INFO] Loaded OpenCV "opencv_java490". | com.shaft.tools.io.ReportManager - - 05:28:30 PM [INFO] Engine Update check done for the day. 👍 | com.shaft.tools.io.ReportManager - - 05:28:32 PM

Environment

  1. SHAFT_Engine version: 8.2.20240611
  2. Last SHAFT_Engine version that did not exhibit the issue (if applicable): 8.2.20240523

To Reproduce

Steps to reproduce the behavior: Try running any test

MohabMohie commented 2 months ago

Initial investigation shows that changes from Appium side are breaking some desired capabilities in favor of os specific options classes.

Further investigation is needed, upgrading the implementation to use options is recommended.