Socket
Socket
Sign inDemoInstall

@brainhubeu/cucumber-steps

Package Overview
Dependencies
2
Maintainers
11
Versions
84
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @brainhubeu/cucumber-steps

Quick start for testing with cucumber


Version published
Weekly downloads
66
increased by2100%
Maintainers
11
Install size
1.60 MB
Created
Weekly downloads
 

Readme

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

Last updated on 17 Jul 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc