Hierarchy
⤷
⤷
Basic Data
| Data Element | SAUNIT_D_ATTRIBUTE_RT_DURATION |
| Short Description | Duration |
Data Type
| Category of Dictionary Type | D | Domain |
| Type of Object Referenced | No Information | |
| Domain / Name of Reference Type | SAUNIT_ATTRIBUTE_RT_DURATION | |
| Data Type | INT1 | 1-byte integer, integer number <= 255 |
| Length | 3 | |
| Decimal Places | 0 | |
| Output Length | 3 | |
| Value Table |
Further Characteristics
| Search Help: Name | ||
| Search Help: Parameters | ||
| Parameter ID | ||
| Default Component name | ||
| Change document | ||
| No Input History | ||
| Basic direction is set to LTR | ||
| No BIDI Filtering |
Field Label
| Length | Field Label | |
| Short | 0 | |
| Medium | 0 | |
| Long | 20 | Runtime |
| Heading | 0 |
Documentation
Definition
The DURATION property allows you to formulate an expected runtime for unit tests. This runtime is the cumulated runtime for all methods in a test class:
SHORT - within the blink of an eyeMEDIUM - take a sip of teaLONG - get another cup
The time limit is calculated by real time, this means for sample occasional compilation counts too against this limitation. To be on the save side, in case of doubts choose the higher category.
Maintenance
Use on of the following key words in the CLASS DEFINITON statement of a test class to specify the duration category:
DURATION SHORT(default)DURATION MEDIUMDURATION LONG
Purpose
Unit tests consist of source code and can contain errors. It is easy to recognize syntax errors and runtime errors, but endless loops are more difficult to detect.
With help of this classification of the duration the test runner is able to detect these situations and cancel the execution. This option is particularly useful in mass processing, for sample the execution of an ABAP Unit Favorite.
.
History
| Last changed by/on | SAP | 20110908 |
| SAP Release Created in | 700 |