This project contains UI and API automation scripts developed using Playwright with JavaScript.
- UI automation using Playwright
- API automation using Playwright Request Context
- Page Object Model (POM)
- Test data stored in JSON
- Environment variable support using .env
- HTML test report
AutomationTask
│
├── pages
├── tests
├── testData
├── screenshots
├── results.txt
├── playwright.config.js
├── package.json
└── .env
npm installInstall Playwright browsers:
npx playwright installCreate a .env file in the project root.
Example:
REQRES_API_KEY=your_api_key
Run all tests
npx playwright testRun UI tests
npx playwright test tests/uitest.spec.jsRun API tests
npx playwright test tests/api.spec.jsView HTML report
npx playwright show-report- JavaScript
- Playwright
- Node.js
- Dotenv
This project was created for learning Playwright automation concepts including UI testing, API testing and Page Object Model implementation.