API Testing using POSTMAN : Conditional Workflows

preview_player
Показать описание

Specify the name of the subsequent request.
To terminates execution.

setNextRequest() is always executed at the end of the current script.
This means that if you put setNextRequest() before other code blocks, these blocks will still be executed.

setNextRequest() has a scope, which is the source of your collection run. This means that if you run a collection, you can jump to any request in the collection (even requests inside folders, using the same syntax). However, if you run a folder, the scope of setNextRequest() is limited to that folder. This means that you can jump to any request within this folder, but not ones that are outside of the folder.

Recommend Books :

Join Facebook Group : Software Testing & Automation Discussion

🚀 Tools and services I recommend:
Some of the courses that I recommend to become better Automation Tester 🙌🙌

✅Selenium Training and Certification -

✅Learn Jenkins for QA -

✅Programming Java -

✅Test Automation -

✅API Testing -

✅Cypress Tutorial with LIVE Projects -
Рекомендации по теме
Комментарии
Автор

how to do this based on the response body rather than response ? e.g. If my response body is empty or []

jamesmason
Автор

I am using CSV file but some of the row are null which I want to skip. I tired this but no luck any help is greatly appreciated
pm.test("Body contains resource type: " + jsonData.type, function() {

if(resource_type.length > 0){

}else{
postman.setNextRequest(null);
}

bhangra
welcome to shbcf.ru