QA-Automation-Starter / qa-automation

QA automation utilities and project generator
https://qa-automation-starter.aherscu.dev
Other
6 stars 4 forks source link

github action to build and run gui tests #24

Closed adrian-herscu closed 2 years ago

adrian-herscu commented 2 years ago

Make it run:

  1. Web browser tests
  2. Mobile tests
  3. Windows application tests

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....

adrian-herscu commented 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.

adrian-herscu commented 2 years ago

Opened also https://github.com/orgs/community/discussions/36704

adrian-herscu commented 2 years ago

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: