This is short guide that describes how to use some Specflow amazing features
- Data tables transformation
- Direct table parsing
- Using
Specflow Assistlibrary to create certain instances and set of instances - Using
Specflow Assistlibrary and customize instance newly created withStepsArgumentTransformationattribute
- Extensions for Feature and Scenario contexts to manage test data
- Creating your own test data context and share it between multiple steps binding classes: use built-in Specflow BoDi dependency injection container to setup data context (shared dependency instance) and use constructor injection of shared dependency in binding classes
- Strings formatting is steps:
- inline formatting with placeholders passed from Scenario-level data
- inline formatting with placeholders passed from code-level data
- Tags
- Filtering usage: Using tags to restrict Hook method binding (
Before,After). Using multiple tags in Hook methods - Categorizing usage: Using tags to mark
- Feature
- Scenario
- Scenario Example
- Filtering usage: Using tags to restrict Hook method binding (
- Just some nice things about Specflow
- Usage of multiple binding attributes on method in order to bing it to several steps
- Usage of
Scopeattribute in order to restrict method binding to some concrete Feature/Scenario step