[
https://jira.codehaus.org/browse/JBEHAVE-488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=288329#comment-288329
]
Diego Rivera commented on JBEHAVE-488:
--------------------------------------
Wouldn't this be solved by using GivenStories and parametrisation of them using
Examples and #{row}?
If not, then perhaps this might be an even more elegant solution: define
parameters via that mechanism that are inherited onto "included" stories, and
supersede the values used therein. Thus, when an example for GivenStories sets
the value for <foo> to X, then the same value of <foo> will be used in the
matching story, overriding any "local" definition of <foo>.
Make sense?
> Scenario with nested or recursive example table
> -----------------------------------------------
>
> Key: JBEHAVE-488
> URL: https://jira.codehaus.org/browse/JBEHAVE-488
> Project: JBehave
> Issue Type: New Feature
> Reporter: kk sure
>
> We have a UI functionality that repeats on many pages (say it is a JSPF
> component that is reusable, with configurable variation). But it is important
> to test this on all pages since the functionality is slightly different on
> each of these pages.
> h2. How we have to code this today:
> Scenario: Food widget in Home page
> Given I am on Home page
> When I enter <food_item> in the menu field
> Then I see <related_food_items> in the dropdown
> Examples:
> |food_item|related_food_items|
> |pizza|"cheese, chicken, bacon"|
> |fruit_salad|"mangoes, strawberry, grapes"|
> |rice|"brown, white, fried"|
> The exact same test will repeat on a different page like below
> Scenario: Food widget in OrderFood page
> Given I am on OrderFood page
> When I enter <food_item> in the menu field
> Then I see <related_food_items> in the dropdown
> Examples:
> |food_item|related_food_items|
> |pizza|"cheese, chicken, bacon"|
> |fruit_salad|"mangoes, strawberry, grapes"|
> |rice|"brown, white, fried"|
> h2. Problem Statement: We want to run a particular scenario with 'examples'
> over another parametrized value (e.g 'Page' here).
> h2. Proposed solution: foreach meta-tag at scenario level that has processing
> implications.
> Scenario:
> Meta:
> @foreach Page: Home, OrderFood, CheckStatus, CancelOrder
> Given I am on the <Page> page
> When I enter <food_item> in the menu field
> Then I see <related_food_items> in the dropdown
> Examples:
> |food_item|related_food_items|
> |pizza|"cheese, chicken, bacon"|
> |fruit_salad|"mangoes, strawberry, grapes"|
> |rice|"brown, white, fried"|
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.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