Forum Discussion

shales's avatar
shales
Occasional Contributor
6 years ago
Solved

Getting and Setting a property based on Sibling value

I am looking to set a test case level property based on the id field in the response.  I only care about the ID that contains a specific value in the 'node' field. 

 

Response from myTest Case named "GET/Nodes"

[{"id":53,"node":"TestA"},{"id":54,"node":"TestB"},{"id":136,"node":"TestC"},{"id":55,"node":"TestD"}]

For instance I want a test case level property called 'nodeId' that uses the id where the 'node' field contains "TestB". I am not sure what the best way to do this is. 

  • HI Olga,
    Yes, the issue appeared to be that the request contained too much data and the jsonslurper was running out of memory.  We changed the call to a batching call which seems to have resolved our issues.