Closed adrian-herscu closed 2 years ago
Opened https://stackoverflow.com/questions/74085088/running-gui-application-on-github-hosted-runner Need to try running Chrome/Firefox tests instead of the Windows Calculator test.
Running WinAppDriver tests fail with WebDriverException: Package was not found; see https://github.com/QA-Automation-Starter/qa-automation/actions/runs/3234841483/jobs/5298454871
Followed:
and tried:
- run: |
choco install -y autologon
autologon %USERNAME% $USERDOMAIN%
start cmd /c "C:\Program Files (x86)\Windows Application Driver\WinAppDriver.exe"
cd qa-testing-example
mvn install ^
-s %GITHUB_WORKSPACE%\settings.xml ^
-Pmode-build-fast,mode-build-quiet,environment-default,testing-windows,device-windows
shell: cmd
Opened:
Make it run:
For Windows application testing, a Windows runner is required. Since there is no hosted solution for WinAppDriver, we need to manage ourselves -- currently this does not work GitHub hosted Windows runners; see notes below.
As a starter, implemented Web browser tests using local ChromeDriver/GeckoDriver. This works on Windows, but fails on Ubuntu; see notes below.
A more resilient solution would be to get a free account onSauceLabs in order to run both Web browser and mobile tests without dealing with drivers, emulators, simulators, etc....