Skip to content

UI automation testing framework prepared for demo session

Notifications You must be signed in to change notification settings

dneprokos/playwright-test-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

playwright-test-demo

Playwright Image

Summary

  • UI automation testing framework designed with playwrite/test. Contains multiple projects cover different scenarios

Projects description

Prerequisite

  1. Node should be installed: https://nodejs.org/en/download
  2. Open root folder in CMD and type command "npm install" or "npm i"

How to run tests

  1. Navigate project you tests you want to run e.g "cd _project-test-automation-site-tests"
  2. There are several ways how you can run the tests
  • Run all tests from CMD/Terminal - "npx playwright test"
  • Run specific test from CMD/Terminal - "npx playwright test -g "<test_name>"
  • Open UI mode to run the tests from CMD/Terminal - "npx playwright test --ui"
  • Install "Playwright Test for VSCode" extension and select the tests you want to run

VS CODE Test Run Image

Note: Powershell script inside of each project runs specific test

Useful playwright commands

  1. Get version - "npx @playwright/test --version"
  2. Update to latest version - "npm install @playwright/test@latest"
  3. Download new browsers - "npx playwright install"
  4. Update to specific version - "npm install @playwright/test@1.26"
  5. Run plauwright UI mode - "npx playwright test --ui"

Note: A lot of the scripts available in package.json. Just run command "npm run <script_name>"

Run tests in docker container

Herokuapp project

  • Docker and docker-compose should be installed on the machine
  • Dockerfile and docker compose located in the root of the repo
  • On Windows, it is easier run PowerShell script "run-herokua-tests-docker.ps1"

About

UI automation testing framework prepared for demo session

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published