On http://jbehave.org/reference/latest/concepts.html it states:

"A step starting with And assumes the same meaning of the previous step"

but this clearly isn't the case in practise, nor does it even require any
preceeding step type to be defined. For example:


public class Steps extends org.jbehave.scenario.steps.Steps {
  @When("the wind blows")
  public void theWindBlows() { System.err.println("when it blows then boom"); }
  @Given("the wind blows")
  public void theWindBlows2() { System.err.println("given it blows then boom"); 
}
}


Scenario: Test

  And the wind blows
Given the wind blows
  And the wind blows
 When the wind blows
  And the wind blows


Outputs:

when it blows then boom
given it blows then boom
when it blows then boom
when it blows then boom
when it blows then boom


This doesn't seem very clever for several obvious reasons. Is there any plan
for AndSteps to conform to the specification on the web site, which seems to
make sense to me.

Apologies if the issue has already been raised - searching for "And Step"
doesn't work terribly well!

Tim


-- 
Tim Moore, Product Development, CoreFiling Limited
http://www.corefiling.com
Phone: +44-1865-203192

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to