Logo
latest

Getting Started

  • Getting Started Step by Step Guides
  • Getting Started with an example

Guides

  • Upgrade from SpecFlow 2.* to 3.*
  • Using Page Object Model with Selenium
  • Driver Pattern

UI Automation

  • Selenium with Page Object Model Pattern

Installation

  • Requirements
  • Installation
  • NuGet Packages
  • Configuration
  • Project and Item Templates
  • Unit Test Providers
  • Breaking changes with SpecFlow 3.0

Gherkin

  • Gherkin Reference
  • Feature Language

Bindings

  • Bindings
  • Step Definitions
  • Hooks
  • Asynchronous Bindings
  • Scoped Step Definitions
  • Sharing Data between Bindings
  • Context Injection
  • ScenarioContext
  • FeatureContext
  • Calling Steps from Step Definitions
  • Step Argument Conversions
  • Bindings from External Assemblies
  • SpecFlow.Assist Helpers
  • F# Support

Execution

  • Executing SpecFlow Scenarios
  • Executing specific Scenarios in your Build pipeline
  • Mark Steps as not implemented
  • Skipping Scenarios
  • Test Results
  • Parallel Execution
  • Debugging

Integrations

  • SpecFlow+ Runner
  • MSTest
  • NUnit
  • xUnit
  • Azure DevOps (Server)
  • TeamCity Integration
  • Browserstack
  • Autofac
  • Castle Windsor

IDE-Integration: Visual Studio

  • Integration
  • Installation
  • Editing Features
  • Navigation Features
    • Navigating from a Binding to Steps in Gherkin Files
    • Navigating from a Gherkin Step to a Binding
  • Test Explorer Support
  • Generating Skeleton Code

IDE-Integration: Rider

  • Installation
  • Features

IDE-Integration: Visual Studio Code

  • Installation
  • Test Execution
  • Debugging

Extend SpecFlow

  • Value Retrievers
  • Plugins
  • Available Plugins
  • Available Containers & Registrations
  • Decorators

Tools

  • Tools
  • Generate Tests From MsBuild
  • Cucumber Messages
  • Reporting

Contribute

  • Prerequisite
  • Local Setup
  • Definition of Terms
  • Projects
  • Special files
  • Potential problems
  • Coding Style

Legacy

  • Plugins
  • Coded UI

Help

  • Troubleshooting
  • Known Issue
  • Troubleshooting Visual Studio Integration

Miscellaneous

  • Usage Analytics
  • »
  • Navigation Features
  • Edit on GitHub
Overview | SpecFlow | SpecFlow+LivingDoc | SpecFlow+Runner | SpecFlow+Excel | SpecMap

Navigation Features¶

You can navigate between the methods in your bindings and the associated steps in your Gherkin feature files.

Navigating from a Binding to Steps in Gherkin Files¶

To navigate from a step definition method to the matching step(s) in your Gherkin feature file(s):

  1. Place your cursor in a step definition method.
  2. Right-click and select Go To SpecFlow Step Definition Usages from the context menu, or press Ctrl+Shift+Alt+S (configurable shortcut).
  3. If only one match exists, the feature file is opened. If more than one matching step is defined in your feature files, select the corresponding feature file from the list to switch to it.

Navigating from a Gherkin Step to a Binding¶

To navigate from a step in a Gherkin feature file to the corresponding step definition method:

  1. Place your curosr in the step in your feature file.
  2. Right-click and select Go To Step Definition from the menu (Alt+Ctrl+Shift+S).
  3. The file containing the binding is opened at the appropriate step definition method.
    Note: If the steps definition does not exists, a message is displayed instead:
    Not existing steps definition (click image for full size)
    Click on Yes to copy the skeleton code for your step to the clipboard, so you can paste it in the corresponding code file.
Previous Next

Need additional help? Ask our community or check our FAQs.

© Copyright 2020, The SpecFlow Team. Revision 5aca3ab6.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
latest
stable
Downloads
pdf
html
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.