Skip to content

Template repository for WDIO framework; Browsers: [ Chrome, Firfox, MsEdge ]; Plugins: [ Dockcer, Selenium-standalone, Cross-env ]

Notifications You must be signed in to change notification settings

ValeriiMandryka/Boilerplate-WDIO-Allure-Docker-StandAlone

Repository files navigation

WDIO_Docker_crossBrowsersTest_AllureReport

Template repository for project based on WDIO framefork with configurated GitHub actions and Allure report. Can be used for auto testing on Chrome/Firefox/Edge browsers with Allure Report.

Envoirment for succesfull test runung:

Node.js VSC

Envoirment to run in Docker:

Docker

Plugins:

  1. selenium-standalon
  2. allure-reporter
  3. docker
  4. cross-env

Steps to install project

1. Run command in VSC:

https://github.com/ValeriiMandryka/Boilerplate-WDIO-Allure-Docker-StandAlone.git

2. Into root of Project run commands:

npm install

3. Run tests commands

3.1 run tests in headless mode on browsers[Chrome,Firefox,Edge]

    npm run crossbrowser:test:headless  

3.2 run tests in Chrome headless mode

    npm run chrome:headless   

3.3 run tests in Chrome headed mode

    npm run chrome:ui 

3.4 run tests in Firefox headless mode

   npm run firefox:headless

3.5 run tests in Firefox headed mode

   npm run firefox:ui  

3.6 run tests in msEdge headless mode

   npm run msEdge:headless

3.7 run tests in msEdge headed mode

   npm run msEdge:ui 

3.8 - runs tests using envoirments of Chrome browser

   npm run cross.env:chrome 

3.9 -runs tests using envoirments of Firefox browser

   npm run cross.env:firefox

4. Allure report:

4.1 To generate Allure report arun follow command after the test that you chose for run

npm run generate:allure-report

4.2 To open Allure report, run command:

npm run open:allure-report

5. To run test in Docker:

  1. Lounch Docker
  2. Open project in VSC
  3. Split terminal
  4. In first terminal to run Containers for tests run:
npm run docker:composeruner:exit
  1. In second terminal to run tests run:
npm run docker:crossbrowser
  1. To stop containers run:
Docker compose down

About

Template repository for WDIO framework; Browsers: [ Chrome, Firfox, MsEdge ]; Plugins: [ Dockcer, Selenium-standalone, Cross-env ]

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published