Unable to access test execution dependent service 'Reqnroll.ScenarioContext' with the Reqnroll.Microsoft.Extensions.DependencyInjection plugin #596
Replies: 3 comments 7 replies
-
What other hooks do you have in your solution? This error could fire when ever there is an attempt to access the ScenarioContext when it is not available (such as Before/AfterTestRun and Before/AfterFeature). Can you provide the full stack-trace when this error occurs? Can you share your ScenarioDependencies setup method? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I have been trying to recreate with no luck.
This message mentions "TearDown" (at the beginning of the 2nd line of the 'Message'). Is that a class or method you've not yet shared with us? If so, please share if you can. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey.
I have replaced Specflow with Reqnroll but now all of the tests are failing with this:
Unable to access test execution dependent service 'Reqnroll.ScenarioContext' with the Reqnroll.Microsoft.Extensions.DependencyInjection plugin. This service is only available once test execution has been started and cannot be used in '[BeforeTestRun]' hook.
I don't have BeforeTestRun, neither I have AfterTestRun, neither I am using Parallel execution.
Can someone please help me resolve this problem? I have searched everywhere and tried everything.
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions