Skip to content

Mahbub091/playwright_TS_Project

 
 

Repository files navigation

Streamlyne FundFit Test

Build Status Node Version TypeScript

An interactive test automation project using Playwright and TypeScript.

Overview

This project is designed to automate testing for the Streamlyne FundFit application. It leverages the power of Playwright, a modern end-to-end testing framework, combined with TypeScript for type safety and maintainability.

Features

  • Cross-browser testing (Chromium, Firefox, WebKit)
  • Headless and headed execution modes
  • Parallel test execution
  • Detailed test reports
  • Easy-to-maintain test structure

Prerequisites

Before you begin, ensure you have the following installed:

Installation

  1. Clone the repository:

    ```bash
    git clone https://github.com/your-username/streamlyne-fundfit-test.git
    cd streamlyne-fundfit-test
    ```
    
  2. Install dependencies: bash npm install

Usage

Running Tests

To execute all tests in headless mode:

npx playwright test

To run tests in a specific browser:

npx playwright test --project=chromium
npx playwright test --project=firefox
npx playwright test --project=webkit

To run tests in headed mode:

npx playwright test --headed

Generating Reports

After running tests, generate an HTML report:

npm run allure:serve

Debugging Tests

Use the Playwright Inspector for debugging:

npx playwright test --debug

Project Structure

streamlyne-fundfit-test/
├── pageObjectModel/     # Page Resources with Page Selectors
├── tests/               # Test files
├── testData/            # Storing test data on page resource basis
├── utilities/           # Resource needed for test management with custom action class
├── reports/             # Storing log and reporting resources
├── playwright.config.ts # Playwright configuration
├── .env                 # Storing Credentials and Sensitive information
├── package.json         # Project metadata and dependencies
└── README.md            # Project documentation

Tools and Technologies

  • Playwright: End-to-end testing framework
  • TypeScript: Strongly typed programming language
  • Jest: Test runner (integrated with Playwright)
  • ESLint: Linting tool for code quality
  • Prettier: Code formatter
  • Allure Reporting: Test Reporting

Contributing

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/your-feature).
  3. Commit your changes (git commit -m 'Add your feature'). For questions or support, please contact jvalle@streamlyne.com.

About

creating playwright hybrid framework using Typescript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •