You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The RISK LEVEL describes the effects that a test can have on the data security of the system:
30
30
31
-
• CRITICAL - such as changes to system settings or Customizing;
31
+
• CRITICAL - such as changes to system settings or Customizing;
32
32
33
33
• DANGEROUS - such as changes to persistent data;
34
34
35
-
• HARMLESS - no effects on persistent data or system settings.
35
+
• HARMLESS - no effects on persistent data or system settings.
36
36
37
37
38
38
The RISK LEVEL is assigned by the following extension to the CLASS DEFINITION statement of a test class:
39
39
40
-
• RISK LEVEL CRITICAL - default;
41
-
• RISK LEVEL DANGEROUS;
42
-
• RISK LEVEL HARMLESS.
40
+
• RISK LEVEL CRITICAL (default)
41
+
42
+
• RISK LEVEL DANGEROUS
43
+
44
+
• RISK LEVEL HARMLESS
45
+
43
46
44
47
### Duration
45
-
Definition
48
+
49
+
#Definition
46
50
The DURATION property allows you to define an expected runtime for all methods of a test class.
47
51
48
52
At runtime the cumulated duration of all test methods is measured. If the actual duration exceeds the expectation ABAP Unit will raise an alert.
49
53
Please not the cumulated duration contains also system activities as program compilation. In case of doubts it is recommend to choose the higher category.
50
54
51
-
Maintenance
55
+
##Maintenance
52
56
Use on of the following key words in the CLASS DEFINITON statement of a test class to specify the duration category:
53
57
54
-
• DURATION SHORT (default) -within the blink of an eye ( < 10 seconds );
55
-
• DURATION MEDIUM - take a sip of tea ( < 2 minutes );
56
-
• DURATION LONG - get another cup.
58
+
• DURATION SHORT (default) - within the blink of an eye ( < 10 seconds );
59
+
60
+
• DURATION MEDIUM - take a sip of tea ( < 2 minutes );
61
+
62
+
• DURATION LONG - get another cup.
57
63
58
64
Purpose
59
65
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.
0 commit comments