"There are errors in the script. Please fix before executing." from comment

Operating System Windows 10

Katalon Studio Version 5.10.1

Katalon Studio gives a popup error “There are errors in the script. Please fix before executing.” if you have a line like this in your script:

String cat //comment

Meanwhile these work fine:
String cat="" //comment

String cat
//comment

String cat; //comment

This issue was a huge pain cause it doesn’t highlight what line is causing it. Took me quite a while to figure out.

And how do you fix it?
Did you just simply remove the comments?
Did you find a way to keep them?

Pedro

I moved my comments to their own separate lines. But putting a semicolon in the middle also works. It’s not too bad to work around if you can figure out what line is causing it.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.