UNPKG

qajin

Version:

Playwright Test Runner Library

70 lines (47 loc) 1.37 kB
chrome --remote-debugging-port=9222 --user-data-dir="C:\Users\At\AppData\Local\Google\Chrome\User Data\Default\TestUser" #### Installation Install the dependencies and devDependencies to run the test. - Clone (OR) Download this repo as zip folder on to your local machine - Navigate to project's directory on terminal and run the following commands: Clone the repository ```bash git clone ``` Install dependencies ```bash npm install npx playwright install ``` #### Run application Run tests in Parallel chrome ```bash npm run test:chrome - For tests only on chrome browser ``` Run tests in Parallel firefox ```bash npm run test:firefox - For tests only on firefox browser ``` Run tests in Parallel safari ```bash npm run test:safari - For tests only on safari browser ``` Run tests in Parallel edge ```bash npm run test:edge - For tests only on edge browser ``` Run tests in Parallel on all browsers (chrome, safari, edge and firefox) ```bash npm run test - For tests only on all browsers ``` #### Playwright Test Report ```bash Html-test-report : npm run test:chrome (OR) npm run test:edge (OR) npm run html-report ``` #### Allure Test Report ```bash Allure-test-report : 1. npm run allure:clean 2. npm run test:firefox (OR) npm run test:safari 3. npm run allure:report ```