Show TOC

Test ClassesLocate this document in the navigation structure

Definition
Use

Test classes are local classes in ABAP programs, with the exception of type groups and interface pools - that is, executable programs, class pools, function groups, module pools, and subroutine pools. A test class is defined using the FOR TESTING addition of the CLASS statement.

You can define Test Attributes for test classes and they contain Test Methods.

Note

As of Release 7.0, you can also create Global Test Classes for reusing elaborately prepared tests. Global test classes are always abstract and can only be used in local test classes.