Manual Test Passing but failing in Collection Runner

Hi. I have a post api that uploads a document.
When i run it manually the tests pass but when i run it in the collection runner it fails and gives 500 internal server error.I am setting the environment to be correct on the collection runner and i have saved. Please looking for assistance.Thanks

Hi there.

Seems you are executing a request with a file. Have you included this file into the collection runner?

Welcome to the community, @vikash.chetty! :wave:

The fix is easy, but not very obvious.

If you open up Postman settings (ctrl + ,) and scroll down down the Working Directory section and look at the folder in the Location field.

You need to put the file you’re uploading in that directory, that way Postman knows where to pull it from when using the collection runner.

1 Like