A new Test Tool in SAP Circuit Diagram for Code SAP ABAP Test Seams - - PowerPoint PPT Presentation

a new test tool in sap circuit diagram for code
SMART_READER_LITE
LIVE PREVIEW

A new Test Tool in SAP Circuit Diagram for Code SAP ABAP Test Seams - - PowerPoint PPT Presentation

A new Test Tool in SAP Circuit Diagram for Code SAP ABAP Test Seams Moose2Model Referent: Rainer Winkler Date: 11 September 2018 Unit Tests are fine If external dependencies can be managed SAP ABAP Test Seams For Unit Tests with external


slide-1
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
SLIDE 2

Unit Tests are fine If external dependencies can be managed

slide-3
SLIDE 3

SAP ABAP Test Seams For Unit Tests with external dependencies

slide-4
SLIDE 4

Coding Testcoding

Syntax Check based on Coding Syntax Check based on Testcoding

slide-5
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
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
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
SLIDE 8

Before Test Seams where available I wrote Tests only some)mes With Test Seams, I do it much more

  • Ten
slide-9
SLIDE 9

What other computer languages provide Test Seams as part of the language?

Do we need this in Smalltalk?

slide-10
SLIDE 10

Search for Test Seam and SAP or ABAP on the internet for more informa)ons

slide-11
SLIDE 11

2 Circuit diagrams for soTware

Moose2Model

slide-12
SLIDE 12
slide-13
SLIDE 13
slide-14
SLIDE 14
slide-15
SLIDE 15

Can this help developers? Yes - with tools that automa)ze crea)on and upda)ng

slide-16
SLIDE 16

Context Menu of Moose Model -> Read Layout from Path

Moose2Model - Display exis)ng diagram

slide-17
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
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
SLIDE 19

Customize

Rearange elements - will be stored to file

slide-20
SLIDE 20

Add comments

slide-21
SLIDE 21

Highlight neighbours (Helps in big diagrams)

slide-22
SLIDE 22

Explore

More elements are shown Redo this

slide-23
SLIDE 23

Simplify

(Exclude some elements, for instance for logging...)

slide-24
SLIDE 24

Architecture Diagrams

Show only groupings (class/packages)

slide-25
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
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