QA-Automation-Starter / qa-automation

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

automatic and interactive creation of new automation starter projects #242

Open adrian-herscu opened 6 months ago

adrian-herscu commented 6 months ago

Current State Currenly, creating an automation project comprises several manual steps:

  1. running the qa-testing-archetype maven archetype as desacribed in https://qa-automation-starter.aherscu.dev/qa-testing-parent/qa-testing-archetype/index.html
  2. initiating a git repository for the generated project directory
  3. publishing it into a remote github repository

How to make it better Provide a Create New Project somewhere on the landing page to run above steps while prompting the user for groupId, artifactId and version. The newly generated repository should initiate a preconfigured codespace environment with all project's required features for VSCode and for running the automation examples, e.g. Selenium, Appium, RabbitMQ, etc.

adrian-herscu commented 6 months ago

https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration/introduction-to-dev-containers https://docs.github.com/en/codespaces/developing-in-a-codespace/creating-a-codespace-from-a-template https://docs.github.com/en/codespaces/prebuilding-your-codespaces/about-github-codespaces-prebuilds

adrian-herscu commented 6 months ago

Selenium tests cannot run locally on a Codespaces instance because it does not support installation of Googe Chrome https://code.visualstudio.com/docs/remote/codespaces

Anyway, it would be useless, because developing such tests requires openning DevTools and experimenting with XPath expressions and seeing how a test runs, or doesn't, is also important.

Still, it is possible to run Selenium tests from Codespaces in remote mode, e.g. against a SauceLabs account, or have a Grid running on local machine exposed via TailScale (or some other VPN -- see https://docs.github.com/en/codespaces/developing-in-a-codespace/connecting-to-a-private-network)

adrian-herscu commented 6 months ago

Appears that Playright is supported... https://nikolay-dev.medium.com/how-to-run-playwright-tests-in-github-codespaces-5ac5dcd1babd

adrian-herscu commented 6 months ago

Openning a Codespace in Jetbrains Gateway fails: https://github.com/github/codespaces-jetbrains-feedback/issues/118

adrian-herscu commented 6 months ago

For faster docker builds -- https://www.docker.com/products/build-cloud/

and apply for a license here: https://www.docker.com/community/open-source/application/

adrian-herscu commented 5 months ago

depends on #246