Skip to content

TalentAgile/Specflow.TestContextInjector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#MSTest2010 generator extension.

This generator injects the TestContext object in the ScenarioContext. You can now use runsettings file to store specflow parameters and change update the parameters value at runtime

Build Status

How to

Install the related nuget package: https://www.nuget.org/packages/TalentAgile.Specflow.TestContextInjector/

Regenerate the feature generated files

In your steps, you can now access the TestContext:

var context = ScenarioContext.Current["TestContext"] as TestContext;

Credits

This code comes from all other the web from people having the same issues. Consider it as a ready to use solution for your current projects.