我正在使用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
歡迎您 –