Skip to content

Commit 03eb0a0

Browse files
Update db-access-in-ut.md
1 parent 32eee6f commit 03eb0a0

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

docs/checks/db-access-in-ut.md

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,33 +28,30 @@ SELECT XXXXX. "#EC DB_ACCESS_UT
2828
Definition
2929
The RISK LEVEL describes the effects that a test can have on the data security of the system:
3030

31-
• CRITICAL - such as changes to system settings or Customizing
32-
• DANGEROUS - such as changes to persistent data
33-
• HARMLESS - no effects on persistent data or system settings
31+
• CRITICAL - such as changes to system settings or Customizing;
32+
• DANGEROUS - such as changes to persistent data;
33+
• HARMLESS - no effects on persistent data or system settings.
3434

3535
The RISK LEVEL is assigned by the following extension to the CLASS DEFINITION statement of a test class:
3636

37-
• RISK LEVEL CRITICAL - default
38-
• RISK LEVEL DANGEROUS
39-
• RISK LEVEL HARMLESS
40-
37+
• RISK LEVEL CRITICAL - default;
38+
• RISK LEVEL DANGEROUS;
39+
• RISK LEVEL HARMLESS.
4140

4241
### Duration
4342
Definition
4443
The DURATION property allows you to define an expected runtime for all methods of a test class.
4544

46-
• SHORT - within the blink of an eye ( < 10 seconds )
47-
• MEDIUM - take a sip of tea ( < 2 minutes )
48-
• LONG - get another cup
49-
5045
At runtime the cumulated duration of all test methods is measured. If the actual duration exceeds the expectation ABAP Unit will raise an alert.
5146
Please not the cumulated duration contains also system activities as program compilation. In case of doubts it is recommend to choose the higher category.
5247

5348
Maintenance
5449
Use on of the following key words in the CLASS DEFINITON statement of a test class to specify the duration category:
55-
• DURATION SHORT (default)
56-
• DURATION MEDIUM
57-
• DURATION LONG
50+
51+
• DURATION SHORT (default) -within the blink of an eye ( < 10 seconds );
52+
• DURATION MEDIUM - take a sip of tea ( < 2 minutes );
53+
• DURATION LONG - get another cup.
54+
5855
Purpose
5956
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.
6057
With help of this classification of the duration the test runner is able to detect these situations and cancel the execution.

0 commit comments

Comments
 (0)