The Application Server ABAP supports not only development, but the whole development life cycle with a rich set of integrated ABAP testing and troubleshooting tools. Using the ABAP suite of testing tools, you can verify the formal and functional correctness of your programs. ABAP Unit testing makes enables you to employ test-driven development models. In the case of problems, ABAP offers a state of the art ABAP Debugger and powerful ABAP analysis tools, which ensure high productivity of development and support tasks.
ABAP Testing Tools
- Extendend Program Check
- Code Inspector
- ABAP Test Cockpit
- ABAP Unit
- Coverage Analyzer
Extended Program Check
ABAP Test Cockpit
Unit testing is a technique that enables writing and running white box tests during development. Dedicated test classes invoke the tested program and compare the result with the expectation. ABAP Unit is integrated into both the ABAP runtime and the ABAP workbench, and supports you in writing, running, and organizing unit tests in ABAP. Together with the ABAP Coverage Analyzer, ABAP Unit provides you with the tools you need to develop according to a test-driven paradigm.This weblog shows how ABAP Unit facilitates testing in ABAP. You will get a first look at a fairly simple code example that gives you an impression of how easy it is to write a test with ABAP Unit.
A Spotlight on ABAP Unit Part 1By giving a more real-world example, this weblog shows you the benefits of ABAP Unit testing in complex programs. Though unit tests themselves are pretty simple, a comprehensive test coverage enables you to detect side effects of program changes and adaptations.
A Spotlight on ABAP Unit Part 2This weblog explains and discusses the principles of unit testing. This way you learn the rules you should adhere to if you want to write good unit tests using ABAP Unit.
A Spotlight on ABAP Unit Part 3This weblog presents basic features of the ABAP Unit result display. You learn how to track down the source of an error in the code. '
A Spotlight on ABAP Unit Part 4This weblog considers some prejudices which might keep developers from writing ABAP Unit tests and explains that they are mainly based on a misconceptions of what unit tests are, what they are good for and how to differentiate them from integration tests.
A Spotlight on ABAP Unit Part 5This weblog shows how to use the ABAP Code Inspector to automate ABAP Unit testing.
Automating ABAP Unit Test Runs with the Code InspectorThis wiki provides additional information on ABAP Unit.
ABAP Unit Wiki
Coverage AnalyzerYou can use the Coverage Analyzer to check if all parts of your programs were covered by the test. Coverage Analyzer provides execution statistics for programs and program units.
eCATTExtended Computer Aided Test Tool (eCATT) is used to create and execute function and integration tests. Its primary aim is the automatic testing of SAP business processes. Each test generates a detailed log that documents the test process and results. eCATT enables automatic testing in SAP GUI for Windows.For all information on eCATT visit this separate eCATT page.
In contrast to other programming language you can run every ABAP program at any time in the debug mode. There is no need to start the server in a particular debug mode, just run a program in the debug mode and this is all. Using the ABAP debugger, you can display data objects and check the flow logic of programs. The Classic ABAP Debugger is available for SAP NetWeaver release levels up to and including 6.40. As of release 7.0 the New ABAP Debugger is the default tool.The New ABAP Debugger enables analysis of all types of ABAP programs and offers a state of the art user interface together with a set of essential features and tools like the new ABAP Editor with syntax highlighting and a data quick info window, the Diff Tool, which allows to compare for example two nested structures or internal tables or the Data Explorer, which allows you to understand the details of even complicated objects at a glance.
New ABAP Debugger
Getting StartedThese recorded demos introduce all essential features of the New ABAP Debugger at a glance and teach you how to use the New ABAP Debugger:
- New ABAP Debugger for Classic ABAP Debugger Users - Demo (Flash, 10 min)
- New ABAP Debugger for Newbies - Demo (Flash, 12 min)
The New ABAP Debugger - An Introduction (PDF 1 MB)This is an audio-visual presentation about the functionality of the New ABAP Debugger.
The New ABAP Debugger in SAP NetWeaver 7.0
The ABAP Workbench offers a suite of analysis tools, which support you in troubleshooting tasks during development and in a production environment. This section introduces tools for runtime analysis and tracing, performance, dump, and memory analysis. No matter what sort of problem you face in ABAP, the analysis tools can usually help you to track down and understand the cause and to find the solution.
ABAP Analysis Tools
- Runtime Analysis
- Performance Analysis
- Dump Analysis
- Memory Inspector
ABAP Runtime Analysis (SE30) - How to analyze ABAP program flowABAP Trace can also be used to measure the performance of your ABAP application. You can use the results of the ABAP Trace to identify performance-intensive sections of your ABAP application.This weblog explains the basics of the ABAP Trace with a focus on performance. After you have read the blog, you'll be ready to find the critical performance bottlenecks in your ABAP program.
The ABAP Runtime Trace (SE30) - Quick and Easy
Performance AnalysisThe various trace functions of a SAP system are grouped together in the test tool Performance Trace. You can use it to monitor and analyze system behavior during database calls, lock management calls, remote calls of reports and transactions, and calls of the table buffer administration.This weblog gives you a quick introduction to the SQL Trace. In particular it shows how to execute SQL trace and to interpret its results.The SQL Trace (ST05) – Quick and Easy
Dump AnalysisShould the ABAP AS no longer be able to execute a program - because of an unhandled exception, a resource or system problem, or an error in coding - the ABAP runtime environment triggers an ABAP runtime error. The execution of the program is terminated and a detailed error log (short dump) is created and saved. This pair of weblogs explores the diagnostic aids and information resources that an ABAP short dump offers and how to get the most help out of a dump.
The Memory Inspector is a tool that analyzes memory snapshots and saves them on the application server. You can use it both to display individual memory snapshots and to compare two snapshots.