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.
- Host: GitHub
- URL: https://github.com/caustria0202/registration-functionality-playwright
- Owner: CAustria0202
- Created: 2025-03-20T11:25:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-18T08:42:26.000Z (11 months ago)
- Last Synced: 2025-05-18T09:32:12.689Z (11 months ago)
- Topics: allure-report, functional-testing, github-actions, javascript, page-object-model, playwright
- Language: JavaScript
- Homepage: https://caustria0202.github.io/Simple-Registration-Page/
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.