Reputation: 21
I am trying to insert a value in ScenarioContext.Current but for some reason ScenarioContext.Current is null.
Upvotes: 2
Views: 2930
Reputation: 71
If you're in a [BeforeFeature], have you tried using FeatureContext.Current instead?
Upvotes: 7
Reputation: 5122
I've discovered that ScenarioContext.Current is null inside [BeforeFeature], which was not what I initially expected. Where are you calling ScenarioContext.Current from?
Upvotes: 1