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

https://github.com/caustria0202/registration-functionality-playwright

Automated registration testing with Playwright and POM.
https://github.com/caustria0202/registration-functionality-playwright

allure-report functional-testing github-actions javascript page-object-model playwright

Last synced: 6 months ago
JSON representation

Automated registration testing with Playwright and POM.

Awesome Lists containing this project

README

          

# Registration Functionality Test with Playwright

This project tests the registration functionality of a web application using **Playwright** and the **Page Object Model (POM)** design pattern.

## ๐ŸŒŸ Features

- โœ… Developed using Playwright
- โœ… Implements Page Object Model (POM) for better scalability and maintainability
- โœ… Uses fixtures to manage test state and dependencies
- โœ… Includes validation for positive and negative test cases
- โœ… Handles error messaging and edge cases

## ๐Ÿ› ๏ธ Test Scenarios

- โœ… **Successful Registration**
- ๐Ÿšซ **Invalid Email with Valid Mobile Number**
- ๐Ÿšซ **Valid Email with Invalid Mobile Number**
- ๐Ÿšซ **Empty Email and Mobile Number**
- ๐Ÿšซ **Special Characters in Email and Mobile Number**
- ๐Ÿšซ **Empty Business Information**
- ๐Ÿšซ **Special Characters in Business Name**
- ๐Ÿšซ **Missing Agreement to Terms and Privacy Policy**

## ๐Ÿงช Test Framework

- **Playwright** โ€“ Browser automation framework
- **JavaScript** โ€“ Test scripting language
- **GitHub Actions** โ€“ CI/CD integration

## ๐Ÿš€ Installation & Setup

### Prerequisites

Ensure you have the following installed:

- **Node.js** (latest LTS version)
- **npm** (included with Node.js)
- **Git** (for version control)

### Installation Steps

1. **Clone the Repository**

```sh
git clone https://github.com/CAustria0202/Registration-Functionality-Playwright.git
```

2. **Install Dependencies**

```sh
npm install -D @playwright/test
```

3. **Install Playwright Browsers**

```sh
npx playwright install --with-deps
```

4. **Run Tests**

```sh
npx playwright test
```

5. **Generate Allure Report (Optional)**

```sh
npx playwright test --reporter=allure-playwright
allure generate allure-results --clean -o allure-report
```

6. **View Allure Report**

```sh
allure serve allure-results
```

## ๐Ÿค– Running Tests in CI/CD (GitHub Actions)

This project includes **GitHub Actions** workflow to run Playwright tests automatically.

1. Push your code to GitHub.
2. Navigate to **Actions** tab in your repository.
3. Select the latest workflow run to view test results.