SlideShare ist ein Scribd-Unternehmen logo
1 von 21
Downloaden Sie, um offline zu lesen
Verifying microservices in
chains without chain
testing?
Pascal Dufour
pascal@agilix.nl
@pascal_dufour
Consumer Driven Contracts
What do you know.
1 minute
AgiliX @ TestCon Europe 2019
A) Statement 1: Discuss 2 minute with your neighbor
B) Statement 1: Discuss 3 minute with a pair of neighbors
C) Vote as a group
Debrief &Take aways
The plan for this “talk”
AgiliX @ TestCon Europe 2019
The idea
Repeat with statement 2
Repeat with statement 3
How did we get contract testing to work
Chain testing
Backend
payment
Customer flow
AgiliX @ TestCon Europe 2019
Backend
Onboard
customer
Backend
Buy product
Backend
…
Frontend
payment
Frontend
Onboard
customer
Frontend
Buy product
Frontend
….
AgiliX @ TestCon Europe 2019
AgiliX @ TestCon Europe 2019
Chain testing reality
• The real thing
• Visual tests
• Business test
• Realistic simulations
• Connected to all external
systems
• ”All” user test are possible
Positive
• Test data (hell)
• Never in sync (configuration)
• Long run time
• Difficult to debug
• Late feedback
• Too many dependencies
• Operation costs
• False sense of security
Negative
The Idea?
Address
Producer
GetAddress
(PostalCode)
Car
GetAddress
(PostalCode)
Bike
GetAddress
(GPS coordinates)
Drone
A
B
C
A’
D
E
Scenario’s
Contracts :
AgiliX @ TestCon Europe 2019
Definitions
• Consumer Driven Contracts is a pattern that drives the
development of the Producer from its Consumers point of view.
• Producer
Service that exposes an API / Sends an message
• Consumer
Service that consumes the the API of the producer /Send a request
• Contract
Agreement between consumer and producer what the API / message
will look like.
AgiliX @ TestCon Europe 2019
Which problems solves CDC
• Late feedback from a changing API.
• Producer design not fitting the expectation by consumers
• Unclear expectation of the behavior of the API
AgiliX @ TestCon Europe 2019
Microservices
Is there for microservices a different test strategy?
AgiliX @ TestCon Europe 2019
e 2 e
Integration
Unit
A) Statement 1: Discuss 2 minute with your neighbor
B) Statement 1: Discuss 3 minute with a pair of neighbors
C) Vote as a group
Debrief &Take aways
The plan for this “talk”
AgiliX @ TestCon Europe 2019
The idea
Repeat with statement 2
Repeat with statement 3
How did we get contract testing to work
AgiliX @ TestCon Europe 2019
CDC is only useful for
testing the syntax
max fieldlength, only
nummeric, etc.
AgiliX @ TestCon Europe 2019
Huh? / Really? / So?
Relations between
dependent fields should
be tested!
When Tax amount is specified,
Tax % might be required
AgiliX @ TestCon Europe 2019
Huh? / Really? / So?
A CDC-test should
always break when a
contract is changed!
AgiliX @ TestCon Europe 2019
Huh? / Really? / So?
Debrief
• Consumer Driven Contracts is a pattern that drives the
development of the Producer from its Consumers point of view.
• Force communication
• Formal
• Documentation
• Fast feedback during development
AgiliX @ TestCon Europe 2019
How did we get it to work
• No availability of the acceptance test environment
(production like) anymore
• A few determined enthusiastic developers
• Setup pipelines / examples
• Frequent Knowledge sessions
• Mentoring others who where new.
• Each teams monitor his own tests.
• Review cross team
AgiliX @ TestCon Europe 2019
Take aways
• Consumer Driven Contracts is a pattern that drives the
development of the Producer from its Consumers point of view.
• Force communication
• Fast feedback to the developer.
• Producer design seen as black box (design should be tested by
producer it self)
• Determined enthusiastic developers
• Data format like an IBAN number should be tested.
• Contract should be extendable (adding additional fields by the
producer should be possible.)
• Stubs needed for the contract are useful elsewhere
• The principle of CDC can be used outside micro services.
AgiliX @ TestCon Europe 2019
Join Slido.com with #testcon2019
Thank you
All slides can be download at
http://Agilix.nl/
AgiliX @ TestCon Europe 2019
Links
• Martin Fowler Consumer-Driven Contracts: A Service Evolution
Pattern
• Marcin Grzejszczak consumer driven contract
• Spotify: Testing of Microservices
Special thanks to
Cirilo wortel
Daan Koolman
AgiliX @ TestCon Europe 2019
Pascal Dufour
AgiliX @ TestCon Europe 2019
Getting a Grip on
Exploratory Testing

Weitere ähnliche Inhalte

Ähnlich wie Contract testing TestCon 2019

What does it take to be an architect
What does it take to be an architectWhat does it take to be an architect
What does it take to be an architectConstantine Slisenka
 
Ensure the integration of Microservices with Consumer Driven Contracts
Ensure the integration of Microservices with Consumer Driven ContractsEnsure the integration of Microservices with Consumer Driven Contracts
Ensure the integration of Microservices with Consumer Driven ContractsIngo Griebsch
 
What does it take to be architect (for Cjicago JUG)
What does it take to be architect (for Cjicago JUG)What does it take to be architect (for Cjicago JUG)
What does it take to be architect (for Cjicago JUG)Constantine Slisenka
 
The Future of BriteCore - Product Development
The Future of BriteCore - Product DevelopmentThe Future of BriteCore - Product Development
The Future of BriteCore - Product DevelopmentPhil Reynolds
 
CWIN17 telford api management, practical implementation experience - david ru...
CWIN17 telford api management, practical implementation experience - david ru...CWIN17 telford api management, practical implementation experience - david ru...
CWIN17 telford api management, practical implementation experience - david ru...Capgemini
 
Commit to the Cause, Push for Change: Contributing to Call for Code Open Sour...
Commit to the Cause, Push for Change: Contributing to Call for Code Open Sour...Commit to the Cause, Push for Change: Contributing to Call for Code Open Sour...
Commit to the Cause, Push for Change: Contributing to Call for Code Open Sour...Daniel Krook
 
Draftkings: Launching w/ Confidence at Scale, FutureStack17 NYC
Draftkings: Launching w/ Confidence at Scale, FutureStack17 NYCDraftkings: Launching w/ Confidence at Scale, FutureStack17 NYC
Draftkings: Launching w/ Confidence at Scale, FutureStack17 NYCNew Relic
 
Model-Based Testing for ALM Octane: Better tests, built faster
Model-Based Testing for ALM Octane: Better tests, built faster Model-Based Testing for ALM Octane: Better tests, built faster
Model-Based Testing for ALM Octane: Better tests, built faster Curiosity Software Ireland
 
Growing an API Culture - APIdays LIVE AU 2020
Growing an API Culture - APIdays LIVE AU 2020Growing an API Culture - APIdays LIVE AU 2020
Growing an API Culture - APIdays LIVE AU 2020Saul Caganoff
 
apidays LIVE Paris - Growing an API Culture by Saul Caganoff & Liz Douglass
apidays LIVE Paris - Growing an API Culture by Saul Caganoff & Liz Douglassapidays LIVE Paris - Growing an API Culture by Saul Caganoff & Liz Douglass
apidays LIVE Paris - Growing an API Culture by Saul Caganoff & Liz Douglassapidays
 
apidays LIVE Australia - Growing an API Culture by Liz Douglass & Saul Caganoff
apidays LIVE Australia - Growing an API Culture by Liz Douglass & Saul Caganoffapidays LIVE Australia - Growing an API Culture by Liz Douglass & Saul Caganoff
apidays LIVE Australia - Growing an API Culture by Liz Douglass & Saul Caganoffapidays
 
IBM Blockchain Labs Explained v1.0
IBM Blockchain Labs Explained v1.0IBM Blockchain Labs Explained v1.0
IBM Blockchain Labs Explained v1.0Matt Lucas
 
Testing SAP PI/PO Interfaces the easy way
Testing SAP PI/PO Interfaces the easy wayTesting SAP PI/PO Interfaces the easy way
Testing SAP PI/PO Interfaces the easy wayDaniel Graversen
 
SMTAI PowerPoint: Blockchain for High Tech
SMTAI PowerPoint: Blockchain for High Tech SMTAI PowerPoint: Blockchain for High Tech
SMTAI PowerPoint: Blockchain for High Tech Quentin Samelson
 
Understanding and Executing on API Developer Experience
Understanding and Executing on API Developer ExperienceUnderstanding and Executing on API Developer Experience
Understanding and Executing on API Developer ExperienceKeshav Vasudevan
 
Curiosity and Infuse Consulting Present: Sustainable Test Automation Strategi...
Curiosity and Infuse Consulting Present: Sustainable Test Automation Strategi...Curiosity and Infuse Consulting Present: Sustainable Test Automation Strategi...
Curiosity and Infuse Consulting Present: Sustainable Test Automation Strategi...Curiosity Software Ireland
 
Understanding and Executing on API Developer Experience
Understanding and Executing on API Developer ExperienceUnderstanding and Executing on API Developer Experience
Understanding and Executing on API Developer ExperienceSmartBear
 
Six sigma in various industries
Six sigma in various industriesSix sigma in various industries
Six sigma in various industriesAamir chouhan
 
MongoDB World 2019: Building Flexible and Secure Customer Applications with M...
MongoDB World 2019: Building Flexible and Secure Customer Applications with M...MongoDB World 2019: Building Flexible and Secure Customer Applications with M...
MongoDB World 2019: Building Flexible and Secure Customer Applications with M...MongoDB
 
How adding a further tool can be a good thing
How adding a further tool can be a good thingHow adding a further tool can be a good thing
How adding a further tool can be a good thingBelsoft
 

Ähnlich wie Contract testing TestCon 2019 (20)

What does it take to be an architect
What does it take to be an architectWhat does it take to be an architect
What does it take to be an architect
 
Ensure the integration of Microservices with Consumer Driven Contracts
Ensure the integration of Microservices with Consumer Driven ContractsEnsure the integration of Microservices with Consumer Driven Contracts
Ensure the integration of Microservices with Consumer Driven Contracts
 
What does it take to be architect (for Cjicago JUG)
What does it take to be architect (for Cjicago JUG)What does it take to be architect (for Cjicago JUG)
What does it take to be architect (for Cjicago JUG)
 
The Future of BriteCore - Product Development
The Future of BriteCore - Product DevelopmentThe Future of BriteCore - Product Development
The Future of BriteCore - Product Development
 
CWIN17 telford api management, practical implementation experience - david ru...
CWIN17 telford api management, practical implementation experience - david ru...CWIN17 telford api management, practical implementation experience - david ru...
CWIN17 telford api management, practical implementation experience - david ru...
 
Commit to the Cause, Push for Change: Contributing to Call for Code Open Sour...
Commit to the Cause, Push for Change: Contributing to Call for Code Open Sour...Commit to the Cause, Push for Change: Contributing to Call for Code Open Sour...
Commit to the Cause, Push for Change: Contributing to Call for Code Open Sour...
 
Draftkings: Launching w/ Confidence at Scale, FutureStack17 NYC
Draftkings: Launching w/ Confidence at Scale, FutureStack17 NYCDraftkings: Launching w/ Confidence at Scale, FutureStack17 NYC
Draftkings: Launching w/ Confidence at Scale, FutureStack17 NYC
 
Model-Based Testing for ALM Octane: Better tests, built faster
Model-Based Testing for ALM Octane: Better tests, built faster Model-Based Testing for ALM Octane: Better tests, built faster
Model-Based Testing for ALM Octane: Better tests, built faster
 
Growing an API Culture - APIdays LIVE AU 2020
Growing an API Culture - APIdays LIVE AU 2020Growing an API Culture - APIdays LIVE AU 2020
Growing an API Culture - APIdays LIVE AU 2020
 
apidays LIVE Paris - Growing an API Culture by Saul Caganoff & Liz Douglass
apidays LIVE Paris - Growing an API Culture by Saul Caganoff & Liz Douglassapidays LIVE Paris - Growing an API Culture by Saul Caganoff & Liz Douglass
apidays LIVE Paris - Growing an API Culture by Saul Caganoff & Liz Douglass
 
apidays LIVE Australia - Growing an API Culture by Liz Douglass & Saul Caganoff
apidays LIVE Australia - Growing an API Culture by Liz Douglass & Saul Caganoffapidays LIVE Australia - Growing an API Culture by Liz Douglass & Saul Caganoff
apidays LIVE Australia - Growing an API Culture by Liz Douglass & Saul Caganoff
 
IBM Blockchain Labs Explained v1.0
IBM Blockchain Labs Explained v1.0IBM Blockchain Labs Explained v1.0
IBM Blockchain Labs Explained v1.0
 
Testing SAP PI/PO Interfaces the easy way
Testing SAP PI/PO Interfaces the easy wayTesting SAP PI/PO Interfaces the easy way
Testing SAP PI/PO Interfaces the easy way
 
SMTAI PowerPoint: Blockchain for High Tech
SMTAI PowerPoint: Blockchain for High Tech SMTAI PowerPoint: Blockchain for High Tech
SMTAI PowerPoint: Blockchain for High Tech
 
Understanding and Executing on API Developer Experience
Understanding and Executing on API Developer ExperienceUnderstanding and Executing on API Developer Experience
Understanding and Executing on API Developer Experience
 
Curiosity and Infuse Consulting Present: Sustainable Test Automation Strategi...
Curiosity and Infuse Consulting Present: Sustainable Test Automation Strategi...Curiosity and Infuse Consulting Present: Sustainable Test Automation Strategi...
Curiosity and Infuse Consulting Present: Sustainable Test Automation Strategi...
 
Understanding and Executing on API Developer Experience
Understanding and Executing on API Developer ExperienceUnderstanding and Executing on API Developer Experience
Understanding and Executing on API Developer Experience
 
Six sigma in various industries
Six sigma in various industriesSix sigma in various industries
Six sigma in various industries
 
MongoDB World 2019: Building Flexible and Secure Customer Applications with M...
MongoDB World 2019: Building Flexible and Secure Customer Applications with M...MongoDB World 2019: Building Flexible and Secure Customer Applications with M...
MongoDB World 2019: Building Flexible and Secure Customer Applications with M...
 
How adding a further tool can be a good thing
How adding a further tool can be a good thingHow adding a further tool can be a good thing
How adding a further tool can be a good thing
 

Mehr von Pascal Dufour

Meetup How we became Software testing world champion
Meetup How we became Software testing world championMeetup How we became Software testing world champion
Meetup How we became Software testing world championPascal Dufour
 
Road 2 devops at Stater
Road 2 devops  at StaterRoad 2 devops  at Stater
Road 2 devops at StaterPascal Dufour
 
Agile testing organizational mindshift
Agile testing organizational mindshiftAgile testing organizational mindshift
Agile testing organizational mindshiftPascal Dufour
 
Stop coding start testing
Stop coding start testingStop coding start testing
Stop coding start testingPascal Dufour
 
A-TDD workshop Testnet
A-TDD workshop Testnet A-TDD workshop Testnet
A-TDD workshop Testnet Pascal Dufour
 
Happier teams by cesario ramos and pascal dufour
Happier teams by cesario ramos and pascal dufourHappier teams by cesario ramos and pascal dufour
Happier teams by cesario ramos and pascal dufourPascal Dufour
 
Think different visualization tools for testers StarEast 2013 pascaldufour
Think different  visualization tools for testers  StarEast 2013 pascaldufourThink different  visualization tools for testers  StarEast 2013 pascaldufour
Think different visualization tools for testers StarEast 2013 pascaldufourPascal Dufour
 
Successful testing continuous delivery (Testnet 2013)
Successful testing continuous delivery (Testnet 2013)Successful testing continuous delivery (Testnet 2013)
Successful testing continuous delivery (Testnet 2013)Pascal Dufour
 
Visibility najaarsevent testnet
Visibility najaarsevent testnetVisibility najaarsevent testnet
Visibility najaarsevent testnetPascal Dufour
 

Mehr von Pascal Dufour (9)

Meetup How we became Software testing world champion
Meetup How we became Software testing world championMeetup How we became Software testing world champion
Meetup How we became Software testing world champion
 
Road 2 devops at Stater
Road 2 devops  at StaterRoad 2 devops  at Stater
Road 2 devops at Stater
 
Agile testing organizational mindshift
Agile testing organizational mindshiftAgile testing organizational mindshift
Agile testing organizational mindshift
 
Stop coding start testing
Stop coding start testingStop coding start testing
Stop coding start testing
 
A-TDD workshop Testnet
A-TDD workshop Testnet A-TDD workshop Testnet
A-TDD workshop Testnet
 
Happier teams by cesario ramos and pascal dufour
Happier teams by cesario ramos and pascal dufourHappier teams by cesario ramos and pascal dufour
Happier teams by cesario ramos and pascal dufour
 
Think different visualization tools for testers StarEast 2013 pascaldufour
Think different  visualization tools for testers  StarEast 2013 pascaldufourThink different  visualization tools for testers  StarEast 2013 pascaldufour
Think different visualization tools for testers StarEast 2013 pascaldufour
 
Successful testing continuous delivery (Testnet 2013)
Successful testing continuous delivery (Testnet 2013)Successful testing continuous delivery (Testnet 2013)
Successful testing continuous delivery (Testnet 2013)
 
Visibility najaarsevent testnet
Visibility najaarsevent testnetVisibility najaarsevent testnet
Visibility najaarsevent testnet
 

Kürzlich hochgeladen

Regression analysis: Simple Linear Regression Multiple Linear Regression
Regression analysis:  Simple Linear Regression Multiple Linear RegressionRegression analysis:  Simple Linear Regression Multiple Linear Regression
Regression analysis: Simple Linear Regression Multiple Linear RegressionRavindra Nath Shukla
 
Monthly Social Media Update April 2024 pptx.pptx
Monthly Social Media Update April 2024 pptx.pptxMonthly Social Media Update April 2024 pptx.pptx
Monthly Social Media Update April 2024 pptx.pptxAndy Lambert
 
Best Basmati Rice Manufacturers in India
Best Basmati Rice Manufacturers in IndiaBest Basmati Rice Manufacturers in India
Best Basmati Rice Manufacturers in IndiaShree Krishna Exports
 
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesMysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesDipal Arora
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...lizamodels9
 
Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Neil Kimberley
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxWorkforce Group
 
Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...Roland Driesen
 
Event mailer assignment progress report .pdf
Event mailer assignment progress report .pdfEvent mailer assignment progress report .pdf
Event mailer assignment progress report .pdftbatkhuu1
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Roland Driesen
 
VIP Call Girls Gandi Maisamma ( Hyderabad ) Phone 8250192130 | ₹5k To 25k Wit...
VIP Call Girls Gandi Maisamma ( Hyderabad ) Phone 8250192130 | ₹5k To 25k Wit...VIP Call Girls Gandi Maisamma ( Hyderabad ) Phone 8250192130 | ₹5k To 25k Wit...
VIP Call Girls Gandi Maisamma ( Hyderabad ) Phone 8250192130 | ₹5k To 25k Wit...Suhani Kapoor
 
Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...
Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...
Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...lizamodels9
 
Famous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st CenturyFamous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st Centuryrwgiffor
 
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdfRenandantas16
 
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 DelhiCall Girls in Delhi
 
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...Aggregage
 
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876dlhescort
 
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒anilsa9823
 
Progress Report - Oracle Database Analyst Summit
Progress  Report - Oracle Database Analyst SummitProgress  Report - Oracle Database Analyst Summit
Progress Report - Oracle Database Analyst SummitHolger Mueller
 

Kürzlich hochgeladen (20)

Regression analysis: Simple Linear Regression Multiple Linear Regression
Regression analysis:  Simple Linear Regression Multiple Linear RegressionRegression analysis:  Simple Linear Regression Multiple Linear Regression
Regression analysis: Simple Linear Regression Multiple Linear Regression
 
Monthly Social Media Update April 2024 pptx.pptx
Monthly Social Media Update April 2024 pptx.pptxMonthly Social Media Update April 2024 pptx.pptx
Monthly Social Media Update April 2024 pptx.pptx
 
Best Basmati Rice Manufacturers in India
Best Basmati Rice Manufacturers in IndiaBest Basmati Rice Manufacturers in India
Best Basmati Rice Manufacturers in India
 
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesMysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
 
Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptx
 
Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...
 
Event mailer assignment progress report .pdf
Event mailer assignment progress report .pdfEvent mailer assignment progress report .pdf
Event mailer assignment progress report .pdf
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...
 
VIP Call Girls Gandi Maisamma ( Hyderabad ) Phone 8250192130 | ₹5k To 25k Wit...
VIP Call Girls Gandi Maisamma ( Hyderabad ) Phone 8250192130 | ₹5k To 25k Wit...VIP Call Girls Gandi Maisamma ( Hyderabad ) Phone 8250192130 | ₹5k To 25k Wit...
VIP Call Girls Gandi Maisamma ( Hyderabad ) Phone 8250192130 | ₹5k To 25k Wit...
 
Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...
Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...
Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...
 
Famous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st CenturyFamous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st Century
 
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
 
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi
 
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
 
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
 
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
 
Progress Report - Oracle Database Analyst Summit
Progress  Report - Oracle Database Analyst SummitProgress  Report - Oracle Database Analyst Summit
Progress Report - Oracle Database Analyst Summit
 

Contract testing TestCon 2019

  • 1. Verifying microservices in chains without chain testing? Pascal Dufour pascal@agilix.nl @pascal_dufour
  • 2. Consumer Driven Contracts What do you know. 1 minute AgiliX @ TestCon Europe 2019
  • 3. A) Statement 1: Discuss 2 minute with your neighbor B) Statement 1: Discuss 3 minute with a pair of neighbors C) Vote as a group Debrief &Take aways The plan for this “talk” AgiliX @ TestCon Europe 2019 The idea Repeat with statement 2 Repeat with statement 3 How did we get contract testing to work
  • 4. Chain testing Backend payment Customer flow AgiliX @ TestCon Europe 2019 Backend Onboard customer Backend Buy product Backend … Frontend payment Frontend Onboard customer Frontend Buy product Frontend ….
  • 5. AgiliX @ TestCon Europe 2019
  • 6. AgiliX @ TestCon Europe 2019 Chain testing reality • The real thing • Visual tests • Business test • Realistic simulations • Connected to all external systems • ”All” user test are possible Positive • Test data (hell) • Never in sync (configuration) • Long run time • Difficult to debug • Late feedback • Too many dependencies • Operation costs • False sense of security Negative
  • 8. Definitions • Consumer Driven Contracts is a pattern that drives the development of the Producer from its Consumers point of view. • Producer Service that exposes an API / Sends an message • Consumer Service that consumes the the API of the producer /Send a request • Contract Agreement between consumer and producer what the API / message will look like. AgiliX @ TestCon Europe 2019
  • 9. Which problems solves CDC • Late feedback from a changing API. • Producer design not fitting the expectation by consumers • Unclear expectation of the behavior of the API AgiliX @ TestCon Europe 2019
  • 10. Microservices Is there for microservices a different test strategy? AgiliX @ TestCon Europe 2019 e 2 e Integration Unit
  • 11. A) Statement 1: Discuss 2 minute with your neighbor B) Statement 1: Discuss 3 minute with a pair of neighbors C) Vote as a group Debrief &Take aways The plan for this “talk” AgiliX @ TestCon Europe 2019 The idea Repeat with statement 2 Repeat with statement 3 How did we get contract testing to work
  • 12. AgiliX @ TestCon Europe 2019
  • 13. CDC is only useful for testing the syntax max fieldlength, only nummeric, etc. AgiliX @ TestCon Europe 2019 Huh? / Really? / So?
  • 14. Relations between dependent fields should be tested! When Tax amount is specified, Tax % might be required AgiliX @ TestCon Europe 2019 Huh? / Really? / So?
  • 15. A CDC-test should always break when a contract is changed! AgiliX @ TestCon Europe 2019 Huh? / Really? / So?
  • 16. Debrief • Consumer Driven Contracts is a pattern that drives the development of the Producer from its Consumers point of view. • Force communication • Formal • Documentation • Fast feedback during development AgiliX @ TestCon Europe 2019
  • 17. How did we get it to work • No availability of the acceptance test environment (production like) anymore • A few determined enthusiastic developers • Setup pipelines / examples • Frequent Knowledge sessions • Mentoring others who where new. • Each teams monitor his own tests. • Review cross team AgiliX @ TestCon Europe 2019
  • 18. Take aways • Consumer Driven Contracts is a pattern that drives the development of the Producer from its Consumers point of view. • Force communication • Fast feedback to the developer. • Producer design seen as black box (design should be tested by producer it self) • Determined enthusiastic developers • Data format like an IBAN number should be tested. • Contract should be extendable (adding additional fields by the producer should be possible.) • Stubs needed for the contract are useful elsewhere • The principle of CDC can be used outside micro services. AgiliX @ TestCon Europe 2019
  • 19. Join Slido.com with #testcon2019 Thank you All slides can be download at http://Agilix.nl/ AgiliX @ TestCon Europe 2019
  • 20. Links • Martin Fowler Consumer-Driven Contracts: A Service Evolution Pattern • Marcin Grzejszczak consumer driven contract • Spotify: Testing of Microservices Special thanks to Cirilo wortel Daan Koolman AgiliX @ TestCon Europe 2019
  • 21. Pascal Dufour AgiliX @ TestCon Europe 2019 Getting a Grip on Exploratory Testing