before scenario in a different assembly

63 views
Skip to first unread message

flechto

unread,
Mar 25, 2011, 3:59:24 PM3/25/11
to SpecFlow
I am trying to use SpecFlow and Selenium to do UI testing of a web
application. I would like to have a project with my before and after
scenario methods that can be used in other projects. When I do it
this way I get 'error: The given key was not present in the
dictionary.' But if I move that code into the project with the steps
it works fine.

Is what I want to do possible?

Vajda

unread,
Mar 26, 2011, 8:28:33 AM3/26/11
to SpecFlow
Check this out.
http://stackoverflow.com/questions/5355948/specflow-step-definition-classes-in-different-projects

Also, you need to make those steps in some class decorated with
[Binding] attribute.

flechto

unread,
Mar 28, 2011, 11:06:23 AM3/28/11
to SpecFlow
I have tried this already. The first project does not have any
features or tests it just contains methods to set up selenium. I have
tried it with the config section in both projects.

I also get a different error from the stackoverflow post. Mine doesn't
give the code to create the steps.

On Mar 26, 7:28 am, Vajda <vladava...@gmail.com> wrote:
> Check this out.http://stackoverflow.com/questions/5355948/specflow-step-definition-c...

Vajda

unread,
Mar 28, 2011, 2:21:44 PM3/28/11
to SpecFlow
What error do you get?

Gáspár Nagy

unread,
Mar 29, 2011, 2:40:34 AM3/29/11
to SpecFlow
Could you upload a small repro?
Reply all
Reply to author
Forward
0 new messages