Giter VIP home page Giter VIP logo

cypress-automation-test's Introduction

Technical Documentation

Introduction

Welcome to the documentation for the cypress-automation-test repository. This documentation provides information on how to install, project structure, test cases, and how to run the test. cypress-automation-test built with JavaScript (JS) that follows the Page Object Model (POM) design pattern to implement the UI tests for Autobahn SignUp Test.

Table of Contents

  1. Prerequisites
  2. Installation
  3. Project Sturcture
  4. Test Cases
  5. Running the Tests

Prerequisites

Before running the tests, make sure you have the following installed:

Installation

  1. Clone this repository

  2. Navigate to the project directory:

$ cd cypress-autoamtion-test
  1. Install the dependencies:
$ npm install

Project Structure

The project structure of cypress-automation-test is as follows:

cypress-automation-test/
│
├── cypress/
│   ├── e2e/
│   │   ├── test.spec.js
│   │   └── ...
│   ├── fixtures/
│   │   └── example.json
│   ├── pages/
│   │   ├── pageobject.js
│   │   └── ...
│   ├── support/
│       └── commands.js
│       └── e2e.js
│  
├── cypress.config.json
├── package-lock.json
├── package.json
└── README.md

Test Cases

Test cases covering positive and negative test scenario to ensure the Autobahn Sign Up functionality. Below are some of the test cases included:

  1. Signs up using a temporary email

    • Verify that users can sign up with valid email and password.
    • Verify that user can input their details information
    • Verify that the "Sign Up" button is clickable after all mandatory field inputed
  2. Sign up with empty email

    • Verify that users can not sign up with empty email.
    • Verify error message on the email field.
  3. Sign up with empty password

    • Verify that users can not sign up with empty password.
    • Verify error message on the password field.
  4. Sign up with invalid email format

    • Verify that users can not sign up with invalid email format.
    • Verify error message on the email field.
    • Verify that the "Sign Up" button is disabled
  5. Sign up with invalid password format

    • Verify that users can not sign up with invalid password format.
    • Verify error message on the password field.
    • Verify that the "Sign Up" button is disabled
  6. Sign up with empty data user and invalid phone number

    • Verify that users should input value for mandatory field.
    • Verify that users should input valid phone number.
    • Verify error message on each field.
    • Verify that the "Sign Up" button is disabled when data provided still not valid.

Running the Tests

To run the Cypress tests, use the following command

  • To run the tests using Cypress GUI:
$ npx cypress open
  • To run the tests on your terminal:
$ npx cypress run

Test Results

alt text

cypress-automation-test's People

Contributors

wahyumaulana 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.