ATDD It’s Not Just About Writing Tests
description
Transcript of ATDD It’s Not Just About Writing Tests
ATDD It’s Not Just About Writing
Tests
Debbie EvansPete Thomas
The Start
Requirement definition
Feature testing
Continuous testing
Traceability
Regression testing
Documentation
SBE
ATDD
Where we were…
Let’s automate stuff!
Users
Technology
Business Analyst
This looks like it’s just for tech, what about everyone else?
Why are we doing this?
Reset
What do you want me to build?
Technology
How do I know if it’s right?
Users
Can you tell me what the system does? How do I know you
built what we agreed?
How do I know you haven't broken anything?
Compliance & Audit
Did you build what was asked?
Did someone authorised to do so, say it was correct?
How do I know you haven't broken anything?
How did they know it was correct?
Change
Specification by Example?
Collaboration
Imperative Declarative
Imperative Declarative
Imperative Declarative
Imperative Declarative
Feature: Automated Trade Settlement
As a Settlements Operations UserI want settlements from agent banks to be processedSo that Trades reflect Settlement properly
Scenario: Autocash Settlement of a Free of Payment Trade on Value Date
Given a trade of <settlement type>And cash open quantity of <cash open quantity>And value date of <value date>When the business date is 18/07/2013Then the cash open quantity is updated to <updated cash open quantity>
Examples:
Settlement Type Cash Open Quantity Value Date Updated Cash Open QuantityFree of Payment 10,000 18/07/2013 0Free of Payment 11,000 19/07/2013 11,000Delivery versus Payment 12,000 18/07/2013 12,000
Imperative Declarative
Feature: Automated Trade Settlement
As a Settlements Operations UserI want settlements from agent banks to be processedSo that Trades reflect Settlement properly
Scenario: Autocash Settlement of a Free of Payment Trade on Value Date
Given a Free Of Payment TradeWhen the value date is todayThen the cash fully settles
Given a Free Of Payment TradeWhen the value date is in the futureThen the cash remains open
Given a Delivery versus Payment TradeWhen the value date is todayThen the cash remains open
But what about……
Consistent qualityLiving documentationTraceability
Tools?
Test better together
SBE + Social Testing = Collaborative Learning
It’s not just about testing!