Skip to content

SitamJana/Fenixpyre-TestAutomation

Repository files navigation

Fenixpyre Test Automation

Overview

This repository houses the automated test suite for the Fenixpyre website, constructed using the Playwright framework. It leverages the Page Object Model (POM) pattern for enhanced test maintainability, generates HTML reports for comprehensive test results, and utilizes Winston for robust logging.

Key Features

  • Playwright: Drives browser automation for reliable and cross-platform testing.
  • Page Object Model: Separates page logic from test cases for improved code organization.
  • HTML Reporting: Generates detailed test reports for analysis and debugging.
  • Winston Logging: Provides granular control over test execution logging.

Getting Started

  1. Clone the repository:
    git clone https://github.com/SitamJana/Fenixpyre-TestAutomation.git
  2. Install dependencies:
    cd Fenixpyre-TestAutomation
    npm init playwright@latest
    npm install
  3. Run tests:
    npm test

Test runs by default in Parallel mode. Test results will be generated in the playwright-report directory.

  1. View test reports:
    npm run report

Project Structure

Fenixpyre-TestAutomation/
├── playwright.config.js
├── page-objects/
│   ├── common-page.js
│   ├── sign-in-page.js
│   ├── file-list-page.js
├── tests/
│   ├── file-list/
|   |   ├── file-actions.spec.js
│   |   ├── file-search.spec.js
│   ├── sign-in.spec.js
├── helpers/
│   ├── email-helper.js
│   ├── log-helper.js
│   ├── utility-helper.js
├── playwright-report/
├── logs/
├── package.json
└── README.md

Usage

  • Page Objects: Encapsulate page elements and interactions.
  • Test Cases: Write tests using the Page Objects, focusing on test logic.
  • Configuration: Customize test behavior through configuration file (Playwright).
  • Reporting: Generate HTML reports for detailed test results.
  • Logging: Use Winston for comprehensive logging of test execution.

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your changes.
  3. Commit your changes with clear commit messages.
  4. Push your branch to your fork.
  5. Create a pull request.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published