I have created postman collection locally used Test 200 assertion. it’s working as expected. While generating the newman report same request response message error shows
expected object (id _details …) to have property ‘code’
note: I have checked in console and the response value is displaying in console ( came from server). Response details is not captured/displayed in newman report so this following error is displaying " expected { Object (id, _details, …) } to have property ‘code’ "
@danny-dainton - Could you please provide your insight on the above error?
What’s the output from the CLI reporter for the request?
newman run collection.json -r cli
The report is generated based on the same information coming from Newman, there isn’t any manipulation of the data presented in the report. It just happens to be displayed it a more visual way.
Also, in isolation, it’s difficult to know what’s going on as we cannot see the actual request you’re making, the version of Node or the version of Newman that you’re using.
@danny-dainton - Thank you for your response! I could see this error ’ self signed certificate in certificate chain ’ while running the collection from command prompt. so I ran the connection with --insecure command. it is working fine now.