Your question may already have an answer on the community forum. Please search for related topics, and then read through the guidelines before creating a new topic.
Here’s an outline with best practices for making your inquiry.
My question:
I’m running my collection in newman but get errors all the time , non of the test passed,
When I run the collection in the Postman runner everything works as expected,
I’ve tried to user both collection & global variables
Details (like screenshots):
# failure detail
01. TypeError console.clear is not a function
at prerequest-script
inside "Get all boards"
02. JSONError Unexpected token 'i' at 1:1
invalid key
^
at test-script
inside "Get all boards"
03. JSONError Unexpected token 'i' at 1:1
invalid key
^
at test-script
inside "Create board"
04. TypeError console.clear is not a function
at prerequest-script
inside "Get single board"
05. AssertionError Status code is 200
expected response to have status code 200 but got 404
at assertion:0 in test-script
inside "Get single board"
06. JSONError Unexpected token 'i' at 1:1
invalid key
^
at test-script
inside "Create TODO list"
07. JSONError Unexpected token 'i' at 1:1
invalid key
^
at test-script
inside "Create DONE list"
08. JSONError Unexpected token 'i' at 1:1
invalid key
^
at test-script
inside "Create card"
09. JSONError Unexpected token 'C' at 1:1
Cannot PUT /1/cards/?key={{key}}&token={{token}}
^
at test-script
inside "Move card to DONE list"
10. AssertionError Status code is 200
expected response to have status code 200 but got 404
at assertion:0 in test-script
inside "Delete board"
How I found the problem:
I’ve already tried: