Scenario with nested or recursive example table -----------------------------------------------
Key: JBEHAVE-488 URL: http://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. But it is important to test this on all pages since the functionality is slightly different on each of these pages. For eg. Scenario: 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: 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 test with examples over another parametrized value (e.g 'Page' here). h2. Proposed solution 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 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