From: mltsy <j...@ownlocal.com>
Date: Tue, 21 Feb 2012 12:58:13 -0800 (PST)
Local: Tues, Feb 21 2012 3:58 pm
Subject: Cucumber feature syntax convention for a sequential scenario
I'm pretty new to cucumber, and I'm just learning the conventions.
One feature I am writing lends itself to a kind of "sequential" scenario. Consider this post both a question "Is there already a conventional way to express this?" and (if not) a proposal of a convention to express a sequence of events in cucumber scenarios without separating the events into separate scenarios. The main reason is that I feel that, in some cases, splitting it into separate scenarios is less semantically accurate than keeping it as a single scenario. I discovered that using When... Then ... When ... Then ... works
My original conventional feature definition: http://pastie.org/3428567
But here's a better example of something that would be a good sequence
Feature: Subscribe to the email list
Scenario: Subscribe using a valid e-mail address
Notice the interwoven When and Then statements. What do you think of
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||