Continue statement does not have console debug message

Operating System

e.g. Windows 10

Katalon Studio version

e.g. version 8.6.0

Windows environment

Steps to reproduce

-Create a new test case.
-In script view: create a simple for loop
-add continue statement in for loop
e.g. for(i=0;i<1;i++){continue}
-run

Expected Behavior
Correct debug message is displayed for continue statement.

Actual Behavior
DEBUG message for continue statement is not implemented.

Screenshots / Videos (please attach screenshots or videos if necessary to reproduce the issue)


LogViewer

1 Like

I could reproduce this report:

I made a test case.

for(int i=0;i<3;i++){
	if (i==1) {
		continue
	}
	println i
}

When I ran this, I saw in the console:

2023-04-06 08:16:02.200 INFO  c.k.katalon.core.main.TestCaseExecutor   - --------------------
2023-04-06 08:16:02.204 INFO  c.k.katalon.core.main.TestCaseExecutor   - START Test Cases/foo
2023-04-06 08:16:03.035 DEBUG testcase.foo                             - 1: for ([i = 0, i < 3, (i++)])
2023-04-06 08:16:03.040 DEBUG testcase.foo                             - 1: if (i == 1)
2023-04-06 08:16:03.044 DEBUG testcase.foo                             - 2: println(i)
0
2023-04-06 08:16:03.050 DEBUG testcase.foo                             - 1: if (i == 1)
2023-04-06 08:16:03.067 DEBUG testcase.foo                             - 1: <not implemented yet for class: org.codehaus.groovy.ast.stmt.ContinueStatement>
2023-04-06 08:16:03.068 DEBUG testcase.foo                             - 1: if (i == 1)
2023-04-06 08:16:03.071 DEBUG testcase.foo                             - 2: println(i)
2
2023-04-06 08:16:03.113 INFO  c.k.katalon.core.main.TestCaseExecutor   - END Test Cases/foo

Katalon Studio printed this:

2023-04-06 08:16:03.067 DEBUG testcase.foo                             - 1: <not implemented yet for class: org.codehaus.groovy.ast.stmt.ContinueStatement>

but it should rather print this

2023-04-06 08:16:03.067 DEBUG testcase.foo                             - 1: continue

Possibly Katalon developer forgot implementing a method in a class that deals with org.codehaus.groovy.ast.stmt.ContinueStatement to transform the instance to a string.
@vu.tran

Hi,

I would like to update that we will fix this in v9.3.0, aimed for Jan 2024. Thank you for your contribution!