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

Dry run issue when passing parameter from one StepDef to another #24

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

Dry run issue when passing parameter from one StepDef to another #24

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

Comments

@bjuric
Copy link
Contributor

bjuric commented Jun 9, 2016

The following causes Gwen to recurse forever trying to resolve a StepDef parameter value when executed in --dry-run mode only.

@StepDef
Scenario: I select "<a>" from the options list 
    Given I click option "$<a>" 
     When I do something with "$<a>"

@StepDef
Scenario: I do something with "<a>" 

In this example, $<a> resolves to $<a> at runtime when doing a dry run check on the call to the second StepDef (the When step). It hence infinitely recurses.

@bjuric
Copy link
Contributor Author

bjuric commented Jun 9, 2016

Solution is to bind it to a decorated value for dry run purposes, by mapping $<a> to $[param:a] instead.

@bjuric
Copy link
Contributor Author

bjuric commented Jun 21, 2016

Fixed 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
Labels
Projects
None yet
Development

No branches or pull requests

1 participant