Hi @kazurayam ,
There are 2 problems in this topic:
The issue relates to a test suite using data binding with large Test Data. We already fixed it.
Please find the screen capture for the same.
[image]
@spullabhotla ,
In my reproduction, I could find a Groovy script <project directory>/Libs/TempTestSuitexxxxxxxxxxx.groovy of which size is 1,229,051 bytes. Its content is like this:
import com.kms.katalon.core.logging.KeywordLogger
import com.kms.katalon.core.exception.StepFailedException
import com.kms.katalon.core.reporting.ReportUtil
import com.kms.katalon.core.main.TestCaseMain
import com.kms.katalon.core.testdata.TestDataColumn
import com.kms.katalon.core.testcase.TestCaseBinding
import co…
The issue relates to a test case contains 500-1000 lines of code. This is a Groovy limitation. We may try to improve but we also recommend users to separate the main script to multiple methods.
Im experiencing this and I dont have 500 lines…more like 400, which is really not alot, especially when you write test by hand (not record). Nevertheless, it seems we either learn the keywords and custom methods or else we are SOL with our scripts lol… Not preferred at all, but if this is the case, the tutorial should at least be much much more comprehensible and easy to apply to our own scripts (creating, implementing, using Keyword, etc).
Any update from the katalon team about this issue ?
i have the same problem although the groovy file is not very large (around 200kb)
@huynguyen I never use test data in form of data binding but I use a database to access test data.
I always get method code too large error when I have a script going over 1000 lines.
Thanks.
1 Like