Hi @kunagpal,
Thanks for your time .
still observing the below error in console,
ReferenceError | faker is not defined
TypeError | Cannot set property 'faker' of undefined
Following is the screenshot,
Following is the snippet iām using in Pre-Request Script
pm.sendRequest('https://cdnjs.cloudflare.com/ajax/libs/Faker/3.1.0/faker.min.js', (err, res) => {
(new Function(res.text()))();
var randomName = faker.name.findName();
console.log(randomName);
});
can you please tell, what and where iām doing wrong ?
Thanks & regards,
Gopi .