Il want to do something like :
.get("/rest/historisation/findUserHistory")
.check(jsonPath("$..historique-recherche[*].id-variante").findAll.saveAs("IDS_VAR_HISTO"))
)
.exec(session => {
session.set("ID_VAR", "${IDS_VAR_HISTO.random}")
})
But when i'm accessing the value of my session variable i got : "${IDS_VAR_HISTO.random}"
How can i store the random result in an attribute of my session ?
I want to put the result from differents chains and not only from "IDS_VAR_HISTO" but from "IDS_VAR_HISTO", "IDS_VAR_CNIT", etc.
This aims to get always my id from "${ID_VAR} independently of the chain.
Thank you in advance for helping me.