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
Copy file name to clipboardExpand all lines: docs/checks/db-access-in-ut.md
+4-9Lines changed: 4 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,8 +25,7 @@ The pseudo comment must be placed right after the DB access statement.
25
25
SELECT XXXXX. "#EC DB_ACCESS_UT
26
26
```
27
27
### Risk Level
28
-
Definition
29
-
The RISK LEVEL describes the effects that a test can have on the data security of the system:
28
+
Definition: The RISK LEVEL describes the effects that a test can have on the data security of the system:
30
29
31
30
• CRITICAL - such as changes to system settings or Customizing;
32
31
@@ -45,22 +44,18 @@ The RISK LEVEL is assigned by the following extension to the CLASS DEFINITION st
45
44
46
45
47
46
### Duration
48
-
49
-
#Definition
50
-
The DURATION property allows you to define an expected runtime for all methods of a test class.
47
+
Definition: The DURATION property allows you to define an expected runtime for all methods of a test class.
51
48
52
49
At runtime the cumulated duration of all test methods is measured. If the actual duration exceeds the expectation ABAP Unit will raise an alert.
53
50
Please not the cumulated duration contains also system activities as program compilation. In case of doubts it is recommend to choose the higher category.
54
51
55
-
##Maintenance
56
-
Use on of the following key words in the CLASS DEFINITON statement of a test class to specify the duration category:
52
+
Maintenance: Use on of the following key words in the CLASS DEFINITON statement of a test class to specify the duration category:
57
53
58
54
• DURATION SHORT (default) - within the blink of an eye ( < 10 seconds );
59
55
60
56
• DURATION MEDIUM - take a sip of tea ( < 2 minutes );
61
57
62
58
• DURATION LONG - get another cup.
63
59
64
-
Purpose
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.
60
+
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.
66
61
With help of this classification of the duration the test runner is able to detect these situations and cancel the execution.
0 commit comments