-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BoDi.ObjectContainerException
: Interface cannot be resolved: Microsoft.Playwright.IBrowser
#58
Comments
BoDi.ObjectContainerException
: Interface cannot be resolved: Microsoft.Playwright.IBrowser
BoDi.ObjectContainerException
: Interface cannot be resolved: Microsoft.Playwright.IBrowser
@konarx Which version of SpecFlow did you use before migrating? |
I was able to reproduce the issue. I think this was an issue already in SpecFlow v4 beta, but I am waiting for your confirmation on that. The problem is that the This has to be fixed. Workaround: The workaround is to get the "base container" of the "test thread container" in the
to
(this workaround needs to be reverted once the issue is fixed) |
Thank you @gasparnagy, the suggested workaround does the trick indeed. I can proceed with the migration now. |
It is fixed now by #59 and will be included in the next release. In the meantime please use the workaround. |
Reqnroll Version
1.0.1
Which test runner are you using?
NUnit
Test Runner Version Number
4.5.0
.NET Implementation
.NET 6.0
Test Execution Method
ReSharper Test Runner
Content of reqnroll.json configuration file
Issue Description
I am using Rider with the latest build of the Rider.Reqnroll plugin.
I have two .cs files for Hooks,
TestRunLevelHooks
:and
ScenarioLevelHooks
:I execute a test using Test Explorer in Rider and getting the following error:
The issue started after migrate to Reqnroll using the namespace changes method. It was not reproduced when using SpecFlow and I have kept the same dependency injection methods.
Here is the
.csproj
(if it matters):Steps to Reproduce
When debugging, I managed to see that the
[BeforeTestRun]
executed successfully, registering all objects to the_objectContainer
. The error occurs in theScenarioLevelHooks
.Link to Repro Project
No response
The text was updated successfully, but these errors were encountered: