Upload
others
View
3
Download
0
Embed Size (px)
Citation preview
AnewTestToolinSAPCircuitDiagramforCode
SAPABAPTestSeamsMoose2Model
Referent:RainerWinklerDate:11September2018
Unit Tests are fine
If external dependencies can be managed
SAP ABAP Test Seams
For Unit Tests with external dependencies
Coding Testcoding
Syntax Check based on Coding
Syntax Check based on Testcoding
TestInser)onscanbedonemul)ple)mes
Typicalapplica)on:1.Insertafailstatementinthesetupmethodofthetest2.Insertthetestcodinginthetest
Works fine
When a few simple rules are followed in the insertion
Seeh=ps://blogs.sap.com/2018/06/08/abap-test-seam-for-unit-test-with-external-dependencies-personal-guideline/forcompletelist
1–Implementinsertedtestcodingcorrectly2–MonitorwhetherallTestSeamshaveaTestInjec)on
NoneedtoimplementtheTestSeamPa=ernmanually
Testandproduc)vecodingarewellseparated
CanbeaddedtoLegacyCodewithminimalrisk
Othertechniquestohandledependenciescanbebe=er
IftheyareusedIftheyareworththeaddi)onaleffort
BeforeTestSeamswhereavailableIwroteTestsonlysome)mes
WithTestSeams,IdoitmuchmoreoTen
What other computer languages provide Test Seams as part of the language?
Do we need this in Smalltalk?
SearchforTestSeamandSAPorABAPontheinternetformoreinforma)ons
2CircuitdiagramsforsoTware
Moose2Model
Canthishelpdevelopers?
Yes-withtoolsthatautoma)zecrea)onandupda)ng
ContextMenuofMooseModel->ReadLayoutfromPath
Moose2Model-Displayexis)ngdiagram
Iworkedonthe"SuppressOtherLogic"yesterday,whichelementswheretoberegarded?
Themethodsandclassesaredisplayedtogetherwiththeredependencies
Whatisdisplayed?
Highlightedelementsarealwaysdisplayed(aslongastheyareintheextrac)on)Otherelementsonlywhentheyexist
Rightclickondeskop->Redraw...withforma`nginfo
Customize
Rearangeelements-willbestoredtofile
Addcomments
Highlightneighbours(Helpsinbigdiagrams)
Explore
Moreelementsareshown
Redothis
Simplify(Excludesomeelements,forinstanceforlogging...)
ArchitectureDiagramsShowonlygroupings(class/packages)
Diagramscanbemadefast
Diagramgenera)onisrelaxing(automa)za)on)
Keepingdiagramscorrectisrelaxing(automa)zed)
Diagramsare(always)correct
Reducescogni)veloadduringcoding
www.moose2model.org
MITLicenseh=ps://youtu.be/k8RkDwlXKmg
WorkscurrentlyforSAPandSmalltalk,couldworkforalllanguageswhereanextractortoMooseexists