soapui - Why a Groovy script keeps the previous array value? -
i have simple groovy script (executed soapui):
def string[] unsorted def string[] sorted unsorted=null sorted=null unsorted = ["lucas", "fred", "mary", "aaron", "brent"] log.info("unsorted: ${unsorted}") sorted = unsorted.sort() log.info("sorted: ${sorted}") when execute first time, sorts unsorted array expected. second time run it, unsorted array displayed sorted values. if reset both arrays null @ beggining, keeps results sorted array. have idea why?
this output:

Comments
Post a Comment