Giter VIP home page Giter VIP logo

web-app-test-suite's Introduction

Project Title

This project is a collection of end-to-end tests using Playwright.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Node.js (LTS version recommended) npm (comes with Node.js)

Cloning

To clone the project, run the following command in your terminal:

git clone https://github.com/tracy8/web-app-test-suite.git

Installation

Navigate to the project directory and install the dependencies:

cd web-app-test-suite
npm ci

Running Tests

To run the tests, use the following command:

npm run e2e

To run the tests with UI, use the following command:

Tools Used

Playwright: Playwright is a Node.js library to automate Chromium, Firefox, and WebKit with a single API. It was chosen for its ability to handle modern web app features, its speed, and its reliability.

  • @playwright/test: This is the test runner provided by Playwright. It was chosen for its integration with Playwright, its features tailored for end-to-end testing, and its configurability.

  • Node.js: Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. It was chosen for its wide usage, support for modern JavaScript features, and its performance. Why Playwright

  • Playwright was chosen for this project due to its ability to automate tests for all modern web browsers using a single API. It supports all browser features and is capable of simulating user interactions with high precision. It also provides excellent support for handling asynchronous behavior, making it ideal for testing modern web applications.

Challenges Encountered:

  • Multiple Applications: For this end-to-end testing project, we had to utilize different applications to cover all the test cases. This was due to the difficulty in finding a single application that encompassed all the use cases we intended to test.

  • Load Time Variability: The applications used for testing are publicly accessible projects. At times, these applications experience high traffic, resulting in slower load times. Occasionally, the load times exceeded the 30s timeout threshold set for our tests, necessitating the re-execution of some tests.

web-app-test-suite's People

Contributors

tracy8 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.