Hi, Is the Given, When, Then framework, the user story, the acceptance criteria or both? Aidy
On Jun 14, 2008, at 12:50 PM, aidy lewis wrote:> Hi, > > Is the Given, When, Then framework, the user story, the acceptance > criteria or both?From my talk at railsconf: http://en.oreilly.com/rails2008/public/schedule/detail/2055 ============================================Story: measure progress towards registration goals As a conference organizer I want to see a report of registrations So that I can measure progress towards registration goals Scenario: one registration shows as 1% Given a goal of 200 registrations When 1 attendee registers Then the goal should be 1% achieved Scenario: one registration less than the goal shows as 99% Given a goal of 200 registrations When 199 attendees register Then the goal should be 99% achieved ============================================ The story and the text before the first scenario is the User Story as we''ve always known it in XP. The Scenarios are automated, and represent acceptance criteria. Make sense? Cheers, David -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20080614/f7bc1709/attachment-0001.html>
Hi David, On 14/06/2008, David Chelimsky <dchelimsky at gmail.com> wrote:> > On Jun 14, 2008, at 12:50 PM, aidy lewis wrote: > > Hi, > > Is the Given, When, Then framework, the user story, the acceptance > criteria or both? > > From my talk at railsconf: > http://en.oreilly.com/rails2008/public/schedule/detail/2055 > > > ============================================> Story: measure progress towards registration goals > As a conference organizer > I want to see a report of registrations > So that I can measure progress towards registration goals > > Scenario: one registration shows as 1% > Given a goal of 200 registrations > When 1 attendee registers > Then the goal should be 1% achieved > > Scenario: one registration less than the goal shows as 99% > Given a goal of 200 registrations > When 199 attendees register > Then the goal should be 99% achieved > ============================================> > The story and the text before the first scenario is the User Story as we''ve > always known it in XP. > > The Scenarios are automated, and represent acceptance criteria. > > Make sense? > > Cheers, > David >Certainly does. I am automating the tests (only tester on my project), but I have asked the BA''s not only to write the story then, but also give the scenarios. I do a lot of re-work on the story though. Should I just be asking just for the story and for me to add the tests (Given, When, Then) I also asked them for negative scenarios. Aidy
On Jun 14, 2008, at 1:23 PM, aidy lewis wrote:> Hi David, > > On 14/06/2008, David Chelimsky <dchelimsky at gmail.com> wrote: >> >> On Jun 14, 2008, at 12:50 PM, aidy lewis wrote: >> >> Hi, >> >> Is the Given, When, Then framework, the user story, the acceptance >> criteria or both? >> >> From my talk at railsconf: >> http://en.oreilly.com/rails2008/public/schedule/detail/2055 >> >> >> ============================================>> Story: measure progress towards registration goals >> As a conference organizer >> I want to see a report of registrations >> So that I can measure progress towards registration goals >> >> Scenario: one registration shows as 1% >> Given a goal of 200 registrations >> When 1 attendee registers >> Then the goal should be 1% achieved >> >> Scenario: one registration less than the goal shows as 99% >> Given a goal of 200 registrations >> When 199 attendees register >> Then the goal should be 99% achieved >> ============================================>> >> The story and the text before the first scenario is the User Story >> as we''ve >> always known it in XP. >> >> The Scenarios are automated, and represent acceptance criteria. >> >> Make sense? >> >> Cheers, >> David >> > > Certainly does. I am automating the tests (only tester on my project), > but I have asked the BA''s not only to write the story then, but also > give the scenarios. I do a lot of re-work on the story though. > > Should I just be asking just for the story and for me to add the tests > (Given, When, Then) > > I also asked them for negative scenarios.The ideal situation is that you and the BA''s sit down together to work this out. The goal here is group communication rather than one role owning part of the communication. Short of that, there is no one right way to do this. Perhaps they provide stories, you add scenarios as demonstration, they add more scenarios for thoroughness, etc. What is a "negative scenario"?
Hi David, On 14/06/2008, David Chelimsky <dchelimsky at gmail.com> wrote:> > What is a "negative scenario"?Thanks for getting back. I have been asked that twice in 2 days! In the use-case world they have negative or mis-use cases. These cases desribe forbidden or wrong input into the system that has not been specified. .... When the user enters alpha characters into the DoB field Then an error message appears informing him of this And gives an example of a correct input. Aidy
On Jun 14, 2008, at 1:43 PM, aidy lewis wrote:> Hi David, > > On 14/06/2008, David Chelimsky <dchelimsky at gmail.com> wrote: >> >> What is a "negative scenario"? > > Thanks for getting back. > > I have been asked that twice in 2 days! > > In the use-case world they have negative or mis-use cases. > > These cases desribe forbidden or wrong input into the system > that has not been specified. > > .... > When the user enters alpha characters into the DoB field > Then an error message appears informing him of this > And gives an example of a correct input.Got it. For me, that is positive :) But I get the idea. Thanks
Possibly Parallel Threads
- Icalendar.Parse(StringIO.new(aString)) complains about missing method, bytesize
- [Cucumber] after feature hook?
- XDC 2023: Registration & Call for Proposals now open!
- Any news on the rSpec books?
- Call for Talks, Tutorials, BoFs, Panels, Student Research Competition, and More!