# Change src to file in GITLAB repository

**URL:** <https://community.postman.com/t/change-src-to-file-in-gitlab-repository/8348>\
**Category:** Help Hub\
**Tags:** newman-project, tests, collections\
**Created:** [October 14, 2019, 12:43pm UTC](https://community.postman.com/t/change-src-to-file-in-gitlab-repository/8348 "2019-10-14T12:43:50Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![cristiano.coll](https://avatars.discourse-cdn.com/v4/letter/c/ecccb3/32.png) [@cristiano.coll](https://community.postman.com/u/cristiano.coll)\
**Post date:** [October 14, 2019, 12:43pm UTC](https://community.postman.com/t/change-src-to-file-in-gitlab-repository/8348/1 "2019-10-14T12:43:50Z")

</div>

> **Archived topic — this may be out of date.**  
> Newman has been replaced by the **[Postman CLI](https://learning.postman.com/docs/postman-cli/postman-cli-overview/)**, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.  
> Working with an AI coding agent? The [Postman plugin](https://github.com/postmanlabs/postman-plugin) lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.  
> For current help, see the [Postman docs](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

Hello! How do I change src path from a collection.json to find an attached file in my GITLAB repository to run with newman in a pipeline?

 ![FILEREPOSITORY](https://us1.discourse-cdn.com/getpostman/original/3X/b/e/be68828594edc995eb9b52d6b9763cb1efb5bb3d.png)  
 ![SRCCOLLECTION](https://us1.discourse-cdn.com/getpostman/original/3X/4/8/482aae39cea4893e7e29c7464d65ae3ef733f20c.png)

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [October 14, 2019, 1:27pm UTC](https://community.postman.com/t/change-src-to-file-in-gitlab-repository/8348/2 "2019-10-14T13:27:56Z")

</div>

Hey @cristiano.coll,

You should be able to use the `--working-dir <path>` CLI flag to change this.

> <https://github.com/postmanlabs/newman/blob/develop/README.md#newman-run-collection-file-source-options>

---

<div class="post-metadata">

**Author:** ![vdespa](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/vdespa/32/2770_2.png) [@vdespa](https://community.postman.com/u/vdespa)\
**Post date:** [October 14, 2019, 5:10pm UTC](https://community.postman.com/t/change-src-to-file-in-gitlab-repository/8348/3 "2019-10-14T17:10:24Z")

</div>

The way have the collection json file and the FORM.docx looks good to me.

What exactly is not working or what you are trying to achieve?

---

<div class="post-metadata">

**Author:** ![cristiano.coll](https://avatars.discourse-cdn.com/v4/letter/c/ecccb3/32.png) [@cristiano.coll](https://community.postman.com/u/cristiano.coll)\
**Post date:** [October 15, 2019, 2:03pm UTC](https://community.postman.com/t/change-src-to-file-in-gitlab-repository/8348/4 "2019-10-15T14:03:04Z")

</div>

> [@danny-dainton](#):
>
> –working-dir

Thanks for the collaboration. Could you cite an example through a screen?

---

<div class="post-metadata">

**Author:** ![cristiano.coll](https://avatars.discourse-cdn.com/v4/letter/c/ecccb3/32.png) [@cristiano.coll](https://community.postman.com/u/cristiano.coll)\
**Post date:** [October 15, 2019, 2:44pm UTC](https://community.postman.com/t/change-src-to-file-in-gitlab-repository/8348/5 "2019-10-15T14:44:53Z")

</div>

> [@vdespa](#):
>
> ?

Hello Vdespa, I will explain in detail my problem. I am exporting my postman collection and sending it to my project repository in GITLAB, when I run my pipelene using newman, I get the return status code 500 for requests containing the included file, was getting the comeback message: This file " after editing the src from my collection to “FORM.docx” passed when returning status code 500.

 ![img_3](https://us1.discourse-cdn.com/getpostman/original/3X/8/9/8944085d23338f7a1942bc57698694c71cc1cb7a.png) ![IMG_2](https://us1.discourse-cdn.com/getpostman/original/3X/f/d/fd1d5c8d7e8f86424f1f9ebeb498b1b8d691f4cd.png) ![IMG1](https://us1.discourse-cdn.com/getpostman/original/3X/0/0/00d704045f223d83ac29369487a6f4ac4e6998c5.png)

---

<div class="post-metadata">

**Author:** ![vdespa](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/vdespa/32/2770_2.png) [@vdespa](https://community.postman.com/u/vdespa)\
**Post date:** [October 15, 2019, 3:21pm UTC](https://community.postman.com/t/change-src-to-file-in-gitlab-repository/8348/6 "2019-10-15T15:21:30Z")

</div>

Let me see if I follow you: when you upload the file FORM.docx you get a 500 status code.

If the file is properly sent to the server, I would look at the response body to see what the server is complaining about. For me this seems like a valid test that failed because the backend is working differently.

---

<div class="post-metadata">

**Author:** ![cristiano.coll](https://avatars.discourse-cdn.com/v4/letter/c/ecccb3/32.png) [@cristiano.coll](https://community.postman.com/u/cristiano.coll)\
**Post date:** [October 15, 2019, 4:12pm UTC](https://community.postman.com/t/change-src-to-file-in-gitlab-repository/8348/7 "2019-10-15T16:12:39Z")

</div>

Then, directly in the Postman interface the execution is performed successfully.

 ![img6](https://us1.discourse-cdn.com/getpostman/original/3X/9/4/941e36aa2fcf578872c75ba5c4469781bd3d7d3f.png)

---

<div class="post-metadata">

**Author:** ![vdespa](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/vdespa/32/2770_2.png) [@vdespa](https://community.postman.com/u/vdespa)\
**Post date:** [October 15, 2019, 4:37pm UTC](https://community.postman.com/t/change-src-to-file-in-gitlab-repository/8348/8 "2019-10-15T16:37:11Z")

</div>

Got it.

You will need a way to inspect the response from the server.

Are you generating the htmlextra report by any chance?

---

<div class="post-metadata">

**Author:** ![cristiano.coll](https://avatars.discourse-cdn.com/v4/letter/c/ecccb3/32.png) [@cristiano.coll](https://community.postman.com/u/cristiano.coll)\
**Post date:** [October 15, 2019, 4:57pm UTC](https://community.postman.com/t/change-src-to-file-in-gitlab-repository/8348/9 "2019-10-15T16:57:23Z")

</div>

No, how can I generate?

---

<div class="post-metadata">

**Author:** ![vdespa](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/vdespa/32/2770_2.png) [@vdespa](https://community.postman.com/u/vdespa)\
**Post date:** [October 15, 2019, 5:15pm UTC](https://community.postman.com/t/change-src-to-file-in-gitlab-repository/8348/10 "2019-10-15T17:15:54Z")

</div>

Add this dependency:

```auto
npm install newman-reporter-htmlextra

```

and add htmlextra to your reporters.

Make sure to publish the newman folder as an artifact.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [October 15, 2019, 5:32pm UTC](https://community.postman.com/t/change-src-to-file-in-gitlab-repository/8348/11 "2019-10-15T17:32:01Z")

</div>

Thanks for suggesting this @vdespa ❤

They would also need to include the additional cli arg into the command, to tell `newman` to use the reporter on the run.

`-r htmlextra`

Saw you added that but wanted to add the command too 😁

---

<div class="post-metadata">

**Author:** ![cristiano.coll](https://avatars.discourse-cdn.com/v4/letter/c/ecccb3/32.png) [@cristiano.coll](https://community.postman.com/u/cristiano.coll)\
**Post date:** [October 22, 2019, 11:28am UTC](https://community.postman.com/t/change-src-to-file-in-gitlab-repository/8348/12 "2019-10-22T11:28:10Z")

</div>

Thank you, vdespa. I will study this option and give you a feedback.

---

<div class="post-metadata">

**Author:** ![cristiano.coll](https://avatars.discourse-cdn.com/v4/letter/c/ecccb3/32.png) [@cristiano.coll](https://community.postman.com/u/cristiano.coll)\
**Post date:** [October 22, 2019, 11:30am UTC](https://community.postman.com/t/change-src-to-file-in-gitlab-repository/8348/13 "2019-10-22T11:30:11Z")

</div>

Thanks dannydainton, I will also check this option.

---

<div class="post-metadata">

**Author:** ![gghode](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gghode](https://community.postman.com/u/gghode)\
**Post date:** [July 2, 2021, 8:54am UTC](https://community.postman.com/t/change-src-to-file-in-gitlab-repository/8348/14 "2021-07-02T08:54:11Z")

</div>

@cristiano.coll

I am facing same problem as you mentioned, have you found any solution for same?

Thanks

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [August 24, 2023, 1:41pm UTC](https://community.postman.com/t/change-src-to-file-in-gitlab-repository/8348/15 "2023-08-24T13:41:03Z")

</div>

Closed on August 24, 2023, 1:41pm UTC


