我正在使用Soap UI来测试RESTFul webservices .. 我已将[1,2,3,4,5 ....,10]作为PassedValue存储在属性中。 。我必须将这个值转换为数组或列表..我可以获取每个索引值。将字符串转换为Groovy中的数组或列表
ExpectedValue = context.testCase.getPropertyValue("PassedValue") as String[]
这不是工作..如果我打印ExpectedValue [0]它打印 “[”
我想提取ExpectedValue [0]为1,第一索引作为2 ..。
试图为.toList转换,但仍然没有运气..
任何一个可以帮助我在这?
完美..谢谢.. – ChanGan
欢迎您 –