I am working in soapUI. I need to define Array in Groovy in soapUI groovy script.
Could you please help me
I am working in soapUI. I need to define Array in Groovy in soapUI groovy script.
Could you please help me
// 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) }