Комментарии:
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..
I want to go deeper in this. I want to create a code what sends login and recieved token for the request
Ответить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'
Can we validate payload schema in pre request ? If they How ?
Ответить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
Ответить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
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 ?
thanks alot Mukesh. Very helpful. thanks so much.
Ответить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
Ответить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.
great video thanks a lot
Ответитьthanks for the video and the concepts .
ОтветитьTry teach graphql with postman
Ответить