POSTMAN - Send Request From Script | Using Pre-request or Test
8.7 هزار بار بازدید -
4 سال پیش
-
Sending requests from scripts using
Sending requests from scripts using pre-request or test in postman tab
How to send http request in pre-request or test :
You can use the pm.sendRequest method to send a request asynchronously from a Pre-request or Test script.
This allows you to execute logic in the background if you are carrying out computation or sending multiple requests at the same time without waiting for each to complete
Reference : https://learning.postman.com/docs/wri...
Samples : https://gist.github.com/madebysid/b57...
#postman #apitesting #sendrequestfromscript
LinkedIn : www.linkedin.com/in/sseenivasan89
GitHub : https://github.com/sseenivasan89
How to send http request in pre-request or test :
You can use the pm.sendRequest method to send a request asynchronously from a Pre-request or Test script.
This allows you to execute logic in the background if you are carrying out computation or sending multiple requests at the same time without waiting for each to complete
Reference : https://learning.postman.com/docs/wri...
Samples : https://gist.github.com/madebysid/b57...
#postman #apitesting #sendrequestfromscript
LinkedIn : www.linkedin.com/in/sseenivasan89
GitHub : https://github.com/sseenivasan89
4 سال پیش
در تاریخ 1399/10/16 منتشر شده
است.
8,720
بـار بازدید شده