Black Friday is ending this Friday! 40% off with coupon CYBER40 - Sign up here

Close
  1. SAP Glossary
  2. ABAP Runtime Environment
  3. Coverage API


What is 'Coverage API' in SAP BC-ABA - ABAP Runtime Environment?


Coverage API - Overview

  • Component: BC-ABA

  • Component Name: ABAP Runtime Environment

  • Description: Provides programmatic access to the ABAP facilities for measuring code coverage. Code coverage measurements are an important tool for assessing the quality of software testing. While the Coverage API uses the same facilities as the Coverage Analyzer transaction SCOV, the Coverage API and the Coverage Analyzer are not integrated and cannot be used together. It is not possible, for example, to display Coverage API measurements in the Coverage Analyzer.


Coverage API - Details


  • Key Concepts: The Coverage API is a component of the BC-ABA ABAP Runtime Environment. It is a set of APIs that allow developers to measure the code coverage of their ABAP programs. The Coverage API provides information about the number of lines of code that have been executed, as well as the number of lines that have not been executed. This information can be used to identify areas of code that need to be tested more thoroughly.
    How to use it: The Coverage API can be used by developers to measure the code coverage of their ABAP programs. To use the Coverage API, developers must first enable the coverage measurement in their ABAP program. This can be done by setting the COVERAGE_MEASUREMENT parameter in the program's attributes. Once enabled, developers can use the Coverage API functions to measure the code coverage of their program.
    Tips & Tricks: When using the Coverage API, it is important to remember that it only measures code coverage for ABAP programs. It does not measure code coverage for other components such as function modules or classes. Additionally, it is important to note that the Coverage API does not provide information about which lines of code have been executed or which lines have not been executed. It only provides a total number for each category.
    Related Information: For more information about the Coverage

    Already have an account? Login here!





Coverage API - Related SAP Terms

Rating
ERPlingo simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant