GithubHelp home page GithubHelp logo

anjalibangoria / cypressautomation Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 12.78 MB

Cypress is a next generation api and front end testing tool built for the modern web. This is a sample project which you can use to start your E2E testing with Cypress.

HTML 94.69% JavaScript 4.55% Gherkin 0.76%

cypressautomation's Introduction

cypress automation

Cypress is a next generation api and front end testing tool built for the modern web. This is a sample project which you can use to start your E2E testing with Cypress. remotes/origin_github/main

Installation

  1. Install node from https://nodejs.org/en/download/.

  2. Use npm package manager and install required dependency.

     npm install
    

Usage

To run UI Test which is under cypress/test/uitest.

npm run ui-test

For Headless Mode, use below command.
npm run ui-test:headless

Run using tags, use below command.
npm run ui-test:withTags

To run API Test which is under cypress/test/apitest.

npm run api-test

Project Information

There are different folder for different purpose here.

  1. config :- This will be used to set configuration for UI & API test individually.

     apiconfig.json - all required configurations for api automation are added under this file. 
     uiconfig.json  - all required configurations for ui automation are added under this file.
    
  2. fixtures :- This will be used to add required test data files.

  3. Reports :- After execution of UI or API test, report will get generate under Reports -> APIReports or Report -> UIReports respectively. There will be one file with ExecutionReport.html to see result in HTML format. It generates from result json data.

  4. screenshots :- All failure screenshots will get generated here.

  5. support :- This folder will be used to set global configuration and great place to put behavior that modifies Cypress under support/index.js

  6. test :- All test will be taken care from this location. Use apitest folder for adding api test cases in TDD Way, uitest folder for adding ui test cases in BDD way.

  7. Videos :- All feature execution vidoes gets generated here if Vidoes flag set to true in config/apiconfig.json or config/uiconfig.json.

cypressautomation's People

Contributors

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