Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 21061

json object

$
0
0

 hi

 

i'm working with REST and JSON payloads and have had some difficulty with soapUI when i attempt to dynamically generate a JSON object from a spreadsheet -

 

it may be my solution - where an indicator resolves to true then my script will proceed to iterate over as many rows as are identified for a request message. Each row represents an item to be added to a JSON array. I've noticed that as I added items to the array and the fitted that array into an object - before my script moed onto the next row, using the datasource/datasource loop, the object could not be retained nor saved to a test case/test suite property. I was forced to save it as a string and re-read as a string up on the next loop - remove the comment characters and convert back to a json object.

 

is there anyway that SOAPui could retrain objects in memory created by a groovy script? 


Viewing all articles
Browse latest Browse all 21061

Trending Articles