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

cucumber-eavesdropper-plugin

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cucumber-eavesdropper-plugin

A cucumber listener that eavesdrops on the event stack

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Cucumber Eavesdropper Plugin

Provides an easy way to listen to the cucumber-js message pump. The eavesdropper manipulates a Cucumber listener to output all events and information to the console.

Usage

As always, you'll need to install cucumber-eavesdropper as a dependency

  npm install cucumber-eavesdropper-plugin --save

Then in a step definition (e.g. step_definitions/worldDefinition.js) register the plugin as a listener

  var eavesdropper = require('cucumber-eavesdropper-plugin')

  function worldDefinition() {
    this.registerListener(eavesdropper)
  }

Example usage can be found here

Output

The eavesdropper simply logs the captured event name to console. Output looks like this:

Running "cucumberjs:files" (cucumberjs) task
Event: BeforeFeatures

Driving the web on session: 73f6d374d88b44d985b7494511347f6b

Feature: Search

Event: BeforeFeature
Event: Background
  Scenario: Perform a search
Event: BeforeScenario
Event: BeforeStep
 > POST: /session/:sessionID/url
    Given I am on the homepage
Event: StepResult
Event: AfterStep
Event: BeforeStep
 > POST: /session/:sessionID/element
 > POST: /session/:sessionID/element/:wdc:1386009290174/value
 > POST: /session/:sessionID/element
 > POST: /session/:sessionID/element/:wdc:1386009290175/click
    When I perform a search
Event: StepResult
Event: AfterStep
Event: BeforeStep
 > POST: /session/:sessionID/element
    Then I see the search results page
Event: StepResult
Event: AfterStep

Event: AfterScenario
Event: AfterFeature

1 scenario (1 passed)
3 steps (3 passed)
Event: AfterFeatures
 > DELETE: /session/:sessionID

Ending your web drivage..

Keywords

FAQs

Package last updated on 02 Dec 2013

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