SAP ABAP UNIT



Get Example source ABAP code based on a different SAP table
  


VERSION 5 IN
• CL_ABAP_UNIT_ASSERT ABAP_CLASS

ABAP Unit
ABAP Unit is a test framework for unit tests . ABAP Unit can be used to:
run single tests or mass tests
evaluate test results
Single tests can be started directly in the tool for the corresponding program. More comprehensive test runs are executed
BEGIN_SECTION VERSION 5 OUT from the ABAP Unit Browser in the ABAP Workbench or
END_SECTION VERSION 5 OUT by using the ABAP Test Cockpit.
BEGIN_SECTION VERSION 5 OUT ABAP Unit is closely linked with the Coverage Analyzer, enabling test coverage to be measured as well.
END_SECTION VERSION 5 OUT
In ABAP programs, unit tests are performed as test methods in local test classes. They are not part of the production code of a program, but are transported in the same way. Test methods of this type are executed and evaluated using the ABAP Unit Framework. The test methods generally call the units of the production code to be tested and then check the results using methods of the class CL_ABAP_UNIT_ASSERT. Test classes and test methods are defined using the following language elements.