pw-RSAcademy

This repository contains comprehensive automation scripts developed during tPlaywright JS/TS Automation Testing from Scratch & Framework" course by Rahul Shetty.

View project on GitHub

Playwright Test Automation Framework for RSAcademy

Playwright Tests

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

  1. Clone the repository
  2. 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:

  1. Select the latest workflow run from the Actions tab
  2. Download the playwright-report artifact
  3. Extract the downloaded zip file
  4. 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.