How 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": ""
}