Skip to content

ABAP Keyword Documentation →  ABAP Glossary 

test class

Special local or global class whose components are used only for tests in the context of ABAP Unit. Test methods can be implemented in a test class. A test class groups together related tests that use the same fixture. Test dummies and other helper classes needed for testing should also be defined as test classes. These objects do not contain any test methods. Test classes are defined using the FOR TESTING addition of the CLASS statement. Test classes can only be used as part of test runs and, by default, are not generated in production systems.

Other versions: 7.31 | 7.40 | 7.54