Is there a way to save “bigger parts” of a json response to be used for subsequent requests?
Example:
“relatesTo”: [
{
“code”: “replaces”,
“targetIdentifier”: {
“use”: “official”,
“value”: “97a60d4a-48d8-4128-92ba-f802448c3dea”
}
}
],
Here I want to save the whole element “relatesTo”, not just the “value” as in:
.check(jsonPath(“$.parameter[0].relatesTo.value”).saveAs(“value”)).
And if that is possible, is there a way to save the entire response body and tweaking it with dynamic values “in session”?
Thanks!