Show TOC Start of Content Area

Background documentation Advantages of Using ABAP Unit  Locate the document in its SAP Library structure

Testing is a substantial part of the program development process. Tests verify the intended program behavior. Debugging or simple text traces are also tests. Nevertheless, these methods require human judgment, which limits the test possibilities when it comes to more complex test scenarios: debug information must be checked step by step and text output becomes voluminous and hardly manageable. A long-term benefit from testing is only achievable by automation.

ABAP Unit solves these problems. It is integrated into the ABAP runtime system and the ABAP Workbench, so that writing and executing tests becomes a part of the development process.

Testing small portions of code has many advantages, including the following:

      It is easy to locate the problem. The area where the error can be located is minimal.

      A mistake in one test cannot cause other mistakes in other tests of the program, because of the isolation requirement.

      You require less effort to construct a simple test than to create a complex test scenario.

Another major advantage of unit tests is that they are written during implementation. This ensures that testing cannot be postponed or cancelled. It is even possible to write the unit tests before the implementation of the program under test.

 

End of Content Area