Hi,
trying to make two corresponding lists (id-list, status-list) from a post response, see below.
List of “id” - works fine.
List of “status” fails when I try to make char conversion before saveAs: “value replaceAll is not a member of Seq[String]…”
Any workaround?
// rgds Juha
(1) - works fine if I skip the char “transform” before saveAs
(2) - accepted if I use “find” instead of “findAll” but I get only one item, not a list…
(3) - not accepted when doing .findAll.transform(…).saveAs("…")
.exec(http(“xxxxxx”)
.post(“xxxxxx”)
.headers(xxxxxx)
.param(“startDate”, startTime.intValue().toString())
.param(“endDate”, stopTime.intValue().toString())
.check(regex("""“id”:([0-9]*)""")
.findAll.whatever.saveAs(“scheduledItemsIdList”))
(1) .check(regex("""“status”:([A-Z,0-9,&,#,;]*)""")
.find.transform( .map(.replaceAll(“Ö”, “Ö”).replaceAll(“Å”, “Å”))).saveAs(“scheduledItemsStatusList”)))
(2) .check(regex("""“status”:([A-Z,0-9,&,#,;]*)""")
.findAll.saveAs(“scheduledItemsStatusList”)))
(3) .check(regex("""“status”:([A-Z,0-9,&,#,;]*)""")
.findAll.transform( .map(.replaceAll(“Ö”, “Ö”).replaceAll(“Å”, “Å”))).saveAs(“scheduledItemsStatusList”)))