This is a Playwright API and Web testing framework designed to demonstrate playwright testing example. For test perpose i have use test website https://www.automationexercise.com/.
- Playwright API Testing
- Playwright Web Testing
- Download and install Node.js
- Download and install any Text Editor like Visual Code/Sublime/Brackets
- Go to Project root directory and install Dependency:
npm install
- All the dependencies from package.json would be installed in node_modules folder.
- Go to the Project root directory and run command:
npx playwright test tests/apiTest.spec.ts --workers=1 --reporter=html
- Go to the Project root directory and run command:
npx playwright test tests/webTesting.spec.ts --workers=1 --reporter=html
- Go to the Project root directory and run command:
npx playwright test tests/webTesting.spec.ts --reporter=html
- Go to the Project root directory:
./playwright-report/index.html