Skip to content
Advertisement

Tag: web-api-testing

Cypress – get value from json response body

I’m using Cypress to do some API testing, but I am struggling to access values in the JSON response body; however I can perform assertions against the body which suggests it’s receiving it correctly. Below I am trying to assign the JSON body (response.body) and then get the value of ‘id’ out of it: I’ve done numerous searches and can’t

Advertisement