Hi Experts, Im getting this error
Groovy:String too long. The given string is 71287 Unicode code units long, but only a maximum of 65535 is allowed
Pls. advice
Many Thanks
Hi Experts, Im getting this error
Groovy:String too long. The given string is 71287 Unicode code units long, but only a maximum of 65535 is allowed
Pls. advice
Many Thanks
hi @anandkumar.venkatara
are you trying to store a huge block of text directly in your test script? if yes, maybe you can try this workaround
move it to an external file
String largeData = new File("Data Files/large_data.txt").text
or if you need to keep it in code, split it up
String part1 = "first part..."
String part2 = "second part..."
String fullData = part1 + part2
hope this help
No, I cannot, unless you tell us how you get that ridiculously long string. Please show your Groovy code (Test Case) that emits that error so that we can see how the code generates the gigantic string.
where and when do you get this error? kindly provide details to help
No I m not
kindly provide additional details to replicate your issue
I need to chk. if I can share the code
I will chck & update you
Hi All
I saw there was a large junk code, and after splitting it into smaller units, not facing the error now
Thanks anyways everyone for your help
Thanks for the confirmation!