[
http://jira.codehaus.org/browse/JBEHAVE-388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mauro Talevi updated JBEHAVE-388:
---------------------------------
Component/s: Core
Description:
In order to be more effective in communication and in scenario development
As a scenario writer
I want to compose steps using existing steps
Example:
{noformat}
Given <customer> has previously bought a <product>
{noformat}
Could be a composition of
{noformat}
Given <customer> is logged in
When they put a <product> in their cart
And go to checkout
And pay using their registered card
And go to the home page
{noformat}
Need to think about what options are available for the "definition" of the
composition.
Options include: annotations, step concatenation, etc ...
was:
{noformat}
1. @Given("$who has previously bought a $what")
2. public String composedFullPurchase(String who, String what) {
3. return "given $who is logged in" + NL +
4. "when they put a" + what + " in their cart" NL +
5. "and go to checkout " + to " NL +
6. "and pay using their registered c-card" + NL +
7. "and go to the home page";
8. }
[Note: Mauro prefers an annotation based design]
{noformat}
Fix Version/s: 3.2
Summary: Support composition of steps (was: Step composition steps)
> Support composition of steps
> ----------------------------
>
> Key: JBEHAVE-388
> URL: http://jira.codehaus.org/browse/JBEHAVE-388
> Project: JBehave
> Issue Type: New Feature
> Components: Core
> Reporter: Paul Hammant
> Fix For: 3.2
>
>
> In order to be more effective in communication and in scenario development
> As a scenario writer
> I want to compose steps using existing steps
> Example:
> {noformat}
> Given <customer> has previously bought a <product>
> {noformat}
> Could be a composition of
> {noformat}
> Given <customer> is logged in
> When they put a <product> in their cart
> And go to checkout
> And pay using their registered card
> And go to the home page
> {noformat}
> Need to think about what options are available for the "definition" of the
> composition.
> Options include: annotations, step concatenation, etc ...
--
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