Giter Site home page Giter Site logo

rahimbangla / cypress-plugin-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from filiphric/cypress-plugin-api

1.0 1.0 0.0 1008 KB

Cypress plugin to show your API information in the Cypress UI runner

License: ISC License

JavaScript 12.21% TypeScript 55.36% CSS 11.04% HTML 0.03% Vue 21.36%

cypress-plugin-api's Introduction

Cypress plugin API

Cypress plugin for effective API testing. Imagine Postman, but in Cypress.

Cypress plugin for testing API

Installation

Install this package:

npm i cypress-plugin-api

// or

yarn add cypress-plugin-api

Import the plugin into your cypress/support/e2e.js file:

import 'cypress-plugin-api'
// or
require('cypress-plugin-api')

Usage

You can now use cy.api() command. This command works exactly like cy.request() but in addition to calling your API, it will print our information about the API call in your Cypress runner.

Features

  • view responses in UI frame as well as in the timeline
  • showing query objects, headers, request body and response
  • color coding of methods
  • copy response to clipboard (works for last test only)
  • snapshots

Cypress plugin for testin API

Issues

All the issues can be found on issues page, feel free to open any new ones or contribute with your own code.

Want to learn more?

Come to my upcoming "Testing API with Cypress" workshop. We’ll be using this plugin and learning different ways of testing API.

Register here

Testing API with Cypress workshop

cypress-plugin-api's People

Contributors

filiphric avatar dodosaurus avatar

Stargazers

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