Issue Type: Improvement Improvement
Affects Versions: 3.x
Assignee: Unassigned
Components: Core
Created: 13/Feb/13 4:05 PM
Description:

It is generally acceptable that you can describe a business case just using Given/When/Then/And suite.

However when the scenario you need to write is a long one (say 30 or more steps) I have to accept that the story starts sounding a bit to fade (say made up). It works but you would prefer it to sound more natural.

I think this could be supported if we improve jBehave to allow defining "And" synonyms with exactly the same functionality as the actual "And"?

So you can say something like this:

Given our Payments system supports SWIFT messages
When a FX transaction message arrives
And the "from" currency is USD
And the "to" currency is GBP
And the exchange rate is 0.71002
And the transaction date is the next business day
And the transaction amount is $200.00
And the payer account no is 1234567890
....
And +30 others "when" steps describing the Foreigner Exchange message
Then.....

Someone would say (me included) that if I can say "With' and "Having" are synonyms of "And" and rewrite the story like below then it would sound more natural.

Given our Payments system supports SWIFT messages
When a FX transaction message arrives
Having the "from" currency as USD
And the "to" currency as GBP
With an exchange rate of 0.71002
......

Fix Versions: 3.x
Project: JBehave
Priority: Major Major
Reporter: Julian Greculescu
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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