Specflow – Understanding specflow bindings in detail
Post Author:
Karthik kk
6 Replies to “Specflow – Understanding specflow bindings in detail”
Spot on with this write-up, I truly believe that this site needs much more attention. I’ll probably be back again to read through more, thanks for the info!
In the last session of hooks video, m trying to add in [Before Feature] which is not getting called, wherein the [Before Scenario] is getting called. I recompiled, and then try executing the tests, it is not getting called even then.
Hi Karthik,
i’m getting below issue in while generating feature.cs file
” #error Version conflict – SpecFlow Visual Studio extension attempted to use SpecFlow code-behind generator 1.9, but project ‘SpecflowPOC_pace’ references SpecFlow 3.1.
#error We recommend migrating to MSBuild code-behind generation to resolve this issue.
#error For more information see https://specflow.org/documentation/Generate-Tests-from-MsBuild/ ”
Environment Info
Visual Studio 2017
Extensions installed
Specflow 2017
nunit test adapter
Under solution installed packages
Specflow 3.1.97
Specflow.nUnit 3.1.97
Spot on with this write-up, I truly believe that this site needs much more attention. I’ll probably be back again to read through more, thanks for the info!
Thanks for reading articles in execute automation.
Thanks
Karthik
Hi Karthik,
In the last session of hooks video, m trying to add in [Before Feature] which is not getting called, wherein the [Before Scenario] is getting called. I recompiled, and then try executing the tests, it is not getting called even then.
try recompiling the project and make sure the method signature is
static
.Put a breakpoint and try
Thanks
Hi Karthik,
i’m getting below issue in while generating feature.cs file
” #error Version conflict – SpecFlow Visual Studio extension attempted to use SpecFlow code-behind generator 1.9, but project ‘SpecflowPOC_pace’ references SpecFlow 3.1.
#error We recommend migrating to MSBuild code-behind generation to resolve this issue.
#error For more information see https://specflow.org/documentation/Generate-Tests-from-MsBuild/ ”
Environment Info
Visual Studio 2017
Extensions installed
Specflow 2017
nunit test adapter
Under solution installed packages
Specflow 3.1.97
Specflow.nUnit 3.1.97
There were many breaking changes happened in Specflow 3, please watch this video for detailed explanation https://www.youtube.com/watch?v=NcnOFgq8Mqs&list=PL6tu16kXT9Pp3wrsaYyNRnK1QkvVv6qdI&index=33
Thanks,