Contributions
Re: create list of object in one Rest request
I want to send a request to create many "Car" objects in one time. so I need to send in one request the list of these cars like : [ { car1 data, } { car2 data, } {car3 data } ] regards, lamiae4 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.8KViews0likes2CommentsRe: create list of object in one Rest request
Hi, Thank you for your responsenmrao, The data source is an excel file of 5 columns ("idCar","idUser", "idTypeCar","idCategorie","nameCategorie"). To read the file, I created a dataSource and a datasource Loop to iterate in each row and initiate the properties corresponding to eachJson element. Regards, lamiae4 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.8KViews0likes4Commentscreate list of object in one Rest request
Hi everbody, am new to SOAPUI & GROOVY Script, I would like to create a request test with a list of object "car" in one REST request. I'm able to read raw from excel file and I don't know how to create the request with groovy code and save the result in a file. Here the request definition (Json form) : { "idCar" : "string", "idUser" : "string", "idTypeCar" : "string", categories : [ { "idCategorie" : "string", "nameCategorie": "string"} ] } I need to send a request like : { { "idCar" : "id1", "idUser" : "0", "idTypeCar" : "Immatriculé", categories : [ { "idCategorie" : "id01", "nameCategorie": "cat01"} { "idCategorie" : "id02", "nameCategorie": "cat02"} ] } { "idCar" : "id2", "idUser" : "2", "idTypeCar" : "Immatriculé", categories : [ { "idCategorie" : "id02", "nameCategorie": "cat02"} { "idCategorie" : "id03", "nameCategorie": "cat03"} ] } } Thank you in advance.Solved4 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.9KViews0likes6Comments