Playwright Test Automation Project
This repository contains automated tests using Playwright with JavaScript for a Test Project on Login functionality.
Prerequisites:
• Node.js 14 or higher
• npm (Node Package Manager)
Installation:
-
Clone the repository: git clone https://github.com/MarianIrudayanathan/PlaywrightTest.git
-
Install dependencies: yarn install
-
Install Playwright/test: yarn create playwright
Running Tests:
Run all tests: npx playwright test
Run tests in headed mode: npx playwright test login.spec.js --headed
Run tests in a specific browser: npx playwright test –project=chromium
Run a specific test file: npx playwright test login.spec.js
Run tests in debug mode: npx playwright test --debug
Test Reports:
After test execution, HTML report will be generated in: playwright-report/index.html
To open the last HTML report: npx playwright show-report
Configuration:
The playwright.config.js file contains various settings:
• Browsers configuration
• Retry settings
• Parallel execution settings
Contributing:
-
Fork the repository
-
Create your feature branch
-
Commit your changes
-
Push to the branch
-
Create a Pull Request