I’m trying to import some things from Apache POI and Java.io.File in a testscript. Specifically, I have the following imports in my script:
import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
import com.kms.katalon.core.model.FailureHandling as FailureHandling
import com.kms.katalon.core.testobject.ConditionType as ConditionType
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
When I try to switch to manual view, I get the error ‘There are errors in the script. Please fix them before switching to manual mode.’
This error does not occur when I remove the last 3 imports.
The error occurs when I remove all of the scripts itself (i.e. I have a testscript that is just these imports, and the error still occurs)
Pressing CTRL+Shift+O (with the rest of the script included) does not remove or change them (it does change the order of these imports).
These errors are not highlighted in script view, and therefore Katalon won’t tell me what the problem is.
Does someone know what the problem is?