QA-Automation-Starter / qa-automation

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

add saucelabs configuration #168

Closed adrian-herscu closed 1 year ago

adrian-herscu commented 1 year ago

Current State

  1. SauceLabs credentials must be provided via commons.saucelabs.url in webdriver.properties file.
  2. Building on GitHub runs tests directly on configured Web browser (currently, local)

How to make it better

  1. SauceLabs credentials must be provided via GitHub Encrypted Secrets, then somehow, perhaps via OS environment variables, emebedded in required Java properties.
  2. Override existing profile, or define a new one, to make it run tests on SauceLabs
  3. While building, the tests should run on local Web browser as now, and on SauceLabs
  4. Finally, a link with anonymous access to SauceLabs' test results should be published in the generated JGiven Report for each Selenium session -- example: https://app.saucelabs.com/tests/54f911ee72654715a86a2b559e8111ac?auth=6ca46ff32f9334f681892400a7af9655
adrian-herscu commented 1 year ago

on-pull-request.yml -- generate-automation-project job runs the generated project which uses the local provider, hence will change the verify-for-jdk8 job to make it run on SauceLabs's Selenium.

adrian-herscu commented 1 year ago

see #170