Playwright Test Automation Framework for RSAcademy
This repository contains an automated testing framework built with Playwright for both UI and API testing.
Directory structure
pw-rsacademy/
├── README.md
├── package.json
├── playwright.config.js
├── tests/
│ ├── api_tests/
│ │ ├── ....spec.js
│ ├── basic_tests/
│ │ ├── ....spec.js
│ └── utils/
│ └── ....js
└── .github/
└── workflows/
└── playwright-tests.yml
Setup
- Clone the repository
- Install dependencies:
npm ci && npx playwright install chromium
Running Tests
Execute all tests:
npx playwright test
Test Reports
- HTML reports are generated in the
playwright-report
directory - Test results are stored in the
test-results
directory
CI/CD
This project uses GitHub Actions for continuous integration. You can view the latest test execution reports here: GitHub Actions Reports
To view the latest test report:
- Select the latest workflow run from the Actions tab
- Download the playwright-report artifact
- Extract the downloaded zip file
- Run the following command to view the report:
npx playwright show-report <path-to-extracted-folder>
The workflow runs all Playwright tests on push and pull request events, ensuring code quality and test coverage.