SLIDE 1 A new Test Tool in SAP Circuit Diagram for Code
SAP ABAP Test Seams Moose2Model
Referent: Rainer Winkler Date: 11 September 2018
SLIDE 2
Unit Tests are fine If external dependencies can be managed
SLIDE 3
SAP ABAP Test Seams For Unit Tests with external dependencies
SLIDE 4
Coding Testcoding
Syntax Check based on Coding Syntax Check based on Testcoding
SLIDE 5 Test Inser)ons can be done mul)ple )mes
Typical applica)on:
- 1. Insert a fail statement in the setup method of the test
- 2. Insert the test coding in the test
SLIDE 6 Works fine When a few simple rules are followed in the insertion
See h=ps://blogs.sap.com/2018/06/08/abap-test-seam-for-unit-test-with-external-dependencies-personal-guideline/ for complete list
1 – Implement inserted test coding correctly 2 – Monitor whether all Test Seams have a Test Injec)on
SLIDE 7
No need to implement the Test Seam Pa=ern manually Test and produc)ve coding are well separated Can be added to Legacy Code with minimal risk Other techniques to handle dependencies can be be=er If they are used If they are worth the addi)onal effort
SLIDE 8 Before Test Seams where available I wrote Tests only some)mes With Test Seams, I do it much more
SLIDE 9
What other computer languages provide Test Seams as part of the language?
Do we need this in Smalltalk?
SLIDE 10
Search for Test Seam and SAP or ABAP on the internet for more informa)ons
SLIDE 11
2 Circuit diagrams for soTware
Moose2Model
SLIDE 12
SLIDE 13
SLIDE 14
SLIDE 15
Can this help developers? Yes - with tools that automa)ze crea)on and upda)ng
SLIDE 16 Context Menu of Moose Model -> Read Layout from Path
Moose2Model - Display exis)ng diagram
SLIDE 17
I worked on the "Suppress Other Logic" yesterday, which elements where to be regarded? The methods and classes are displayed together with there dependencies
SLIDE 18
What is displayed?
Highlighted elements are always displayed (as long as they are in the extrac)on) Other elements only when they exist Right click on deskop -> Redraw ... with forma`ng info
SLIDE 19
Customize
Rearange elements - will be stored to file
SLIDE 20
Add comments
SLIDE 21
Highlight neighbours (Helps in big diagrams)
SLIDE 22
Explore
More elements are shown Redo this
SLIDE 23
Simplify
(Exclude some elements, for instance for logging...)
SLIDE 24
Architecture Diagrams
Show only groupings (class/packages)
SLIDE 25
Diagrams can be made fast Diagram genera)on is relaxing (automa)za)on) Keeping diagrams correct is relaxing (automa)zed) Diagrams are (always) correct Reduces cogni)ve load during coding
SLIDE 26
www.moose2model.org MIT License
h=ps://youtu.be/k8RkDwlXKmg
Works currently for SAP and Smalltalk, could work for all languages where an extractor to Moose exists