Giter VIP home page Giter VIP logo

specflow.advancesteps's Introduction

SpecFlow.AdvanceSteps

This plugin provides a facility to

  • to peek into step definitions
  • to do regression on scenarios

Installation

[TODO] Get it from nuget at SpecFlow.AdvanceSteps

Peek into steps

Usage

The plugin works by adding extention methods to ScenarioContext and ScenarioStepContext

To enable peeking add @enable-peeking tag to to the scenario definition

@enable-peeking
Scenario: Scenario demonstrating step peeking  
	Given I have a simple given statement
	And I have a another simple given statement
	When I successfully enquire about the current statement
	And I successfully enquire about the next statement
	And I successfully enquire about the previous statement
	Then I have a simple then statement
Context Extension method Details
ScenarioContext GetAllSteps() Get all steps information
ScenarioStepContext GetCurrentStep() Get details about the currently executing step
. GetPreviousStep() Get details about the previously executed step
. GetNextStep() Get details about the next step to be executed

StepDefinition

The step information is presented as StepDefinition instead of StepInfo object. However, the information present in StepDefinition is same as provided by StepInfo.

Limitation

  • The steps that are invoked from within step bindings are not visible. These invoked steps would have access to Previous and Next steps information, but most likely it would be incorrect.
  • Debugging by adding breakpoint to gherkin file will not allow to jump into the step definition code. This is because of the fact that the steps are executed at the end of the scenario. However it is possible to debug into the steps by putting the breakpoint within the step definition code.

Example

TODO

specflow.advancesteps's People

Contributors

harmann-labs avatar harvinders avatar

Stargazers

 avatar  avatar

Watchers

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