Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@brainhubeu/cucumber-steps

Package Overview
Dependencies
Maintainers
11
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brainhubeu/cucumber-steps

Quick start for testing with cucumber

  • 1.8.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-12.5%
Maintainers
11
Weekly downloads
 
Created
Source

cucumber-steps

Quick start for testing with cucumber

Hire us

CircleCI Last commit license PRs Welcome Renovate enabled

Downloads Activity Minified npm Contributors

Getting started

Install library

with npm: npm i --save-dev @brainhubeu/cucumber-steps

or with yarn: yarn add --dev @brainhubeu/cucumber-steps

Add following in anywhere in your step-definitions directory

import { defineSupportCode } from 'cucumber';
import stepsSupport from '@brainhubeu/cucumber-steps';

defineSupportCode(stepsSupport);

Available steps

Setting headers
Given I set header "heder-name" with value "header-value"
Sending request
When I send a "METHOD" request to "/path"
Sending request with body
When I send a "METHOD" request to "/path" with body:
  """
  {
    "name": "Wonderful coffee",
    "project": {
      "name": "Coffee"
    }
  }
  """
Chcking response code
Then the response code should be 111
Checking response body
Then the JSON should match pattern
  """
  {
    "name": "Wonderful coffee",
    "project": {
      "name": "Coffee"
    }
  }
  """

Keywords

FAQs

Package last updated on 17 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc