I’m getting this error when I run my test cases in Katalon Studio 5.4:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
General error during class generation: Method code too large!
I checked the script file size and it’s 54k. I didn’t have this issue running Katalon Studio 220.127.116.11.
As I requested here http://forum.katalon.com/discussion/comment/13642/#Comment_13642
Please document what is and is not an acceptable length for a TestCase
run() method (which I assume is the method whose length is being
I had the same issue with v18.104.22.168, however, GROOVY file was above 64k. When I brought down the file below 64k, it started working. I figured it had to do with Java methods size limit.
“Java has a 64k limit on the size of methods.”
Good work Sherlock
But still, the team should document the limit somewhere. Plus, since the kms runtime impacts somewhat on our methods, whatever the java limit is, it’ll be less in our run() methods.