How to bdd with concordion

  • 1,928 views
Uploaded on

 

More in: Technology , Education
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,928
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
7
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Agile XP
    TDD BDD
  • 2. TDD(test-driven development)
    XP
  • 3. TDD development cycle
  • 4. We can relax, don’t we?
  • 5. How to :
    get feature within sprint?
    write requirements in “Agile”?
    know when you are DONE?
    know that implemented feature is one you were asked to?

    .. but questions still occur:
  • 6. Feel difference
  • 7. Where to start
    What to test
    What not to test
    How much to test
    Everyone wanted to know: 
  • 8. Where are the drugs?
  • 9. BDD(Behavior-Driven Development)
  • 10.
  • 11. BDD solution
    When
    Given
    Then
  • 12. Title <feature>
    As a [role]I want [some action to be taken]so that [I derive some business value]
    USER STORY template
  • 13. Title: Registered user should have ability to send message to Assure info center.
    As a registered user,
    I want to ask Assure about new feature,
    so that I want to get Contact Us page to send proper message
  • 14. Given some initial context (the givens),When an event occurs,Then ensure some outcomes.
    ACCEPTANCE CRITERIA Template
  • 15. Scenario 1: Registered user should have ability login to the system.
    Given opened Assure login screen
    And there is Assure user with valid credentialsWhen user enters credential to username and password fields and clicks Login button
    Then user’s home page is openedAnd Contact Us link is visible
  • 16. Scenario 2: Logged in user should have ability to send message to info center.
    Given opened user’s home page
    When user clicks on Contact Us link
    Then Contact Us page is opened
    And Submit button appears
  • 17. Step 1. Write acceptance tests in a natural language that non-programmers can read.
    Step 2. Run tests to identify to what tests code is not implemented yet
    Step 3. Implement absence code (functionality).
    Step 4. Run tests once again and be sure that all tests are passed, repeat step 3 if needed.
    BDD workflow
  • 18. Benefits:
    Natural language that non-programmers can read
    Focus on business value
    Implement just enough to satisfy acceptance criteria
    Improved communication
  • 19. Instruments:
    RSpec
    Cucumber
    Jbehave
    PHP Spec
    Fitnesse
    Concordion
  • 20. CONCORDION.. how it works?
  • 21. DEMO
  • 22. Retrospective