Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 795 Bytes

Readme.md

File metadata and controls

21 lines (12 loc) · 795 Bytes

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