Hi chikki,
Let me re-suggest you that you post to pro forums if you own a pro license.
If you're comparing two arrays in Groovy/Java there's no need for nested loops. That actually applies to any reasonably modern (< 25 years old) programming language, incl. VB. What's more, being quite a very modern script language, Groovy makes list comparison ridiculously simple:
a == b ? "Lists are equal" : "Lists differ"
|
Groovy overrides other operators as well so you can do cool stuff like this:
if (receivedResults == expectedResults) { log.info("All received results are correct, i.e. as expected.") } else { log.warn("Received unexpected results: " + ( expectedResults - receivedResults) ) log.warn("Missing expected results: " + (receivedResults - expectedResults) ) }
|
Further references and tutorials on using Groovy language you can find in the
Getting Started on the official Groovy website.
I hope that helps.
Cheers!
/Nenad Nikolic a.k.a. Shonzilla