# Show url from response as a link

**URL:** <https://community.postman.com/t/show-url-from-response-as-a-link/14843>\
**Category:** Help Hub\
**Created:** [August 9, 2020, 5:30am UTC](https://community.postman.com/t/show-url-from-response-as-a-link/14843 "2020-08-09T05:30:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![maya.moshe](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@maya.moshe](https://community.postman.com/u/maya.moshe)\
**Post date:** [August 9, 2020, 5:30am UTC](https://community.postman.com/t/show-url-from-response-as-a-link/14843/1 "2020-08-09T05:30:11Z")

</div>

I have a pm.test that prints a url from the response, in fact, I have 16 of them. Is there a way to make the printed url appear as a link instead of text?

```auto
pm.test("payoff: " + pm.globals.get("mechanism_name") + " PostDeposit eng: " + jsonData.url);

```

gives:

```auto
payoff: CallSpread PostDeposit heb: http://10.1.1.10:8080/FPP/reports/41/onDemandReports/Poalim-Internal-Id_912-170-Typ-0044720-QuotDeposit_iw__202008061157.pdf

```

---

<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 9, 2020, 5:56am UTC](https://community.postman.com/t/show-url-from-response-as-a-link/14843/2 "2020-08-09T05:56:01Z")

</div>

Hey @maya.moshe

Welcome to the Postman community! 🚀

Are you able to provide a sample of what the response body looks like please?

You could use the visualizer feature to print out a set of clickable URLs?

As you’re not really testing anything with those statements would that be a better option?

---

<div class="post-metadata">

**Author:** ![maya.moshe](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@maya.moshe](https://community.postman.com/u/maya.moshe)\
**Post date:** [August 9, 2020, 6:15am UTC](https://community.postman.com/t/show-url-from-response-as-a-link/14843/3 "2020-08-09T06:15:22Z")

</div>

Hi!  
thank you for your response.  
here is what the test looks like after running it:  
payoff: CallSpread PostDeposit heb: [http://10.1.1.10:8080/FPP/reports/41/onDemandReports/Poalim-Internal-Id\_912-170-Typ-0044720-QuotDeposit\_iw\_\_202008061157.pdf](http://10.1.1.10:8080/FPP/reports/41/onDemandReports/Poalim-Internal-Id_912-170-Typ-0044720-QuotDeposit_iw__202008061157.pdf)

I’ll try the visualizer, but my goal is indeed to build further tests based on those links, so I’d need another way as well. I aim to have selenium open the links and run a series of tests on them.

---

<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 9, 2020, 6:21am UTC](https://community.postman.com/t/show-url-from-response-as-a-link/14843/4 "2020-08-09T06:21:28Z")

</div>

That’s not really the response output, that’s the ‘pm.test()’ output which will always pass because it’s not testing anything to fail against. 😁

Does the response body look like this:

```auto
{
    "url": "https://example.com"
}

```

What type of things are you hoping to test for here?

---

<div class="post-metadata">

**Author:** ![maya.moshe](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@maya.moshe](https://community.postman.com/u/maya.moshe)\
**Post date:** [August 9, 2020, 7:42am UTC](https://community.postman.com/t/show-url-from-response-as-a-link/14843/5 "2020-08-09T07:42:57Z")

</div>

Sorry, my bad, here is the response:  
{

```
"status": {

    "code": "OK",

    "description": "initial status OK",

    "details": null,

    "override": false,

    "ok": true

},

"fppSatusCode": 0,

"url": "http://10.1.1.19:8089/FPP/reports/41/onDemandReports/Internal-Id_988-177-Typ-0044727-QuotDeposit_iw__202008091041.pdf"

```

}

The pdf is a report, that needs baseline testing for basic structure consistency and a value comparison for the parameters in the report.
