33
Don‘t Dream It Script It

Script It - stschnell.de · •eCATT uses SAP GUI Scripting and it is possible to use inline ABAP

Embed Size (px)

Citation preview

Don‘t Dream It

Script It

Dis

cla

ime

r

This document is provided without any warranty of any kind.

No guarantee for the actuality, correctness, completeness or quality of the available information.

Liability claims, which refer to damage by the use or not-use of information presented here respectively by the use of incorrect and incomplete information are in principle impossible.

Any liability claims are declined.

For damages no liability and no responsibility are assumed.

Everyone is responsible for his own action.This presentation are subject to change and may be changed at any time for any reason without notice.

© 2018 Stefan Schnell, all rights reserved.

Pe

rso

na

l D

es

cri

pti

on

Name:

Age:

Company:

Occupation:

Vocation:

© 2018 Stefan Schnell, all rights reserved.

Stefan Schnell

53

Over 15 years at AOK Systems inBonn, Germany. It is the leadingsoftware company of solutionsfor statutory health insurances on SAP platform, with over 550 employees.

Software developer at test automation

The building of integration scenariosbetween frontend and SAP backend environments, with different interfaces and programming languages.

Co

nte

nt

• PowerShell introduction

• Why PowerShell?• SAP GUI for Windows, the ActiveX collection

• SAPIENs ActiveXPoSH component

• Basic architecture• Changed requirements for the developers

• STEOLA use case

• eCATT use case

• Final credits

© 2018 Stefan Schnell, all rights reserved.

Po

we

rSh

ell

In

tro

du

cti

on

• Windows PowerShell is an interactive object-oriented command environment with scriptinglanguage that utilizes small programs calledcmdlets to simplify configuration, administration and management of heterogeneous environments in both standalone and networked typologies…Definition by Ed Wilson, aka Microsoft Scripting Guy

• PowerShell offers two interfaces, an interactive shell and the Integrated Scripting Environment (ISE).

© 2018 Stefan Schnell, all rights reserved.

Po

we

rSh

ell

In

tro

du

cti

on

• The scripting possibilities of PowerShell are incredible. You can use the entire univers of dotNET with PowerShell and also you can use legacy approaches.

• PowerShell is available on any Windows computer in the business without any additional installations.

• The ISE offers basic possibilities to edit and test PowerShell script code easily.

© 2018 Stefan Schnell, all rights reserved.

Po

we

rSh

ell

In

tro

du

cti

on

• If you need more functionalities, you can useVisual Studio Code.

• VS Code is free available and you can find it athttps://code.visualstudio.com

© 2018 Stefan Schnell, all rights reserved.

Wh

yP

ow

erS

he

ll?

• The SAP GUI for Windows is an infinity collection ofActiveX controls.

• Also the ALV grid (ABAP List Viewer) and theABAP Development Workbench with the ABAP Editor (TAC SE80).

© 2018 Stefan Schnell, all rights reserved.

Wh

yP

ow

erS

he

ll?

© 2018 Stefan Schnell, all rights reserved.

Wh

yP

ow

erS

he

ll?

© 2018 Stefan Schnell, all rights reserved.

Wh

yP

ow

erS

he

ll?

© 2018 Stefan Schnell, all rights reserved.

Wh

yP

ow

erS

he

ll?

• SAPIEN ActiveXPoSH is also an ActiveX component.

• It allows programmers, of any COM capable scripting language, easy access to PowerShell and .NET functionality. A special PowerShell host allows you to run single cmdlets or entire scripts from within your favorite language.

• It is free available and you can find it athttps://www.sapien.com

• It is legitimate to add an ActiveX component,like ActiveXPoSH, to this collection and also it is legitimate to extend the functionality of ActiveX components with other ActiveX components.

© 2018 Stefan Schnell, all rights reserved.

Wh

yP

ow

erS

he

ll?

• The SAPIEN ActiveXPoSH componentinsert seamlessly into the existing SAP GUI for Windows environment.

• And on this way you canuse PowerShell insideABAP.

© 2018 Stefan Schnell, all rights reserved.

Wh

yP

ow

erS

he

ll?

• And with a wrapperclass it is very easy touse PowerShell insideABAP.

• Here as example one ofmy unit test, whichdelivers all informationabout the screens in a message box.

© 2018 Stefan Schnell, all rights reserved.

Ba

sic

arc

hit

ec

ture

© 2018 Stefan Schnell, all rights reserved.

Ba

sic

arc

hit

ec

ture

• Scripting TrackerSAP GUI analyzer and recorder on SAP GUI Scripting basehttps://tracker.stschnell.de

• Selenium SuiteAutomating web browers and applicationshttp://www.seleniumhq.org

• AutoItWindows automation and scripting languagehttps://www.autoitscript.com

© 2018 Stefan Schnell, all rights reserved.

Ba

sic

arc

hit

ec

ture

• „Man only plays when he is in the fullest sense of the word a human being, and he is only fully a human being when he plays.”15th letter of On the Aesthetic Education of ManFriedrich Schiller

• „Der Mensch spielt nur, wo er in voller Bedeutung des Wortes Mensch ist, und er ist nur da ganz Mensch, wo er spielt.”15ter Brief über die ästhetische Erziehung des MenschenFriedrich Schiller

© 2018 Stefan Schnell, all rights reserved.

Ba

sic

arc

hit

ec

ture

• „Imagination is more important than knowledge.For knowledge is limited to all we now know and understand, while imagination embraces the entire world, and all there ever will be to know and understand.”Albert Einstein

• The requirements for developers are in a state of change. Experts were in demand in the past, generalists are in demand today for the future.

• It is not enough to be able to dominate one programming language and one IDE. A programmer should be polyglot and it is necessary to have imagination for unusual solutions. Also it is necessary to open your mind for new ways, other solutions and methods.

© 2018 Stefan Schnell, all rights reserved.

ST

EO

LA

us

ec

as

e• STEOLA is a commercial product.

It is an Add-in for Microsoft Office.

• STEOLA will automatically detect the object keysused in your Office documents.

• STEOLA will allow you to navigate and perform actions in SAP directly from Microsoft Office applications with the detected object keys.

© 2018 Stefan Schnell, all rights reserved.

ST

EO

LA

us

ec

as

e

© 2018 Stefan Schnell, all rights reserved.

ST

EO

LA

us

ec

as

e

© 2018 Stefan Schnell, all rights reserved.

ST

EO

LA

us

ec

as

e• The inventor and product owner of

STEOLA is my friend Steve Bayliss.

• You can find STEOLA athttps://www.steola.com

• If you are interested in STEOLA turn to Steve,he will be glad about your request.

© 2018 Stefan Schnell, all rights reserved.

eC

AT

Tu

se

ca

se

• The oscare testmachine is an application for regressiontests in SAP environments.

• It uses eCATT (extended Computer Aided Testing Tool).

• eCATT uses SAP GUI Scripting and it is possible to useinline ABAP.

• The PowerShell script were stored as includedevelopment object.

• It was executed from an eCATT script and simulates useractions on non-SAP GUI for Windows UIs.

© 2018 Stefan Schnell, all rights reserved.

eC

AT

Tu

se

ca

se

© 2018 Stefan Schnell, all rights reserved.

eC

AT

Tu

se

ca

se

© 2018 Stefan Schnell, all rights reserved.

eC

AT

Tu

se

ca

se

© 2018 Stefan Schnell, all rights reserved.

eC

AT

Tu

se

ca

se

© 2018 Stefan Schnell, all rights reserved.

eC

AT

Tu

se

ca

se

© 2018 Stefan Schnell, all rights reserved.

Us

ec

as

ere

su

me

• It is possible to use this approach outside from anSAP system – STEOLA.

• Also it is possible to use this approach in the context ofan SAP system – eCATT.

• This approach is flexible and adaptable.

• PowerShell opens the gate wide to control all necessaryinterfaces like UIs (SAP GUI for Windows, WebDynpro forABAP and Java, each other Web-UI, also native UIs andits Elements), RFMs and Web-Requests, with and withoutadditional components.

© 2018 Stefan Schnell, all rights reserved.

Me

et

Me

…at SAP Communityhttps://people.sap.com/stefan.schnell

…at LinkedInhttps://www.linkedin.com/in/stefan-schnell

…at XING (D-A-CH area)https://www.xing.com/profile/Stefan_Schnell9

…at my private sitehttps://www.stschnell.de

© 2018 Stefan Schnell, all rights reserved.

Qu

es

tio

ns

Do you have any questions now?

Don't be shy and feel free to ask.

If you have questions later, just come to me.

And if you have questions even later,you know where to meet me.

© 2018 Stefan Schnell, all rights reserved.

Th

an

kY

ou

Thank you very much for your attention.

Also thanks to our host, the Inwerken AG.

And warmest thanks to my friend Enno Wulff,for the possibilities to publish information via Tricktresorand his permanent efforts of sharing SAP knowledgein the German speaking area.

© 2018 Stefan Schnell, all rights reserved.

Rig

hts

No part of this publication may be reproduced or transmitted in any form or for any purpose without the permission of Stefan Schnell.

The information contained herein may be changed without prior notice.

These materials are provided by Stefan Schnell for informational purposes only, without representation or warranty of any kind, and Stefan Schnell shall not be liable for errors or omissions with respect to the materials. Nothing herein should be construed as constituting an additional warranty.

The information in this document is not a commitment, promise or legal obligation to deliver any material, code or functionality. All statements are subject to various risks and uncertainties that could cause actual results to differ materially from expectations. Readers are cautioned not to place undue reliance on these statements, and they should not be relied upon in making purchasing decisions.

All products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of their respective companies.

© 2018 Stefan Schnell, all rights reserved.