Pre Request In Postman- How to use Pre Request In Collection-- Postman Tutorial For Beginner

Pre Request In Postman- How to use Pre Request In Collection-- Postman Tutorial For Beginner

Mukesh otwani

4 года назад

29,714 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Dinesh Bajikar
Dinesh Bajikar - 03.07.2022 01:19

Hi Mukesh, can you please tell, how we will manage if we have scenario
I will create an application and next I want to move ahead with some action on the created application. My reference will application ID and few other key values -- In postman with help of Pre Request..

Ответить
Amaan Gigani
Amaan Gigani - 17.06.2022 16:00

I want to go deeper in this. I want to create a code what sends login and recieved token for the request

Ответить
Prashant Mehan
Prashant Mehan - 15.06.2022 10:46

var jsonData= JSON.parse(responseBody);
var bookid = [ ];

if (jsonData.id[i].length > 0)
{
for (i=0; i<jsonData.id[i].length;)
{
bookid[i] = jsonData.id[i];
i++;
}
}
pm.environment.set("bookid", JSON.stringify(bookid));

i am facing some problem in this script, can anybody helps me out.
note: console shows 'i is not defined'

Ответить
pravin jadhav
pravin jadhav - 12.02.2022 08:05

Can we validate payload schema in pre request ? If they How ?

Ответить
Monali Shambhwani
Monali Shambhwani - 06.05.2021 05:47

Nice video Mukesh..Amazing series it is..I have one doubt..Suppose in collection there are 3 reqs and for each req pre requisite is different. In this case if I want to set pre req seperately for each req at collection level how to do this? As in video you set common pre req for each req at collection level

Ответить
Ravinadh B
Ravinadh B - 06.04.2021 10:17

HI Mukesh, How do we get the response in ore-request script and add extra data and send it as request body to another requestAPI.
I have a Josn reponse
{
Conatcts [
"key1":"Value1",
"Key2":"Value2",
clients[
{
"key3":"Value3",
"key4":"Value4",
..
..
"key7":"Value7"
}
]
]
}
And I want to add extra client to this response and send it as request body to another POST Request like below
{
Conatcts [
"key1":"Value1",
"Key2":"Value2",
clients[
{
"key3":"Value3",
"key4":"Value4",
..
..
"key7":"Value7"
},
{
"keyid":"Valueid",
"keyaddress":"Valueaddress",
..
..
"keypin":"Valuepin"
}

]
]
}

Please help me how to do this

Ответить
Ravinadh B
Ravinadh B - 06.04.2021 10:08

Hi Mukesh Your explanation is very good .and Thnks for your videos.
I have a Question here .
Can we run one POST request in another POST Request Pre-Request Script ?

Ответить
baan1221
baan1221 - 02.03.2021 10:00

thanks alot Mukesh. Very helpful. thanks so much.

Ответить
Vibhor Sharma
Vibhor Sharma - 06.01.2021 14:10

This is amazing vedio, Could please explain me, Let suppose we have collection, that collection takes multiple request and every request demand different data, who can we do this, because right now i have upload one json/.csv file for every request but i need to create a file so i can run multiple request in one time

Ответить
Koushik Thelukala
Koushik Thelukala - 30.12.2020 16:44

Hi Mukesh,

Thanks for the videos,
I have one doubt, consider a Collection has 3 Requests. For this collection in the Collection level can we set the pre-requests for each request as separately?

Rather then adding the pre-requests in request level.

Ответить
Lan Nguyen
Lan Nguyen - 20.12.2020 21:47

great video thanks a lot

Ответить
Jitendra Kumar
Jitendra Kumar - 18.07.2020 14:41

thanks for the video and the concepts .

Ответить
Vijay Prathap
Vijay Prathap - 23.06.2020 19:23

Try teach graphql with postman

Ответить