Tempting :)

another feature I'm missing so far, that I have not found at least:

I need to put a prioritization to my scenarios that make my stories. This
prioritazion might not follow the stories, e.g. it might make sense to
implement scenarios from different stories, even if the story is not
complete. It would be convenient to add this to the output as well. Example
(Dan North's example):

Title: Customer withdraws cash
*As a* customer,
*I want* to withdraw cash from an ATM,
*so that* I don't have to wait in line at the bank.

Scenario 1: Account is in credit
*Given* the account is in credit
*And* the card is valid
*And* the dispenser contains cash
*When* the customer requests cash
*Then* ensure the account is debited
*And* ensure cash is dispensed
*And* ensure the card is returned

Scenario 2: Account is overdrawn past the overdraft limit
*Given* the account is overdrawn
*And* the card is valid
*When* the customer requests cash
*Then* ensure a rejection message is displayed
*And* ensure cash is not dispensed
*And* ensure the card is returned


Title: Customer gets account information
*As a* customer,
*I want* to get account information in the ATM,
*so that* I don't have to wait in line at the bank.

Scenario 1: On screen account information
*Given* the ATM has a screen**
*When* the customer chooses on-screen account information
*Then* print the account information on the screen

Scenario 2: Printed account information
*Given* the ATM has more than 1 paper receipt available
*When* the customer chooses a printed account information
*Then* print the account information on the paper receipt


Now, it might make sense to first implement in this order:

"Scenario 1: Account is in credit"

"Scenario 1: On screen account information"

Scenario 2: Printed account information

Scenario 2: Account is overdrawn past the overdraft limit

(This example is not the best, but I think you get the sense of where I'm
getting?)

In my story/scenario files, I can't find any way to define the pri. of each
scenario. Is there any way to do this? I guess this should be a part of the
org.jbehave.scenario.definition.ScenarioDefinition? This could then be used
for different outputs as discussed in previous mails. What do you guys
think? Does this make any sense?
Egil

Reply via email to