Bug - Katalon Studio 5.4: Method code too large! Error


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

Thank you!

54k script.jpg

@Katalon Team

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
complained about).


Thanks Russ!

I had the same issue with v5.3.1.1, 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 :wink:

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.