Sunteți pe pagina 1din 17

Software Engineering II: Management of large IT Systems Testing and Analysis Tools

Vadym Borovskiy Oleksandr Panchenko Jrgen Mller

Testing and Analysis Tools


Development Syntax Check Extended Syntax Check ABAP Debugger Memory Inspector Code Inspector ABAP Unit eCATT ABAP Runtime Analysis Coverage Analyser
2

Test

Production

4 2

Code Inspector (1)


Characteristics Environment to perform predefined checks Analysis of (static) ABAP coding + other objects Easy implementation of new checks Developers initiate checks of their objects Single and mass tests possible Check categories Performance SELECTs w/o adequate index SELECTs missing the table buffer Appropriate Where clauses on select statements Security Use of critical statements (call transaction; native SQL) Handling SY-SUBRC Syntax General Checks, Searches List of table names in SELECT statement
3

Code Inspector (2)


Your first task: 1. Call Code Inspector (SCI) 2. Create your check variant

Code Inspector (3)


3. Select few checks from the available list, read description to these checks, save your check variant 4. Write a program, which violates selected checks. You can use examples of coding presented in the check descriptions or find examples in Environment Examples Performance Examples

Code Inspector (4)


5. Go back to SCI, create new inspection 6. Select your program and check variant, execute code inspector

Code Inspector (5)

Runtime Analysis
1. Measure performance for one of your program 2. Measure performance of few examples presented in Tips&Tricks

Task description - Debugger


Run your program Select Program->Test->Debugging from main menu Select Debugger->Switch to New ABAP Debugger Use single step to execute each command Use Variables list watch variables values Set breakpoints to interrupt program execution Use call stack view to walk through nested function calls

Debugger

10

Extended Computer Aided Test Tool (eCATT)


A test tool with the following design aims: Allow the maximum number of applications to be tested automatically Make tests easier to manage Non-SAPGUI UI Standard SAPGUI SAPGUI with Controls

No UI (function module, BAPI)

11

eCATT Components
Test Script The set of commands and parameters that form the test

Test Data Container Reusable sets of data that can be assigned to tests

System Data Container Information about the system or systems in which the tests will be conducted

12

Test Script: Script Language


The eCATT scripting language consists of the following kinds of commands: Calls - to function modules, BAPIs, SAP transactions, other eCATT scripts, scripts of external test tools Checks to see whether data has been correctly written to a particular table, or for simulating Customizing changes to assess the effects Logical Functions - IFELSEIFELSEENDIF, DOENDDO Blocks of ABAP Coding - any ABAP coding is permitted between the ABAP and ENDABAP commands

13

Testing Landscape

Central Test System

SAP Solutions eCATT Test Script with maintenance system SAPGUI (,sysCRM) FUN (, sysBW)
CRM R/3

SEM

System Data Container


APO

BW

14

Test Script Editor (SECATT)

15

Testing Function Modules and BAPIs


Script Command: FUN ( BAPI_FLIGHT_GETLIST, BAPI_FLIGHT_GETLIST_1 ). Command Interface Simple parameter Structure

Function module

Internal table
16

Reports
Please send us your experience reports tell us what you have learned which problems have you had how have you solved them I liked, I wish 2-3 pages individually or in your groups deadline 18.07.2007 24:00 CET

17

S-ar putea să vă placă și