Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/imshaiknasir/pw-rsacademy

This repository contains comprehensive automation scripts developed during tPlaywright JS/TS Automation Testing from Scratch & Framework" course by Rahul Shetty.
https://github.com/imshaiknasir/pw-rsacademy

playwright playwright-javascript playwright-tests rahulshetty udemy

Last synced: 15 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# Playwright Test Automation Framework for [RSAcademy](https://www.udemy.com/course/playwright-tutorials-automation-testing/)

[![Playwright Tests](https://github.com/imshaiknasir/pw-RSAcademy/actions/workflows/playwright-tests.yml/badge.svg)](https://github.com/imshaiknasir/pw-RSAcademy/actions)

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:
```bash
npm ci && npx playwright install chromium
```

## Running Tests

Execute all tests:
```bash
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](https://github.com/imshaiknasir/pw-RSAcademy/actions)

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:
```bash
npx playwright show-report
```

The workflow runs all Playwright tests on push and pull request events, ensuring code quality and test coverage.