“Logging executed test steps” matters
The Test Case printID, which is called by the Test Suite TS1, is minimal. It has only one line:
WebUI.comment("ID=${ID}")
When called, printID emits just a few lines of step execution logs like,
I added another Test Case printID_manytimes, which is called by another Test Suite TS2. The test case has a loop of calling a keyword 10 times.
for (int i in 0..10) {
WebUI.comment("ID=${ID}")
}
With this loop, this test case will emit 10 times more of START + END logs into the Log Viewer.
I examined 3 cases where
- caseY1 : Execute TS2, with “Log executed test steps” option Enabled, with the Log Viewer is attached
- caseY2 : Execute TS2, with “Log executed test steps” option Disabled, with the Log Viewer is attached
- caseY3 : Execute TS2, with “Log executed test steps” option Disabled, with the Log Viewer is closed
The following is the result.
| case | Suite | Step Execution Log | Log Viewer | Mode | duration | duration graph |
|---|---|---|---|---|---|---|
| Y1 | TS2 | Enabled | Attached | Tree | 25 min 17 secs | #########+#########+#########+#########+#########+#########+#########+#########+#########+#########1#########+#########+#########+#########+#########+#########+#########+#########+#########+#########2#########+#########+#########+#########+#########+#########+#########+#########+#########+#########3#########+#########+#########+#########+#########+#########+#########+#########+#########+#########4#########+#########+#########+#########+#########+#########+#########+#########+#########+#########5#########+#########+#########+#########+#########+#########+#########+#########+#########+#########6#########+#########+#########+#########+#########+#########+#########+#########+#########+#########7#########+#########+#########+#########+#########+#########+#########+#########+#########+#########8#########+#########+#########+#########+#########+#########+#########+#########+#########+#########9#########+#########+#########+#########+#########+#########+#########+#########+#########+#########0#########+#########+#########+#########+#########+#########+#########+#########+#########+#########1#########+#########+#########+#########+#########+#########+#########+#########+#########+#########2#########+#########+#########+#########+#########+#########+#########+#########+#########+#########3#########+#########+#########+#########+#########+#########+#########+#########+#########+#########4#########+#########+#########+#########+#########+#########+#########+#########+#########+#########5## |
| Y2 | TS2 | Disabled | Attached | Tree | 6 min 11 secs | #########+#########+#########+####### |
| Y3 | TS2 | Disabled | Closed | - | 0 min 43 secs | #### |
Impressive, isn’t it?
It is ridiculous to wait such a long time for the Log Viewer to display the superfluous “START” & “END” logs.
Many Katalon Studio users are running long-haul tests (hours, days …). Now I will tell you; your test is the same as the case Y1. Now you know how to improve.