Hello everyone
Im quite new using robot framework and im having a problem, with a post request that as a big body :
{
“address”: {
“addressLine1”: “string”,
“addressLine2”: “string”,
“addressLine3”: “string”,
“city”: “string”,
“companyName”: “string”,
“country”: {
“abbreviation”: “string”,
“name”: “string”
},
“firstName”: “string”,
“id”: 0,
“isBusiness”: true,
“isDefault”: true,
“isoCountryAlpha2”: {
“alpha2”: “string”,
“name”: “string”
},
“isoCountrySubdivision”: “string”,
“lastName”: “string”,
“phoneFax”: {
“id”: 0,
“isActive”: true,
“isDefault”: true,
“phoneNumber”: “string”
},
“phonePrimary”: {
“id”: 0,
“isActive”: true,
“isDefault”: true,
“phoneNumber”: “string”
},
“phoneSecondary”: {
“id”: 0,
“isActive”: true,
“isDefault”: true,
“phoneNumber”: “string”
},
“postalCode”: “string”,
“state”: {
“abbreviation”: “string”,
“name”: “string”
},
“stateProvinceRegion”: “string”
},
“addressName”: “string”,
“applicationContext”: {
“applicationName”: “string”,
“autowireCapableBeanFactory”: {},
“beanDefinitionCount”: 0,
“beanDefinitionNames”: [
“string”
],
“classLoader”: {
“defaultAssertionStatus”: true,
“parent”: {}
},
“displayName”: “string”,
“environment”: {
“activeProfiles”: [
“string”
],
“defaultProfiles”: [
“string”
]
},
“id”: “string”,
“parent”: {},
“parentBeanFactory”: {},
“startupDate”: 0
},
“archived”: {},
“id”: 0
}
Since the request is only to add Address i belive i dont have to change all the filds of the body but im still very confused how to make it work. Some people have pointed to me to use jsonpath library but i still not sure how it would work to select the path that i might need to change. Im ok with small bodys but this one is making go nuts. Someone could give me a hand? Thanks in advance