Hello,
I am trying to solve a problem and don't seem to have a solution. We are using Nunit and SpecFlow for our testing and some of our code in the BeforeScenario is failing but the ScenarioContext.TestError is null.
I am wondering why the error is not being added into the ScenarioContext. Other things are added properly like Scenario title, etc but not the error.
You can prove this by simply adding an Assert.Fail() in your BeforeScenario hook and check on the AfterScenario ScenarioContext has TestError populated.
Is this a defect or is there some possible solution to log the error in TestError?
Thanks,
Jason T.