For the purpose of my testing, I need to fetch .json
file at pre-request script
section and use it as payload for POST request using Postman, then once been fetched need to alter some data on it.
My .json
looks like:
{
"email": "test@gmail.com",
"password": "Abc12345",
"timezone": "Europe/Berlin"
}
After being fetched, I need to change email address with another dynamically generated email.
I know its possible to use .json file within body -> binary
section of Postman, but this is not sufficient for the use-case that I need.
Is there any way to fetch .json file with-in pre-request script and then alter a value befere firing the request?