Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ambiguity when a step resolves to more than one StepDef at runtime #23

Closed
bjuric opened this issue Jun 9, 2016 · 2 comments
Closed

Comments

@bjuric
Copy link
Contributor

bjuric commented Jun 9, 2016

Defining two StepDefs like this can lead to the wrong one being called at runtime.

@StepDef
Scenario: I perform <x> on <y>
...

@StepDef
Scenario: I perform <x> on <y> using <z>
...

The following step could be targeted at the first StepDef but could actually result in the second one being called instead of the first one.

When I perform A on B using C

Possible interpretations for the above include:

  • <x> = A
  • Or either one of the following
  • <y> = B and <z> = C (if resolved to 2nd StepDef above)
  • <y> = B using C (if resolved to 1st StepDef above)
@bjuric
Copy link
Contributor Author

bjuric commented Jun 9, 2016

Solution will be to detect this condition and raise an error.

bjuric added a commit that referenced this issue Jun 21, 2016
@bjuric
Copy link
Contributor Author

bjuric commented Jun 21, 2016

Delivered in gwen v1.3.0 and gwen-web v1.5.0

@bjuric bjuric closed this as completed Jun 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant