Error exporting test artifacts in Katalon Studio
When exporting test artifacts in Katalon Studio, the following error can occur:
Error exporting test artifacts
Cannot invoke "java.io.File.getAbsolutePath()" because the return value of "com.katalon.platform.api.model.TestCaseEntity.getScriptFile()" is null
Each test case in Katalon Studio should consist of:
A metadata file (
*.tc
, in XML format)A script file (
*.groovy
)
The error arises when one or more test cases are missing the script file (*.groovy
). This can happen due to merge conflicts, unexpected errors, or other issues that caused the file to be lost or corrupted.