I’m submitting the postman examples, however, errors returned in the ‘Add a book’ request. However, the errors are referencing what I believe is a request that includes parameters - movies in the request which is not part of ‘adding a book’.
{
“status”: “error”,
“message”: “Your collection failed one or more Postman tests. See the errors array for details.”,
“errors”: [
{
“test”: “[add a book] has script in Tests tab”,
“message”: “Cannot read properties of undefined (reading ‘length’)”
},
{
“test”: “1. [skillcheck] Used POST as the request method”,
“message”: “Cannot read properties of undefined (reading ‘request’)”
},
{
“test”: “2. [skillcheck] Used a query parameter called ‘movieName’”,
“message”: “Cannot read properties of undefined (reading ‘request’)”
},
{
“test”: “3. [skillcheck] Used a base URL variable called {{skillcheckBaseUrl}}”,
“message”: “Cannot read properties of undefined (reading ‘request’)”
},
{
“test”: “4. [skillcheck] Set request auth to “API key” & header to “student-expert"”,
“message”: “Cannot read properties of undefined (reading ‘request’)”
},
{
“test”: "5. [skillcheck] Used a JSON body with 'actorName; ",
“message”: “Cannot read properties of undefined (reading ‘request’)”
},
{
“test”: “6. [skillcheck] Set "favoriteActor" as a collection variable using pm.collectionVariables set(…) in Tests tab script”,
“message”: “Cannot read properties of undefined (reading ‘event’)”
}
]
}