(In ) . 의 변형.


:링크가 바뀐 듯~ -yy

10분 정도 살펴본 후 드는 생각:


Template:

<Story>:
  • <Story Title>

  • <Narrative>

    • As a <Role>

    • I want <Feature>

    • So that <Benefit>

  • <Acceptance Criteria> - Set of <Scenario>s

    • <Scenario Title>

      • Given <Given>, and <Given>, ..., and <Given>

      • When <Event>

      • Then <Outcome>, and <Outcome>, ..., and <Outcome>

Example:

  • Title: Customer withdraws cash
  • Narrative
    • As a customer
    • I want to withdraw cash from an ATM,
    • So that I don't have to wait in line at the bank.
  • Acceptance Criteria
    • 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

Code(그냥 한번...):

with(JSSpec.DSL) {

Epic('Account management')
  Given('The account', 'The credit card')

  Story('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('Account is in credit')
      Given('The card is valid', 'The dispenser contains cash')
      When(function() {
        // event
      })
      Then(function() {
        // expected outcome
      })

    Scenario('Account is in credit')
      Given('The card is valid', 'The dispenser contains cash')
      When(function() {
        // event
      })
      Then(function() {
        // expected outcome
      })

  Story('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('Account is in credit')
      Given('The card is valid', 'The dispenser contains cash')
      When(function() {
        // event
      })
      Then(function() {
        // expected outcome
      })

    Scenario('Account is in credit')
      Given('The card is valid', 'The dispenser contains cash')
      When(function() {
        // event
      })
      Then(function() {
        // expected outcome
      })
}


Implementations:

AlansWiki: BehaviorDrivenDevelopment (last edited 2008-05-05 02:39:29 by )