GerdW
12 years agoNew Contributor
[Resolved] Passing data in REST/JSON Test Cases
Hi all,
currently I try to pass a "correlationID" from a JSON Response to a following JSON Request in a combined test scenario (leveraging SOAP UI 4.6.1 on Mac OS). I use a REST Request 1, a Property Transfer step, a Property List (name: "Properties" with a property called "correlationID") and a JSON Request 2 in this scenario.
I managed to fill the Property "correlationID" in the Property List with the JSON Response 1 (using the syntax: //*:correlationID in the source tab of the Property Transfer Task).
But now I would like to access this Property in my JSON Request 2. I have tried ${#TestCase#correlationID} and ${#TestCase#Properties#correlationID}, but the correlationID in JSON Request 2 remains empty during execution. Any ideas? Thanks a lot.
{
"testdata:"12345",
"correlationID":"${#TestCase#correlationID}"
}
With kind regards
Gerd
currently I try to pass a "correlationID" from a JSON Response to a following JSON Request in a combined test scenario (leveraging SOAP UI 4.6.1 on Mac OS). I use a REST Request 1, a Property Transfer step, a Property List (name: "Properties" with a property called "correlationID") and a JSON Request 2 in this scenario.
I managed to fill the Property "correlationID" in the Property List with the JSON Response 1 (using the syntax: //*:correlationID in the source tab of the Property Transfer Task).
But now I would like to access this Property in my JSON Request 2. I have tried ${#TestCase#correlationID} and ${#TestCase#Properties#correlationID}, but the correlationID in JSON Request 2 remains empty during execution. Any ideas? Thanks a lot.
{
"testdata:"12345",
"correlationID":"${#TestCase#correlationID}"
}
With kind regards
Gerd