Unable to use createnode in extent reports #449
-
Beforefeature --- Before Scenario
Issue --- After the control moves from BEFOREFEATURE to BEFORESCENARIO , the value of feature variable is null inspite of this variable being defined at a class level as private static as mentioned below
The same code works in specflow however on using it in REQNROLL I get null object reference error in BEFORESCENARIO Note:- I had been running my tests in parallel at a fixture level using specflow hence had to use the ThreadStatic attribute. If I do not use the [ThreadStatic] attribute I am not seeing this issue in REQNROLL. The same code works in specflow however on using it in REQNROLL I get null object reference error in BEFORESCENARIO Any suggestions/idea for this issue. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
The You can let the
But maybe there are others here who have successfully integrated extent reports with Reqnroll already. |
Beta Was this translation helpful? Give feedback.
You have misunderstood me. You should not create a TestThreadContext yourself, this is an infrastructure that Reqnroll provides to you. Like: