Using featureContext and ScenarioContext with Allure Specflow #2191
Replies: 2 comments 1 reply
-
Could be anything. Share some code, please. |
Beta Was this translation helpful? Give feedback.
-
I am working on creating the custom Allure Adapter This is the Initialize method in Allure Reporting. I am getting failure after completion of the method.
|
Beta Was this translation helpful? Give feedback.
-
I am working on Allure reporting. Using Allure.Specflow version 2.9.5-preview. I am also using the FeatureContext and ScenarioContext using ContextInjection. While running the before Scenario inside Hooks I get one error
System.InvalidCastException : Specified cast is not valid.
TearDown : System.NullReferenceException : Object reference not set to an instance of an object
at TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.FireEvents (TechTalk.SpecFlow.Bindings.HookType hookType) [0x0013f] in :0
at TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.FireScenarioEvents (TechTalk.SpecFlow.Bindings.HookType bindingEvent) [0x00000] in :0
at TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.OnScenarioStart () [0x00037] in :0
at TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.OnAfterLastStep () [0x0020f] in :0
at TechTalk.SpecFlow.TestRunner.CollectScenarioErrors () [0x00000] in :0
Can someone help me understand the issue and how can I fix it.
Beta Was this translation helpful? Give feedback.
All reactions