Signal that next step is of different type
------------------------------------------
Key: JBEHAVE-405
URL: http://jira.codehaus.org/browse/JBEHAVE-405
Project: JBehave
Issue Type: New Feature
Components: Core
Reporter: Paul Hammant
Consider:
{code}
Given something
And something else
Then it happened
or..
Given something
Then it happened
and..
@When("something")
public void something() {
}
@When("something else")
public void somethingElse() {
}
@Then("it happened")
public void itHappened() {
}
{code}
I'd like to be able to know in something() whether the next step is of a
different type or not.
{code}
@When("something")
public void something(@Named("lastOfStepType") boolean lastOfStepType) {
}
{code}
This is particularly useful for UI interactions (WebDriver etc).
Given I am have a hat in the cart
When I purchase with credit card
And I specify an alternate delivery address
Then I should see a warning about different addresses
I might want...
When I purchase with credit card
... as a standalone, or with refining AND clauses. In the last of the when
lines that's pertinent I may execute the whole set. When in this context feels
like a continuation of sorts.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email