This project is read-only.

Listing all scenarios belonging to a feature

May 15, 2013 at 1:10 PM
I know if you use var xx = ScenarioContext.Current.ScenarioTitle;, you'll get the current scenario that is/has been executed but is it possible just to list all of the scenarios belong to a feature?
May 15, 2013 at 1:40 PM
I'm curious, why would you need that information?
There is no method or property that expose that to you.
You could build that list yourself though, put a list in the FeatureContext which you populate in a [BeforeScenario] where you can grab the ScenarioTitle from ScenarioContext.