SlideShare a Scribd company logo
@majcon
Test-Driven Development
ABAPCodeRetreat de Meern 2017
2
Damir Majer
Developer, Dev Coach and Trainer
@majcon
Unit-Tests mit ABAP® Unit
dpunkt.verlag
Besseres ABAP
Schnell, sicher, robust
SAP Press
CodeKata ABAP
Collaboration Project
www.codekata.io
Software development is complex
Copyright Majer Consulting
hey boss everything is under control…
how is presented how the truth is
Systematic testing
5
Testing techniques
Ad-hoc testingError guessing
Boundary value analysis
Path coverage testing
Intuitive testing
Semantic testing
Control flow testing Business process testing
Branch coverage testing
State transition analysis
Condition coverage testing
Cause-effect analysis Dataflow testing
Classification tree method
Compiler testing
Testing in pairs
Elementary comparison test
Weak point testing
Area analysis testing
Equivalence class partitioning analysis
Testing with a random value
Syntax testing Statement coverage testing
How to achieve testing during the
implementation phase?
Unit vs. integration testing
7
Integration testing Unit testing
ABAPCodeRetreat - TDD Intro by Damir Majer
Unit-Testing
“unit testing is a software testing method
by which individual units of source code, sets of one or more computer
program modules together with associated control data, usage
procedures, and operating procedures,
are tested to determine whether they are fit for use
WIKIPEDIA:
Test-Driven Development
“is a software development process that relies on the repetition of a
very short development cycle: requirements are turned into very specific
test cases, then the software is improved to pass the new tests, only.
This is opposed to software development that allows software to be
added that is not proven to meet requirements.
…TDD encourages simple designs and inspires confidence.
Test-driven development is related to the test-first programming
concepts of extreme programming, begun in 1999,
but more recently has created more general interest in its own right.”
WIKIPEDIA:
11and now?
Execution of ABAP Unit-Tests
SAP GUI or ABAP in Eclipse:
CTRL+SHIFT+F10
ABAP Unit on a Postcard
plan actualvs.
ABAP Unit Assertion-Methods
Test Driven Development
• write a test
• make it fail
• keep it simple
• tests are examples
• tests becomes
documentation
abapcoderetreat.events ACR
RED GREEN
REFACTOR
• get to green fast
• take baby steps
• stuck? undo and start
over
• write only enough code
to pass the test
• remove duplication (in
code and tests)
• rename and clean up
• run tests and stay green
• change implementation
not behaviour
• improve structure in
small steps
you start here!
What is your experience?
one more thing…
ABAP Trainings with focus on ABAP Unit and TDD
WDE401
WDAGIL
BC401
TDD with ABAP cATDD
Hands on…

More Related Content

What's hot (20)

PPTX
Automation test scripting techniques
Zhu Zhong
 
PPT
Simple Railroad Command Protocol
Ankit Singh
 
PPTX
Practical unit testing in c & c++
Matt Hargett
 
PDF
Agile Mumbai 2020 Conference | How to get the best ROI on Your Test Automati...
AgileNetwork
 
PPTX
Automation and Technical Debt
IBM UrbanCode Products
 
PPTX
Automated testing - how?
Markko Paas
 
PPTX
www.tutorialsbook.com presents Manual testing
Tutorials Book
 
PDF
Ivan Pashko - Simplifying test automation with design patterns
Ievgenii Katsan
 
PPTX
The Art of Testing Less without Sacrificing Quality @ ICSE 2015
Kim Herzig
 
PPTX
Bye Bye Cowboy Coder Days! (Legacy Code & TDD)
Kaunas Java User Group
 
PDF
Do you have a #bug? Your unit tests are not well planned
José San Román A. de Lara
 
PDF
Keyword Driven Testing
Maveryx
 
PPT
Automation With A Tool Demo
Nivetha Padmanaban
 
PDF
Code coverage for automation scripts
vodQA
 
PDF
Quality Assurance
Manifest Infotech
 
PPT
Understand regression testing
gaoliang641
 
PPT
Introducing fx cop
Nick Harrison
 
PPTX
Tdd for php
ABDEL RAHMAN KARIM
 
PPT
Agile Testing - Challenges
Mohan Krishna Kona
 
PDF
Code coverage & tools
Rajesh Kumar
 
Automation test scripting techniques
Zhu Zhong
 
Simple Railroad Command Protocol
Ankit Singh
 
Practical unit testing in c & c++
Matt Hargett
 
Agile Mumbai 2020 Conference | How to get the best ROI on Your Test Automati...
AgileNetwork
 
Automation and Technical Debt
IBM UrbanCode Products
 
Automated testing - how?
Markko Paas
 
www.tutorialsbook.com presents Manual testing
Tutorials Book
 
Ivan Pashko - Simplifying test automation with design patterns
Ievgenii Katsan
 
The Art of Testing Less without Sacrificing Quality @ ICSE 2015
Kim Herzig
 
Bye Bye Cowboy Coder Days! (Legacy Code & TDD)
Kaunas Java User Group
 
Do you have a #bug? Your unit tests are not well planned
José San Román A. de Lara
 
Keyword Driven Testing
Maveryx
 
Automation With A Tool Demo
Nivetha Padmanaban
 
Code coverage for automation scripts
vodQA
 
Quality Assurance
Manifest Infotech
 
Understand regression testing
gaoliang641
 
Introducing fx cop
Nick Harrison
 
Tdd for php
ABDEL RAHMAN KARIM
 
Agile Testing - Challenges
Mohan Krishna Kona
 
Code coverage & tools
Rajesh Kumar
 

Viewers also liked (7)

PDF
ABAPCodeRetreat - ABAP PUSH CHANNELS and SAP FIORI
ABAPCodeRetreat
 
PDF
ABAPCodeRetreat Frankfurt 2016 - TDD with ABAP
ABAPCodeRetreat
 
PDF
ABAPCodeRetreat 23.7.2016 - Abap in Eclipse
ABAPCodeRetreat
 
PPTX
ABAPCodeRetreat 23.7.2016 - TDD
ABAPCodeRetreat
 
PDF
ABAP Unit and TDD
Hendrik Neumann
 
PPTX
The best debugging tool - your brain
Christian Drumm
 
PDF
1H2007 Results Full
Magnit IR Team
 
ABAPCodeRetreat - ABAP PUSH CHANNELS and SAP FIORI
ABAPCodeRetreat
 
ABAPCodeRetreat Frankfurt 2016 - TDD with ABAP
ABAPCodeRetreat
 
ABAPCodeRetreat 23.7.2016 - Abap in Eclipse
ABAPCodeRetreat
 
ABAPCodeRetreat 23.7.2016 - TDD
ABAPCodeRetreat
 
ABAP Unit and TDD
Hendrik Neumann
 
The best debugging tool - your brain
Christian Drumm
 
1H2007 Results Full
Magnit IR Team
 
Ad

Similar to ABAPCodeRetreat - TDD Intro by Damir Majer (20)

PDF
Behavior Driven Development—A Guide to Agile Practices by Josh Eastman
QA or the Highway
 
PPTX
Unit 9 and Unit 10.pptx
ReshmaGummadi1
 
PPTX
intership ppt.pptxgggggggggggggggggggggggggggggggg
MadhushreeCK1
 
PDF
[India Merge World Tour] Coverity
Perforce
 
PPTX
How to Fit Performance Testing into a DevOps Environment
Neotys
 
PPT
Future of QA
amitagarwal2006
 
PPT
Futureofqa
amitagarwal2006
 
PDF
5 Steps to Jump Start Your Test Automation
Sauce Labs
 
PPTX
Software testing ppt
Heritage Institute Of Tech,India
 
PPTX
Agile testing
Sony India Software Center
 
KEY
Modern Continuous Software Delivery
Martin Logan
 
PDF
The Key to DevOps? Testing Early in the Pipeline
DevOps.com
 
PPTX
DevOps Powered by Splunk
Splunk
 
PDF
Load Testing SAP Applications with IBM Rational Performance Tester
Bill Duncan
 
PDF
How CapitalOne Transformed DevTest or Continuous Delivery - AppSphere16
AppDynamics
 
PDF
Continuous Testing through Service Virtualization
TechWell
 
PPTX
Chef for DevOps - an Introduction
Sanjeev Sharma
 
PDF
Prakasha_Resume
Prakash10081979
 
PPTX
All you need is fast feedback loop, fast feedback loop, fast feedback loop is...
Nacho Cougil
 
PPTX
AUG NYC June 12 - Event Presentations
Madhusudhan Matrubai
 
Behavior Driven Development—A Guide to Agile Practices by Josh Eastman
QA or the Highway
 
Unit 9 and Unit 10.pptx
ReshmaGummadi1
 
intership ppt.pptxgggggggggggggggggggggggggggggggg
MadhushreeCK1
 
[India Merge World Tour] Coverity
Perforce
 
How to Fit Performance Testing into a DevOps Environment
Neotys
 
Future of QA
amitagarwal2006
 
Futureofqa
amitagarwal2006
 
5 Steps to Jump Start Your Test Automation
Sauce Labs
 
Software testing ppt
Heritage Institute Of Tech,India
 
Modern Continuous Software Delivery
Martin Logan
 
The Key to DevOps? Testing Early in the Pipeline
DevOps.com
 
DevOps Powered by Splunk
Splunk
 
Load Testing SAP Applications with IBM Rational Performance Tester
Bill Duncan
 
How CapitalOne Transformed DevTest or Continuous Delivery - AppSphere16
AppDynamics
 
Continuous Testing through Service Virtualization
TechWell
 
Chef for DevOps - an Introduction
Sanjeev Sharma
 
Prakasha_Resume
Prakash10081979
 
All you need is fast feedback loop, fast feedback loop, fast feedback loop is...
Nacho Cougil
 
AUG NYC June 12 - Event Presentations
Madhusudhan Matrubai
 
Ad

Recently uploaded (20)

PDF
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
PPTX
Comprehensive Risk Assessment Module for Smarter Risk Management
EHA Soft Solutions
 
PPTX
Customise Your Correlation Table in IBM SPSS Statistics.pptx
Version 1 Analytics
 
PDF
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
PDF
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
PDF
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
PPTX
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
PDF
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
PDF
Technical-Careers-Roadmap-in-Software-Market.pdf
Hussein Ali
 
PDF
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
PPTX
Hardware(Central Processing Unit ) CU and ALU
RizwanaKalsoom2
 
PDF
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
PDF
The 5 Reasons for IT Maintenance - Arna Softech
Arna Softech
 
PDF
Top Agile Project Management Tools for Teams in 2025
Orangescrum
 
PPTX
Finding Your License Details in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PPTX
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
PPTX
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
PDF
IDM Crack with Internet Download Manager 6.42 Build 43 with Patch Latest 2025
bashirkhan333g
 
PPTX
Tally software_Introduction_Presentation
AditiBansal54083
 
PDF
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
Comprehensive Risk Assessment Module for Smarter Risk Management
EHA Soft Solutions
 
Customise Your Correlation Table in IBM SPSS Statistics.pptx
Version 1 Analytics
 
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
Technical-Careers-Roadmap-in-Software-Market.pdf
Hussein Ali
 
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
Hardware(Central Processing Unit ) CU and ALU
RizwanaKalsoom2
 
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
The 5 Reasons for IT Maintenance - Arna Softech
Arna Softech
 
Top Agile Project Management Tools for Teams in 2025
Orangescrum
 
Finding Your License Details in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
IDM Crack with Internet Download Manager 6.42 Build 43 with Patch Latest 2025
bashirkhan333g
 
Tally software_Introduction_Presentation
AditiBansal54083
 
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 

ABAPCodeRetreat - TDD Intro by Damir Majer

  • 2. 2 Damir Majer Developer, Dev Coach and Trainer @majcon Unit-Tests mit ABAP® Unit dpunkt.verlag Besseres ABAP Schnell, sicher, robust SAP Press CodeKata ABAP Collaboration Project www.codekata.io
  • 4. Copyright Majer Consulting hey boss everything is under control… how is presented how the truth is
  • 5. Systematic testing 5 Testing techniques Ad-hoc testingError guessing Boundary value analysis Path coverage testing Intuitive testing Semantic testing Control flow testing Business process testing Branch coverage testing State transition analysis Condition coverage testing Cause-effect analysis Dataflow testing Classification tree method Compiler testing Testing in pairs Elementary comparison test Weak point testing Area analysis testing Equivalence class partitioning analysis Testing with a random value Syntax testing Statement coverage testing
  • 6. How to achieve testing during the implementation phase?
  • 7. Unit vs. integration testing 7 Integration testing Unit testing
  • 9. Unit-Testing “unit testing is a software testing method by which individual units of source code, sets of one or more computer program modules together with associated control data, usage procedures, and operating procedures, are tested to determine whether they are fit for use WIKIPEDIA:
  • 10. Test-Driven Development “is a software development process that relies on the repetition of a very short development cycle: requirements are turned into very specific test cases, then the software is improved to pass the new tests, only. This is opposed to software development that allows software to be added that is not proven to meet requirements. …TDD encourages simple designs and inspires confidence. Test-driven development is related to the test-first programming concepts of extreme programming, begun in 1999, but more recently has created more general interest in its own right.” WIKIPEDIA:
  • 12. Execution of ABAP Unit-Tests SAP GUI or ABAP in Eclipse: CTRL+SHIFT+F10 ABAP Unit on a Postcard
  • 13. plan actualvs. ABAP Unit Assertion-Methods
  • 14. Test Driven Development • write a test • make it fail • keep it simple • tests are examples • tests becomes documentation abapcoderetreat.events ACR RED GREEN REFACTOR • get to green fast • take baby steps • stuck? undo and start over • write only enough code to pass the test • remove duplication (in code and tests) • rename and clean up • run tests and stay green • change implementation not behaviour • improve structure in small steps you start here!
  • 15. What is your experience?
  • 16. one more thing… ABAP Trainings with focus on ABAP Unit and TDD WDE401 WDAGIL BC401 TDD with ABAP cATDD