Contributions
How to send dynamic Json request to API using groovy script
can some one provide me sample snippet for to read dynamic json request to API using groovy script. Also let me know is there any other way to automate dynamic Json requests apart from groovy script . below is my sample request. { "id": 65, "name": "Test", "displayName": "Test", "description": "Test", "status": "Active", "updatedby": "Test", "updatedon": "2020-08-13T00:00:00", "rolePermission": { "rolePermissionInfo": [ { "name": "Test", "permission": "Full Access", "centername": "Test", "displayname": "Test" }, { "name": "Test1", "permission": "Full Access", "centername": "Test1", "displayname": "Test1" }, { "name": "Test1", "permission": "Full Access", "centername": "Test1", "displayname": "Test1" } ] }, "mode": Test } Note : Role permission info has array of value and it will change dynamically.Solved1.9KViews0likes1CommentRe: How to pass values to json request using groovy script
HimanshuTayal Thank you for quick response . i am beginner to soapui - groovy automation . can you please help me to write the custom code . Also please suggest me best site to learn soapui - groovy automation. thanks.735Views0likes0CommentsHow to pass values to json request using groovy script
Hi Team, i am new to soapui - groovy script automation . i am looking for solution to pass values to Json request using groovy script I am aware to pass values using custom properties ,but its not useful for my scenario since role permission info(See the below request) has array of values. it might change every time . can you please suggest the solution to handle this type of scenarios using groovy script. Sample Request : { "id": "", "name": " ", "displayName": " ", "description": " ", "status": " ", "updatedby": " ", "updatedon": " ", "rolePermission": { "rolePermissionInfo": [ { "name": "", "permission": "", "centername": "", "displayname": "" }, { "name": "", "permission": "", "centername": "", "displayname": "" }, { "name": "", "permission": "", "centername": "", "displayname": "" } ] }, "mode": "" }763Views0likes2CommentsIn Soap UI , how can i pass array of values to the request body using custom properties.
Hi Team, i want to pass multiple input values to below request body using custom properties. can you please help to sort out the problem. Sample Body : "rolePermissionInfo": [ { "name": "string", "permission": "string", "centername": "string", "displayname": "string" } ]4KViews0likes1Comment