18.02_anaylsis and test tools

13
IBM Global Services Additional Topics | Analysi s and Test Tools | 3.18.02 March-2005 © 2005 IBM Corporation Analysis and Test Tools

Upload: prashant-adhikari

Post on 03-May-2017

222 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: 18.02_Anaylsis and Test Tools

IBM Global Services

Additional Topics | Analysis and Test Tools | 3.18.02

March-2005 © 2005 IBM Corporation

Analysis and Test Tools

Page 2: 18.02_Anaylsis and Test Tools

IBM Global Services

© 2005 IBM Corporation2 March-2005Additional Topics | Analysis and Test Tools | 3.18.02

Objectives

The participants will be able to: Have a basic understanding of how to analyze and test ABAP code, using:

Program Extended Syntax Check. Runtime Analysis. SQL Trace. Computer Aided Test Tool (CATT).

Page 3: 18.02_Anaylsis and Test Tools

IBM Global Services

© 2005 IBM Corporation3 March-2005Additional Topics | Analysis and Test Tools | 3.18.02

Program Extended Syntax Check

Double click

Transaction SLIN

Page 4: 18.02_Anaylsis and Test Tools

IBM Global Services

© 2005 IBM Corporation4 March-2005Additional Topics | Analysis and Test Tools | 3.18.02

Runtime Analysis

The Runtime Analysis Tool lets you analyze the performance of any transaction or program created in the ABAP Workbench in more detail.

Transaction SE30

Page 5: 18.02_Anaylsis and Test Tools

IBM Global Services

© 2005 IBM Corporation5 March-2005Additional Topics | Analysis and Test Tools | 3.18.02

Runtime Analysis Results

Transaction SE30

Page 6: 18.02_Anaylsis and Test Tools

IBM Global Services

© 2005 IBM Corporation6 March-2005Additional Topics | Analysis and Test Tools | 3.18.02

Tips and Tricks

Page 7: 18.02_Anaylsis and Test Tools

IBM Global Services

© 2005 IBM Corporation7 March-2005Additional Topics | Analysis and Test Tools | 3.18.02

Getting Runtime in code

tmin = 1000000.

DO 10 TIMES. GET RUN TIME FIELD t1. MOVE f1 TO f2. "Time measurement of the moveGET RUN TIME FIELD t2. t2 = t2 - t1.IF t2 <tmin. tmin =t2.ENDIF.

ENDDO. WRITE: 'MOVE 4000 bytes takes', tmin, 'microseconds'.

Syntax to get runtime

Page 8: 18.02_Anaylsis and Test Tools

IBM Global Services

© 2005 IBM Corporation8 March-2005Additional Topics | Analysis and Test Tools | 3.18.02

SQL Trace

Transaction ST05

Turn Trace on and off for full Database interaction

For a single SQL request

Page 9: 18.02_Anaylsis and Test Tools

IBM Global Services

© 2005 IBM Corporation9 March-2005Additional Topics | Analysis and Test Tools | 3.18.02

Computer Aided Test Tool (CATT)

Transaction SCAT

The Computer Aided Test Tool (CATT) is fully integrated into the

ABAP/4 Development Workbench. It allows you to assemble and automate business processes in test procedures.

Page 10: 18.02_Anaylsis and Test Tools

IBM Global Services

© 2005 IBM Corporation10 March-2005Additional Topics | Analysis and Test Tools | 3.18.02

Summary

The Program Extended Syntax check is the simplest and least CPU-intensive analysis tool. It can be found from ABAP Editor by following the menu path: Program-> Check->Extended program Check.

The Runtime Analysis Tool lets you analyze the performance of any transaction or program created in the ABAP Workbench in more detail. An additional very valuable function of the Runtime Analysis tool is the Tips and Tricks. This lists coding tips and examples, which can be used to improve coding efficiency. (Transaction SE30)

You can use the SQL Trace tool to examine the database interfaces of reports and transactions. (Transaction ST05)

The Computer Aided Test Tool (CATT) is fully integrated into the ABAP/4 Development Workbench. It allows you to assemble and automate business processes in test procedures.

Page 11: 18.02_Anaylsis and Test Tools

IBM Global Services

© 2005 IBM Corporation11 March-2005Additional Topics | Analysis and Test Tools | 3.18.02

Demonstration

Run Extended Syntax Check for any customer program and rectify the errors,warnings, if any.

Page 12: 18.02_Anaylsis and Test Tools

IBM Global Services

© 2005 IBM Corporation12 March-2005Additional Topics | Analysis and Test Tools | 3.18.02

Practice

Run Extended Syntax Check for any customer program and rectify the errors,warnings, if any.

Page 13: 18.02_Anaylsis and Test Tools

IBM Global Services

© 2005 IBM Corporation13 March-2005Additional Topics | Analysis and Test Tools | 3.18.02

Questions

How do you measure runtime of a program? SQL TRACE allows you to see how OPEN SQL statements get converted to

EMBEDDED SQL. True or False?