# How we can use faker in Postman v 7.2

**URL:** <https://community.postman.com/t/how-we-can-use-faker-in-postman-v-7-2/5916>\
**Category:** Help Hub\
**Tags:** data\
**Created:** [June 14, 2019, 1:37pm UTC](https://community.postman.com/t/how-we-can-use-faker-in-postman-v-7-2/5916 "2019-06-14T13:37:06Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![dblom](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@dblom](https://community.postman.com/u/dblom)\
**Post date:** [August 28, 2020, 2:51pm UTC](https://community.postman.com/t/how-we-can-use-faker-in-postman-v-7-2/5916/9 "2020-08-28T14:51:27Z")

</div>

Hello there Christian,

This is what worked for me to get the faker locale working in the test script:

```auto
window = {};
pm.sendRequest("https://cdnjs.cloudflare.com/ajax/libs/Faker/3.1.0/faker.min.js", (error, response) => {
var text = response.text();
(new Function(text))();

window.faker.locale = "de";
var name = window.faker.name.findName();

console.log(name);

pm.globals.set("name", name);
})

```

---

_[View the full topic](https://community.postman.com/t/how-we-can-use-faker-in-postman-v-7-2/5916)._
