C# SpecFlow Feature File code behind issues

152 views
Skip to first unread message

carl...@gmail.com

unread,
Jun 27, 2018, 2:16:53 AM6/27/18
to SpecFlow

I have not been able to run my Spec Flow Feature files for some time now. I have been getting many kinds of errors: from Generation Errors, Method not found to the Type of Namespace is missing, and everything in between.

I am running .Net C#, Selenium, SpecFlow, and Nunit. I have been trying different combinations of version numbers for each of these, but the errors just keep coming up. I can’t build, I can’t do anything.  My SPecFlow Feature behind files look like one big ‘squiggly.’  I have Googled, I have Stack Overflowed, I have re-created one of the Feature Files to see if that was the fix, and no it was not.

If I can’t get this fixed, I will need to give up on SpecFlow. Right now my tests are down, I am dead in the water.

Is there any specific combination of versions that I should be or NOT be using, Selenium, .NET, SpecFlow, and NUit?

Current System (as for Selenium and Specflow I have sued any and all version from the latest to really odl.)

Visual Studio Professional 2015

Visual Version 14.0 Update 3

.NET Version 4.7

Selenium WebDriver 3.0

SpecFlow 1.7.0

NUnit 3.10

App.Config (I have tried modifying my App.Config per the example on Spec Flow web site, still no go)

  <configSections>

    <section name="specFlow" type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.SpecFlow" />

  </configSections>

At one time, all of my Feature Files ran correctly. It was only after an upgrade of SpecFlow and Selenium did the issue arise.
Is there any specific combination of versions that I should be or NOT be using, Selenium, .NET, SpecFlow, and NUit?

Andreas Willich

unread,
Jun 27, 2018, 2:29:43 AM6/27/18
to spec...@googlegroups.com
Sorry to hear that you have problems with SpecFlow.

Could you post us the complete error here.

Thanks!

Best regards,
Andreas

--
You received this message because you are subscribed to the Google Groups "SpecFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specflow+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

carl...@gmail.com

unread,
Jun 27, 2018, 7:58:49 PM6/27/18
to SpecFlow
I have installed the latest SpecFlow, Selenium, and SpecFlow Assist Dynamic (as of 07/26/18) packages and all worked just fine. After installing SpecFlow Plus Excel, life was no longer good. 
I removed SpecFlow Plus Excel package and any Features calling from a spread sheet. After doing this all of my features files code behinds worked just fine. I isolated the issue down to SpecFlow Plus Excel. 
I am happy with Spec Flow once again, I will have to narrow my searches and fixes down to Spec Flow Plus Excel to find an issue. 

carl conn

unread,
Jun 27, 2018, 8:04:43 PM6/27/18
to spec...@googlegroups.com
Thank you so much for getting back to me. The issue was SpecFlow Plus Excel. While having these issues, the SpecFlow Plus Excel package was installed. I systematically starting dropping packages and checking to see if they worked. After dropping SpecFlow Plus Excel, life was good. 
As far as the error, pick one. My whole Feature File code behind was one big red squigley. The errors were, a generation error and a missing namespace.
I will now narrow my search to SpecFlow Plus Excel.
Again, thanks for your time.
Carl

--
You received this message because you are subscribed to the Google Groups "SpecFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specflow+unsubscribe@googlegroups.com.

Andreas Willich

unread,
Jun 28, 2018, 1:45:43 AM6/28/18
to spec...@googlegroups.com
Ok, SpecFlow+Excel is a good hint.

Please change in the options of SpecFlow (Tools/Options/SpecFlow) the value 'Generation Mode' to OutOfProcess.
This should fix your problems.

Screenshot:
image

and FYI: SpecFlow+Excel is part of SpecFlow+. With a license you get support from us: http://specflow.org/specflow-support/


To unsubscribe from this group and stop receiving emails from it, send an email to specflow+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "SpecFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specflow+u...@googlegroups.com.

carl conn

unread,
Jun 29, 2018, 8:18:08 PM6/29/18
to spec...@googlegroups.com
I will try this, thank you so much
Carl

To unsubscribe from this group and stop receiving emails from it, send an email to specflow+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "SpecFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specflow+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "SpecFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specflow+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages