cv/crab — Issue #26: Grab steps from Pre/Validation/Post-conditions
Author: cv
Created: 2011-10-10 05:06:16+00:00
State: open

It's a little easier to grasp if the steps fields are arranged like so:

Pre-condition: Given
Validation: When
Post-condition: Then

Problem is, there are multiple Given/When/Then cases:

Given I am logged in
And I am broke
When I apply for a loan of 4000000
And the branch manager approves it
Then the region manager should receive an alert
And the loan should be denied
And I should see a message "How the hell did you do that?"

And there are interleaved cases:

Given I am logged in
When I go to "My Account"
Then I should see my checkings account balance
When I go to my "Savings"
Then I should see my savings account balance
When ...

Examples are probably contrived, but real cases where this is extremely useful exist...