SpecFlowOSS / SpecFlow.VS

The next version of the Visual Studio extension for SpecFlow
MIT License
39 stars 12 forks source link

Seeing issue Cannot create an instance of Microsoft.VisualStudio.TestTools.UnitTesting.TestContext because it is an abstract class. #142

Open agspep opened 1 year ago

agspep commented 1 year ago

Used Visual Studio

Visual Studio 2022

Are the latest Visual Studio updates installed?

Yes

SpecFlow Section in app.config or content of specflow.json

Seeing below issue for specflow

 SigninToBstackdemoWebsite  Source: IamsLogin.feature line 5  Duration: 483 ms

Message:  System.MemberAccessException : Cannot create an instance of Microsoft.VisualStudio.TestTools.UnitTesting.TestContext because it is an abstract class.

Stack Trace:  TestExecutionEngine.FireEvents(HookType hookType) TestExecutionEngine.FireScenarioEvents(HookType bindingEvent) TestExecutionEngine.OnScenarioStart() TestExecutionEngine.OnAfterLastStep() TestRunner.CollectScenarioErrors() IAMSLoginFeature.ScenarioCleanup() IAMSLoginFeature.SigninToBstackdemoWebsite() line 6

Standard Output:  Given User is at Home Page with url "https://www.google.com" -> skipped because of previous errors

Issue Description

 SigninToBstackdemoWebsite  Source: IamsLogin.feature line 5  Duration: 483 ms

Message:  System.MemberAccessException : Cannot create an instance of Microsoft.VisualStudio.TestTools.UnitTesting.TestContext because it is an abstract class.

Stack Trace:  TestExecutionEngine.FireEvents(HookType hookType) TestExecutionEngine.FireScenarioEvents(HookType bindingEvent) TestExecutionEngine.OnScenarioStart() TestExecutionEngine.OnAfterLastStep() TestRunner.CollectScenarioErrors() IAMSLoginFeature.ScenarioCleanup() IAMSLoginFeature.SigninToBstackdemoWebsite() line 6

Standard Output:  Given User is at Home Page with url "https://www.google.com" -> skipped because of previous errors

Steps to Reproduce

 SigninToBstackdemoWebsite  Source: IamsLogin.feature line 5  Duration: 483 ms

Message:  System.MemberAccessException : Cannot create an instance of Microsoft.VisualStudio.TestTools.UnitTesting.TestContext because it is an abstract class.

Stack Trace:  TestExecutionEngine.FireEvents(HookType hookType) TestExecutionEngine.FireScenarioEvents(HookType bindingEvent) TestExecutionEngine.OnScenarioStart() TestExecutionEngine.OnAfterLastStep() TestRunner.CollectScenarioErrors() IAMSLoginFeature.ScenarioCleanup() IAMSLoginFeature.SigninToBstackdemoWebsite() line 6

Standard Output:  Given User is at Home Page with url "https://www.google.com" -> skipped because of previous errors

Link to Repository Project

No response