Skip to content

Commit 3f482dc

Browse files
Update db-access-in-ut.md
1 parent 7544216 commit 3f482dc

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

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

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,32 +28,38 @@ 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;
31+
• CRITICAL - such as changes to system settings or Customizing;
3232

3333
• DANGEROUS - such as changes to persistent data;
3434

35-
• HARMLESS - no effects on persistent data or system settings.
35+
• HARMLESS - no effects on persistent data or system settings.
3636

3737

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

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+
4346

4447
### Duration
45-
Definition
48+
49+
#Definition
4650
The DURATION property allows you to define an expected runtime for all methods of a test class.
4751

4852
At runtime the cumulated duration of all test methods is measured. If the actual duration exceeds the expectation ABAP Unit will raise an alert.
4953
Please not the cumulated duration contains also system activities as program compilation. In case of doubts it is recommend to choose the higher category.
5054

51-
Maintenance
55+
##Maintenance
5256
Use on of the following key words in the CLASS DEFINITON statement of a test class to specify the duration category:
5357

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.
5763

5864
Purpose
5965
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

Comments
 (0)