Академический Документы
Профессиональный Документы
Культура Документы
[ RAJEEV KAPUR
ASUG INSTALLATION MEMBER
MEMBER SINCE: 2008 [ MARCDERE LOUIS
ASUG INSTALLATION MEMBER
MEMBER SINCE: 2009
[ JILL MIKROS
ASUG INSTALLATION MEMBER
MEMBER SINCE: 2000
[ Agenda
Introduction
Learning Points
Return on Investment (ROI)
Agile Programming Strategy
Motivation
About Test Driven Development (TDD)
TDD Mantra
TDD Basics & 3 Laws of TDD
The Unit-Testing Framework
ABAP Unit – A Design Methodology
ABAP Unit – Demo
Myths on Unit Testing & Best Practices
Wrap Up
Take Away Points & Q&A
Real Experience. Real Advantage. 2
[ About Intelligroup?
US Based Company - Headquartered in Princeton, New Jersey.
Over 2300+ Employees. (18% in United States, 77% in India, 5% Other)
Global Provider of Innovative Consulting, Technology, & Outsourcing Services.
Global Delivery Platform.
Operations in the North America, India, Middle East, Japan, UK and Denmark.
Certificates:
SEI CMMI Level-5 Ver. 1.2 & PCMM Level 4 and ISO 9001:2000
Awards:
2010 SAP Pinnacle Award Finalist –Communities Leadership
2009 SAP Pinnacle Award Winner –SDN
2009 SAP Pinnacle Award Finalist -BPX, SOA Thought Leadership
2009 SAP Award of Excellence –For Upgrades –Japan
2008 SAP Pinnacle Award Finalist –eSOA
2007 SAP Pinnacle Award –Technology Go To Market
2007 SAP Tech-Ed award Winner
Done ?
With TDD
Done Sooner !
Continuous Feedback
Time
Development Quality Assurance
Integration & System Testing
Development Quality
Assurance
Traditional
Development
TDD
Investment
Life Cycle Benefit
Net
Return
Real Experience. Real Advantage. 5
[ Return on Investment (ROI) (cont…)
Better Code Design
Usable Code
Safety Net
Modularity
Instant Feedback
Increased Productivity
WYGIWYM (What You Get Is What You Meant)
Documentation
Safety Net
Modularity
Instant Feedback
Increased Productivity
Write a Test
Second Law
Write no more of a test
than is sufficient to make it fail.
Third Law
Write no more production code
than is sufficient to pass a failing test.
Real Experience. Real Advantage. 18
[ The Unit-Testing Framework
Unit testing frameworks are quite popular in the object-
oriented programming world.
Frameworks like JUnit (for Java), SUnit (for Smalltalk), and
Test::Unit (for Ruby) provide a rich set of functionality.
Various code-driven testing frameworks are collectively know
as xUnit. Unit tests are at the core of TDD.
Unit testing frameworks helps simplify the process of Unit
testing and the goal is to make writing test as painless as
possible.
As of SAP NetWeaver 2004, ABAP Unit is available as Unit
testing framework, which takes the ideas of JUnit from Java
environment and applies them to ABAP.
You can specify one pseudo comment per line in the program
and note that they are Case-Sensitive.
ABAP Unit can help us detect the failures/errors easily and can be
tracked down. With ABAP Unit tests in place and with a open mind
to simple analysis will bring great value and confidence.
All developers will love to use once they understand its easiness
and the value it brings to the code quality and project.
Real Experience. Real Advantage. 44
[ Myths around Unit Testing
Myth #1 : Will it not double the development time if we write
unit tests?
- No. Writing unit tests is a investment towards time savings over
the lifetime of the project.
https://wiki.sdn.sap.com/wiki/display/ABAP/ABAP+Unit
http://xprogramming.com/index.php
Real Experience. Real Advantage. 51
[ Questions?
Email: jaya.kumar@intelligroup.com
Email: pat.gray@intelligroup.com