# Tests OK in Postman but KO in newman?

**URL:** <https://community.postman.com/t/tests-ok-in-postman-but-ko-in-newman/31954>\
**Category:** Help Hub\
**Tags:** newman-project\
**Created:** [January 27, 2022, 3:10pm UTC](https://community.postman.com/t/tests-ok-in-postman-but-ko-in-newman/31954 "2022-01-27T15:10:01Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Legaly-esignature](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Legaly-esignature](https://community.postman.com/u/Legaly-esignature)\
**Post date:** [February 1, 2022, 6:44pm UTC](https://community.postman.com/t/tests-ok-in-postman-but-ko-in-newman/31954/10 "2022-02-01T18:44:02Z")

</div>

Hello,

Thanks for the replies ! Indeed I tried the method used by @vdespa and it’s work well.

> [@Newman run with relative file paths in form-data for file upload](https://community.postman.com/t/newman-run-with-relative-file-paths-in-form-data-for-file-upload/16069/8):
>
> Last time I have checked the only way is to do this by exporting the collection, editing it and re-importing it. But once you have this running, you don’t need to worry about this anymore.

But actually I don’t see how to create a variable on the path especially since the body of the request offers a location using the file manager and not a written path.

For @whersh, I’ve already set up the working directory like this:  
 ![Capture d’écran du 2022-02-01 19-41-47](https://us1.discourse-cdn.com/getpostman/original/3X/0/e/0ea497620fa9b2293600ed77780fed997325c903.png)

I’m going to try your method with the bash script. Do you have the source of your bash script or a tutorial where this is explained? The next challenge will be to share this collection with the rest of my team.

Thanks to both of you

---

_[View the full topic](https://community.postman.com/t/tests-ok-in-postman-but-ko-in-newman/31954)._
