Running my SpecFlow tests - I get the error: System.Collections.Generic.KeyNotFoundException : The given key was not present in the dictionary

309 views
Skip to first unread message

usman...@chelsea-apps.com

unread,
Jun 12, 2017, 2:24:45 PM6/12/17
to SpecFlow
Hi all,

I have a good structure laid out for my BDD UI tests however when I run my test I keep getting the following error

System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.
  ----> System.Collections.Generic.KeyNotFoundException : The given key was not present in the dictionary.

I am no idea why I am getting this message. Can anyone point me in the right direction. When I go to the failure of the test, it points to the feature file (Gherkin). I'm 100% sure the feature file is written correctly.

Any ideas?

Thanks

Andreas Willich

unread,
Jun 21, 2017, 8:52:34 AM6/21/17
to SpecFlow
Could you post more information about the exception?
A complete call stack would be helpful, to see where the KeyNotFoundException is thrown

Which version of SpecFlow are you using?
Which unit test framework/runner are you using?

Could you provide us the scenario and the steps?

--
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.
Reply all
Reply to author
Forward
0 new messages