Skip to content

tgetmanova/SpecflowTricks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Specflow Tricks

This is short guide that describes how to use some Specflow amazing features

  • Data tables transformation
    • Direct table parsing
    • Using Specflow Assist library to create certain instances and set of instances
    • Using Specflow Assist library and customize instance newly created with StepsArgumentTransformation attribute
  • Extensions for Feature and Scenario contexts to manage test data
  • Creating your own test data context and share it between multiple steps 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
  • Just some nice things about Specflow
    • Usage of multiple binding attributes on method in order to bing it to several steps
    • Usage of Scope attribute in order to restrict method binding to some concrete Feature/Scenario step

Releases

No releases published

Packages

No packages published