[ 
http://jira.codehaus.org/browse/JBEHAVE-528?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mauro Talevi updated JBEHAVE-528:
---------------------------------

    Description: 
http://jbehave.org/reference/stable/tabular-parameters.html is great, but 
pertains to a single step.

{quote}
Given I'm on the FooBar Page which is 20 mins of clicking through prelim pages
When I enter <foo> in the foo field
Then the bar field is auto-completed with <bar>

Examples:
| foo | bar |
| eggs | bacon |
| toast | marmite |
{quote}

http://jbehave.org/reference/stable/parametrised-scenarios.html suggests that 
all the Given/When/Then steps are repeated.

In the linked-to example, it is the only one given.  What this change is about 
is the fact that only the When/Then steps need to be repeated.  This is 
implicit because the Given line does not refer to any of the table params.

If this needs to be explicit, it could be a team's choice to set this for the 
entire set of stories:

bq. configuration.setPartialExamplesTablesExpansionPerScenario(true);

Or it could be specified in the story itself:

{quote}
Given I'm on the FooBar Page which is 20 mins of clicking through prelim pages
When I enter <foo> in the foo field
Then the bar field is auto-completed with <bar>

Examples(1-2):
| foo | bar |
| eggs | bacon |
| toast | marmite |
{quote}

  was:
http://jbehave.org/reference/stable/tabular-parameters.html is great, but 
pertains to a single step.

{quote}
Given I'm on the FooBar Page which is 20 mins of clicking through prelim pages
When I enter <foo> in the foo field
Then the bar field is auto-completed with <bar>

Examples:
| foo | bar |
| eggs | bacon |
| toast | marmite |
{quote}

http://jbehave.org/reference/legacy/table-examples.html (note no /stable/ 
version of this page) gives the general theme, but suggests that all the 
Given/When/Then steps are repeated.

In the linked-to example, it is the only one given.  What this change is about 
is the fact that only the When/Then steps need to be repeated.  This is 
implicit because the Given line does not refer to any of the table params.

If this needs to be explicit, it could be a team's choice to set this for the 
entire set of stories:

bq. configuration.setPartialExamplesTablesExpansionPerScenario(true);

Or it could be specified in the story itself:

{quote}
Given I'm on the FooBar Page which is 20 mins of clicking through prelim pages
When I enter <foo> in the foo field
Then the bar field is auto-completed with <bar>

Examples(1-2):
| foo | bar |
| eggs | bacon |
| toast | marmite |
{quote}


> Examples Table for subset of steps
> ----------------------------------
>
>                 Key: JBEHAVE-528
>                 URL: http://jira.codehaus.org/browse/JBEHAVE-528
>             Project: JBehave
>          Issue Type: New Feature
>    Affects Versions: 3.4
>            Reporter: Paul Hammant
>            Priority: Minor
>             Fix For: 3.5
>
>
> http://jbehave.org/reference/stable/tabular-parameters.html is great, but 
> pertains to a single step.
> {quote}
> Given I'm on the FooBar Page which is 20 mins of clicking through prelim pages
> When I enter <foo> in the foo field
> Then the bar field is auto-completed with <bar>
> Examples:
> | foo | bar |
> | eggs | bacon |
> | toast | marmite |
> {quote}
> http://jbehave.org/reference/stable/parametrised-scenarios.html suggests that 
> all the Given/When/Then steps are repeated.
> In the linked-to example, it is the only one given.  What this change is 
> about is the fact that only the When/Then steps need to be repeated.  This is 
> implicit because the Given line does not refer to any of the table params.
> If this needs to be explicit, it could be a team's choice to set this for the 
> entire set of stories:
> bq. configuration.setPartialExamplesTablesExpansionPerScenario(true);
> Or it could be specified in the story itself:
> {quote}
> Given I'm on the FooBar Page which is 20 mins of clicking through prelim pages
> When I enter <foo> in the foo field
> Then the bar field is auto-completed with <bar>
> Examples(1-2):
> | foo | bar |
> | eggs | bacon |
> | toast | marmite |
> {quote}

-- 
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


Reply via email to