In this Skill Sprint I introduce behavior driven development principles, tell a few words about Gherkin language and demonstrate how this can be applied to Delphi programming.
1. EMBARCADERO TECHNOLOGIESEMBARCADERO TECHNOLOGIES
Behavior Driven
Development
Roman Yankovsky
roman@yankovsky.me
http://roman.yankovsky.me/
http://plus.google.com/+RomanYankovsky/
12th August, 2014
Download a free trial – NOW!
http://embt.co/trialdownloads
2. EMBARCADERO TECHNOLOGIES
This Skill Sprint Works with . . .
• Windows
• OS X
• Android
• iOS
• RAD Studio
• Appmethod
• Object Pascal
• C++
• RAD Studio XE6 DocWiki
– http://embt.co/raddocwiki
– http://docwiki.embarcadero.com/RADStudio/XE6/en/
• Appmethod 1.14 DocWiki
– http://embt.co/appmethoddocwiki
– http://docwiki.appmethod.com/appmethod/1.14/topics/en/
• Appmethod supports the FireMonkey
framework on all 4 platforms while RAD
Studio, Delphi and C++Builder also support
VCL on Windows. Contact sales with any
questions!
3. EMBARCADERO TECHNOLOGIES
Communication is the Key
Customer :=
TCustomer.Create;
…
We would like to
encourage new users
to buy in your shop.
Therefore we offer
10% discount for their
first order.
1. Register a user
2. Order a book
3. Verify price
Product Owner Software Engineer QA
4. EMBARCADERO TECHNOLOGIES
Shared Understanding
Product Owner Software Engineer QA
Given the user has not ordered yet
When the user adds a book with the price of EUR 10 into his shopping cart
Then the shopping cart sub-total is EUR 9
12. EMBARCADERO TECHNOLOGIES
User Story in BDD
Feature: Calculator
In order to avoid silly mistakes
As a math idiot
I want to be told the sum and the multiplication of two numbers
Scenario: Add two numbers
Given I have entered 50 in calculator
And I have entered 50 in calculator
When I press Add
Then the result should be 100 on the screen