How to define array in Groovy soapUI?
问题 I am working in soapUI. I need to define Array in Groovy in soapUI groovy script. Could you please help me 回答1: // Define the array def MAX_SIZE = 4 def myArray = new Object[MAX_SIZE] // Fill the array myArray[0] = "This" myArray[1] = "is" myArray[2] = "my" myArray[3] = "array." // Print content of the array myArray.each { log.info(it) } 回答2: See here, for example: http://groovy.codehaus.org/JN1025-Arrays 来源: https://stackoverflow.com/questions/8968028/how-to-define-array-in-groovy-soapui