SlideShare a Scribd company logo
© 2021 Kos Kliuiev
POSTMAN:
API Automation Testing Swiss Army knife
Not just an automation story
• QA Trainer at Start IT
• AQA Trainer at Start IT
• TPM at EPAM
• QA Lead at FastCTO
• Life Lover
• Frequent Traveller
• Vaccinated guy))
Who am I?
Swiss army knife? What do you mean?
All-in-one tool
What about Postman?
• Use anywhere - Windows, Linux, Mac
OS

• REST API

• SOAP API

• WebSocket (Yeah! It’s working now)

• Simple assertions using ChaiJS

• Newman CLI (run )

• Any reports, using multiple reporters
What should I start from?
follow the right flow
• Understand the main userflow(s);

• Find the most critical one(s);

• Build the appropriate scenario(s);

• Get familiar with API Documentation;

• Send requests and analyse responses;

• Write tests for separate requests;

• Join requests in one test suite;
From User’s flow to request scenarios
Capture and Inspect
• Follow the steps manually 

• Inspect each step with browser dev tools

• Capture requests with Interceptor plug-in

• Capture requests from any devices via
Postman Proxy
So, I’ve got the request
What’s next?
• Analyse response and it’s status code;

• Analyse headers;

• Analyse body;

• Find the points to assert;

• Save variables, you might use later;
What to assert on?
Wonderful world is almost here
Status code:

• pm.response.to.have.status(200);

• pm.response.to.have.status(“OK");

• pm.expect(pm.response.code).to.be.oneOf([201,202]);

• pm.expect(pm.response.code).to.not.be.oneOf([402,403]);
Response time:

• pm.expect(pm.response.responseTime).to.be.below(200);
Headers:

• pm.expect(pm.response.headers.get(‘X-Frame-
Options')).to.eql('DENY');
Hm…What about body?
Do whatever you want
Simply check value:

• pm.expect(pm.response.json().first_name).to.eql(“Kos”);

• pm.expect(pm.response.json().last_name).to.contain(“Kliu”)

• pm.expect(pm.response.json().age).to.be.above(18);

• pm.expect(pm.response.json().balance).to.not.eql(0);
Object properties:

• pm.expect(jsonData).to.have.all.keys(‘first_name',
‘last_name');

• pm.expect(jsonData).to.have.any.keys(‘tel', ‘fax’);

• pm.expect(jsonData.role).to.be.oneOf([“Admin”,
“Superadmin"]);

Value type:

• pm.expect(pm.response.json()).to.be.an(“object");

• pm.expect(pm.response.json().first_name).to.be.a(“string”);

• pm.expect(pm.response.json().problems).to.be.undefined;

• pm.expect(pm.response.json().worries).to.be.null;
Array properties:

• pm.expect(jsonData.errors_array).to.be.empty;

• pm.expect(jsonData.sizes).to.include(“XXL”);
Variables
Total Recall
Save:

• postman.setEnvironmentVariable("token",
responseData.accessToken);
Use in request:

• $token;

Use in tests:

• pm.variables.get(“token");

Randomize:

• $randomFirstName;

• $randomJobTitle;

• $randomPhoneNumber;

• $randomEmail;
Scenario is ready. What’s next?
Go! Go! Go!
• Run with Postman Runner;

• Export as a JSON;

• Run with Newman;

• Turn on reporting;

• Run in CI;

• Save the world!
Reporters
Report anywhere!


• npm install newman-reporter-allure;


• npm install newman-reporter-testrail;

HTML:

• npm install newman-reporter-htmlextra;
Any CI/CD
Go! Go! Go!
• Jenkins;

• GitHub Actions;

• Bitbucket Pipelines;

• Travis;

• GitLab CI/CD;
Any Questions?
Ad

More Related Content

What's hot (20)

Why you should switch to Cypress for modern web testing?
Why you should switch to Cypress for modern web testing?Why you should switch to Cypress for modern web testing?
Why you should switch to Cypress for modern web testing?
Shivam Bharadwaj
 
QA Challenge Accepted 4.0 - Cypress vs. Selenium
QA Challenge Accepted 4.0 - Cypress vs. SeleniumQA Challenge Accepted 4.0 - Cypress vs. Selenium
QA Challenge Accepted 4.0 - Cypress vs. Selenium
Lyudmil Latinov
 
Cypress - Best Practices
Cypress - Best PracticesCypress - Best Practices
Cypress - Best Practices
Brian Mann
 
Automated Web Testing using JavaScript
Automated Web Testing using JavaScriptAutomated Web Testing using JavaScript
Automated Web Testing using JavaScript
Simon Guest
 
Cypress first impressions
Cypress first impressionsCypress first impressions
Cypress first impressions
Hans Emmel
 
Cypress e2e automation testing - day1 intor by: Hassan Hameed
Cypress e2e automation testing -  day1 intor by: Hassan HameedCypress e2e automation testing -  day1 intor by: Hassan Hameed
Cypress e2e automation testing - day1 intor by: Hassan Hameed
Hassan Muhammad
 
Cypress for Testing
Cypress for TestingCypress for Testing
Cypress for Testing
PoojaSingh1123
 
AngularJS and Protractor
AngularJS and ProtractorAngularJS and Protractor
AngularJS and Protractor
Filipe Falcão
 
Jellyfish, JSCONF 2011
Jellyfish, JSCONF 2011Jellyfish, JSCONF 2011
Jellyfish, JSCONF 2011
Adam Christian
 
Introduction to cypress in Angular (Chinese)
Introduction to cypress in Angular (Chinese)Introduction to cypress in Angular (Chinese)
Introduction to cypress in Angular (Chinese)
Hong Tat Yew
 
Next generation frontend tooling
Next generation frontend toolingNext generation frontend tooling
Next generation frontend tooling
pksjce
 
Cypress Automation
Cypress  AutomationCypress  Automation
Cypress Automation
Susantha Pathirana
 
Unit Testing in JavaScript
Unit Testing in JavaScriptUnit Testing in JavaScript
Unit Testing in JavaScript
Rob Scaduto
 
Cypress vs Selenium WebDriver: Better, Or Just Different? -- by Gil Tayar
Cypress vs Selenium WebDriver: Better, Or Just Different? -- by Gil TayarCypress vs Selenium WebDriver: Better, Or Just Different? -- by Gil Tayar
Cypress vs Selenium WebDriver: Better, Or Just Different? -- by Gil Tayar
Applitools
 
Angular Unit Testing
Angular Unit TestingAngular Unit Testing
Angular Unit Testing
Shailendra Chauhan
 
Selenium with protractor
Selenium with protractorSelenium with protractor
Selenium with protractor
BOGA HARIKRISHNA
 
Progressive Web App Testing With Cypress.io
Progressive Web App Testing With Cypress.ioProgressive Web App Testing With Cypress.io
Progressive Web App Testing With Cypress.io
Knoldus Inc.
 
e2e testing with cypress
e2e testing with cypresse2e testing with cypress
e2e testing with cypress
Tomasz Bak
 
JSFoo-2017 Takeaways
JSFoo-2017 TakeawaysJSFoo-2017 Takeaways
JSFoo-2017 Takeaways
Mir Ali
 
Automating JavaScript testing with Jasmine and Perl
Automating JavaScript testing with Jasmine and PerlAutomating JavaScript testing with Jasmine and Perl
Automating JavaScript testing with Jasmine and Perl
nohuhu
 
Why you should switch to Cypress for modern web testing?
Why you should switch to Cypress for modern web testing?Why you should switch to Cypress for modern web testing?
Why you should switch to Cypress for modern web testing?
Shivam Bharadwaj
 
QA Challenge Accepted 4.0 - Cypress vs. Selenium
QA Challenge Accepted 4.0 - Cypress vs. SeleniumQA Challenge Accepted 4.0 - Cypress vs. Selenium
QA Challenge Accepted 4.0 - Cypress vs. Selenium
Lyudmil Latinov
 
Cypress - Best Practices
Cypress - Best PracticesCypress - Best Practices
Cypress - Best Practices
Brian Mann
 
Automated Web Testing using JavaScript
Automated Web Testing using JavaScriptAutomated Web Testing using JavaScript
Automated Web Testing using JavaScript
Simon Guest
 
Cypress first impressions
Cypress first impressionsCypress first impressions
Cypress first impressions
Hans Emmel
 
Cypress e2e automation testing - day1 intor by: Hassan Hameed
Cypress e2e automation testing -  day1 intor by: Hassan HameedCypress e2e automation testing -  day1 intor by: Hassan Hameed
Cypress e2e automation testing - day1 intor by: Hassan Hameed
Hassan Muhammad
 
AngularJS and Protractor
AngularJS and ProtractorAngularJS and Protractor
AngularJS and Protractor
Filipe Falcão
 
Jellyfish, JSCONF 2011
Jellyfish, JSCONF 2011Jellyfish, JSCONF 2011
Jellyfish, JSCONF 2011
Adam Christian
 
Introduction to cypress in Angular (Chinese)
Introduction to cypress in Angular (Chinese)Introduction to cypress in Angular (Chinese)
Introduction to cypress in Angular (Chinese)
Hong Tat Yew
 
Next generation frontend tooling
Next generation frontend toolingNext generation frontend tooling
Next generation frontend tooling
pksjce
 
Unit Testing in JavaScript
Unit Testing in JavaScriptUnit Testing in JavaScript
Unit Testing in JavaScript
Rob Scaduto
 
Cypress vs Selenium WebDriver: Better, Or Just Different? -- by Gil Tayar
Cypress vs Selenium WebDriver: Better, Or Just Different? -- by Gil TayarCypress vs Selenium WebDriver: Better, Or Just Different? -- by Gil Tayar
Cypress vs Selenium WebDriver: Better, Or Just Different? -- by Gil Tayar
Applitools
 
Progressive Web App Testing With Cypress.io
Progressive Web App Testing With Cypress.ioProgressive Web App Testing With Cypress.io
Progressive Web App Testing With Cypress.io
Knoldus Inc.
 
e2e testing with cypress
e2e testing with cypresse2e testing with cypress
e2e testing with cypress
Tomasz Bak
 
JSFoo-2017 Takeaways
JSFoo-2017 TakeawaysJSFoo-2017 Takeaways
JSFoo-2017 Takeaways
Mir Ali
 
Automating JavaScript testing with Jasmine and Perl
Automating JavaScript testing with Jasmine and PerlAutomating JavaScript testing with Jasmine and Perl
Automating JavaScript testing with Jasmine and Perl
nohuhu
 

Similar to КОСТЯНТИН КЛЮЄВ «Postman: API Automation Testing Swiss Army Knife» Kyiv QADay 2021 (20)

we45 DEFCON Workshop - Building AppSec Automation with Python
we45 DEFCON Workshop - Building AppSec Automation with Pythonwe45 DEFCON Workshop - Building AppSec Automation with Python
we45 DEFCON Workshop - Building AppSec Automation with Python
Abhay Bhargav
 
Api fundamentals
Api fundamentalsApi fundamentals
Api fundamentals
AgileDenver
 
Api FUNdamentals #MHA2017
Api FUNdamentals #MHA2017Api FUNdamentals #MHA2017
Api FUNdamentals #MHA2017
JoEllen Carter
 
An introduction to the API for OnTime for IBM
An introduction to the API for OnTime for IBMAn introduction to the API for OnTime for IBM
An introduction to the API for OnTime for IBM
ontimesuite
 
System insight without Interference
System insight without InterferenceSystem insight without Interference
System insight without Interference
Tony Tam
 
Invoke-CradleCrafter: Moar PowerShell obFUsk8tion & Detection (@('Tech','niqu...
Invoke-CradleCrafter: Moar PowerShell obFUsk8tion & Detection (@('Tech','niqu...Invoke-CradleCrafter: Moar PowerShell obFUsk8tion & Detection (@('Tech','niqu...
Invoke-CradleCrafter: Moar PowerShell obFUsk8tion & Detection (@('Tech','niqu...
Daniel Bohannon
 
Testing sync engine
Testing sync engineTesting sync engine
Testing sync engine
Ilya Puchka
 
BSIDES-PR Keynote Hunting for Bad Guys
BSIDES-PR Keynote Hunting for Bad GuysBSIDES-PR Keynote Hunting for Bad Guys
BSIDES-PR Keynote Hunting for Bad Guys
Joff Thyer
 
My Little Webap - DevOpsSec is Magic
My Little Webap - DevOpsSec is MagicMy Little Webap - DevOpsSec is Magic
My Little Webap - DevOpsSec is Magic
Apollo Clark
 
CBDW2014 - MockBox, get ready to mock your socks off!
CBDW2014 - MockBox, get ready to mock your socks off!CBDW2014 - MockBox, get ready to mock your socks off!
CBDW2014 - MockBox, get ready to mock your socks off!
Ortus Solutions, Corp
 
Secure all things with CBSecurity 3
Secure all things with CBSecurity 3Secure all things with CBSecurity 3
Secure all things with CBSecurity 3
Ortus Solutions, Corp
 
Exploiting XPC in AntiVirus
Exploiting XPC in AntiVirusExploiting XPC in AntiVirus
Exploiting XPC in AntiVirus
Csaba Fitzl
 
Spot Trading - A case study in continuous delivery for mission critical finan...
Spot Trading - A case study in continuous delivery for mission critical finan...Spot Trading - A case study in continuous delivery for mission critical finan...
Spot Trading - A case study in continuous delivery for mission critical finan...
SaltStack
 
Burp Suite Extensions
Burp Suite ExtensionsBurp Suite Extensions
Burp Suite Extensions
Neelu Tripathy
 
Flask
FlaskFlask
Flask
Inker Kuo
 
Automating security test using Selenium and OWASP ZAP - Practical DevSecOps
Automating security test using Selenium and OWASP ZAP - Practical DevSecOpsAutomating security test using Selenium and OWASP ZAP - Practical DevSecOps
Automating security test using Selenium and OWASP ZAP - Practical DevSecOps
Mohammed A. Imran
 
DAST in CI/CD pipelines using Selenium & OWASP ZAP
DAST in CI/CD pipelines using Selenium & OWASP ZAPDAST in CI/CD pipelines using Selenium & OWASP ZAP
DAST in CI/CD pipelines using Selenium & OWASP ZAP
srini0x00
 
Advanced Weapons Training for the Empire
Advanced Weapons Training for the EmpireAdvanced Weapons Training for the Empire
Advanced Weapons Training for the Empire
Jeremy Johnson
 
idsecconf2010-hacking priv8 network
idsecconf2010-hacking priv8 networkidsecconf2010-hacking priv8 network
idsecconf2010-hacking priv8 network
Ammar WK
 
y3dips hacking priv8 network
y3dips hacking priv8 networky3dips hacking priv8 network
y3dips hacking priv8 network
idsecconf
 
we45 DEFCON Workshop - Building AppSec Automation with Python
we45 DEFCON Workshop - Building AppSec Automation with Pythonwe45 DEFCON Workshop - Building AppSec Automation with Python
we45 DEFCON Workshop - Building AppSec Automation with Python
Abhay Bhargav
 
Api fundamentals
Api fundamentalsApi fundamentals
Api fundamentals
AgileDenver
 
Api FUNdamentals #MHA2017
Api FUNdamentals #MHA2017Api FUNdamentals #MHA2017
Api FUNdamentals #MHA2017
JoEllen Carter
 
An introduction to the API for OnTime for IBM
An introduction to the API for OnTime for IBMAn introduction to the API for OnTime for IBM
An introduction to the API for OnTime for IBM
ontimesuite
 
System insight without Interference
System insight without InterferenceSystem insight without Interference
System insight without Interference
Tony Tam
 
Invoke-CradleCrafter: Moar PowerShell obFUsk8tion & Detection (@('Tech','niqu...
Invoke-CradleCrafter: Moar PowerShell obFUsk8tion & Detection (@('Tech','niqu...Invoke-CradleCrafter: Moar PowerShell obFUsk8tion & Detection (@('Tech','niqu...
Invoke-CradleCrafter: Moar PowerShell obFUsk8tion & Detection (@('Tech','niqu...
Daniel Bohannon
 
Testing sync engine
Testing sync engineTesting sync engine
Testing sync engine
Ilya Puchka
 
BSIDES-PR Keynote Hunting for Bad Guys
BSIDES-PR Keynote Hunting for Bad GuysBSIDES-PR Keynote Hunting for Bad Guys
BSIDES-PR Keynote Hunting for Bad Guys
Joff Thyer
 
My Little Webap - DevOpsSec is Magic
My Little Webap - DevOpsSec is MagicMy Little Webap - DevOpsSec is Magic
My Little Webap - DevOpsSec is Magic
Apollo Clark
 
CBDW2014 - MockBox, get ready to mock your socks off!
CBDW2014 - MockBox, get ready to mock your socks off!CBDW2014 - MockBox, get ready to mock your socks off!
CBDW2014 - MockBox, get ready to mock your socks off!
Ortus Solutions, Corp
 
Exploiting XPC in AntiVirus
Exploiting XPC in AntiVirusExploiting XPC in AntiVirus
Exploiting XPC in AntiVirus
Csaba Fitzl
 
Spot Trading - A case study in continuous delivery for mission critical finan...
Spot Trading - A case study in continuous delivery for mission critical finan...Spot Trading - A case study in continuous delivery for mission critical finan...
Spot Trading - A case study in continuous delivery for mission critical finan...
SaltStack
 
Automating security test using Selenium and OWASP ZAP - Practical DevSecOps
Automating security test using Selenium and OWASP ZAP - Practical DevSecOpsAutomating security test using Selenium and OWASP ZAP - Practical DevSecOps
Automating security test using Selenium and OWASP ZAP - Practical DevSecOps
Mohammed A. Imran
 
DAST in CI/CD pipelines using Selenium & OWASP ZAP
DAST in CI/CD pipelines using Selenium & OWASP ZAPDAST in CI/CD pipelines using Selenium & OWASP ZAP
DAST in CI/CD pipelines using Selenium & OWASP ZAP
srini0x00
 
Advanced Weapons Training for the Empire
Advanced Weapons Training for the EmpireAdvanced Weapons Training for the Empire
Advanced Weapons Training for the Empire
Jeremy Johnson
 
idsecconf2010-hacking priv8 network
idsecconf2010-hacking priv8 networkidsecconf2010-hacking priv8 network
idsecconf2010-hacking priv8 network
Ammar WK
 
y3dips hacking priv8 network
y3dips hacking priv8 networky3dips hacking priv8 network
y3dips hacking priv8 network
idsecconf
 
Ad

More from QADay (20)

СТАНІСЛАВ ПОЛЬСЬКОЙ «QA це спільна справа: залучення БА та девів у процес заб...
СТАНІСЛАВ ПОЛЬСЬКОЙ «QA це спільна справа: залучення БА та девів у процес заб...СТАНІСЛАВ ПОЛЬСЬКОЙ «QA це спільна справа: залучення БА та девів у процес заб...
СТАНІСЛАВ ПОЛЬСЬКОЙ «QA це спільна справа: залучення БА та девів у процес заб...
QADay
 
РАМЕЛЛА БАСЕНКО - Tехніки тест дизайну в дії: розбір задач та корисні поради...
РАМЕЛЛА БАСЕНКО -  Tехніки тест дизайну в дії: розбір задач та корисні поради...РАМЕЛЛА БАСЕНКО -  Tехніки тест дизайну в дії: розбір задач та корисні поради...
РАМЕЛЛА БАСЕНКО - Tехніки тест дизайну в дії: розбір задач та корисні поради...
QADay
 
КАТЕРИНА АБЗЯТОВА - Tехніки тест дизайну в дії: розбір задач та корисні порад...
КАТЕРИНА АБЗЯТОВА - Tехніки тест дизайну в дії: розбір задач та корисні порад...КАТЕРИНА АБЗЯТОВА - Tехніки тест дизайну в дії: розбір задач та корисні порад...
КАТЕРИНА АБЗЯТОВА - Tехніки тест дизайну в дії: розбір задач та корисні порад...
QADay
 
ЮРІЙ БАЖАН «Один спринт з життя тестувальника»
ЮРІЙ БАЖАН «Один спринт з життя тестувальника»ЮРІЙ БАЖАН «Один спринт з життя тестувальника»
ЮРІЙ БАЖАН «Один спринт з життя тестувальника»
QADay
 
АЛЛА ПЕНАЛЬБА «QA automation, the secret weapon that need (a) manual»
АЛЛА ПЕНАЛЬБА «QA automation, the secret weapon that need (a) manual»АЛЛА ПЕНАЛЬБА «QA automation, the secret weapon that need (a) manual»
АЛЛА ПЕНАЛЬБА «QA automation, the secret weapon that need (a) manual»
QADay
 
ЮРІЙ МАЛИЙ «QA метрики в процесі SDLC»..
ЮРІЙ МАЛИЙ «QA метрики в процесі SDLC»..ЮРІЙ МАЛИЙ «QA метрики в процесі SDLC»..
ЮРІЙ МАЛИЙ «QA метрики в процесі SDLC»..
QADay
 
АНДРІЙ ЗАБЛОЦЬКИЙ « Досвід побудови сильної та ефективної QA команди»
АНДРІЙ ЗАБЛОЦЬКИЙ « Досвід побудови сильної та ефективної QA команди»АНДРІЙ ЗАБЛОЦЬКИЙ « Досвід побудови сильної та ефективної QA команди»
АНДРІЙ ЗАБЛОЦЬКИЙ « Досвід побудови сильної та ефективної QA команди»
QADay
 
РІНА УЖЕВКО «Тестування локалізації та терміни в Gamedev»
РІНА УЖЕВКО «Тестування локалізації та терміни в Gamedev»РІНА УЖЕВКО «Тестування локалізації та терміни в Gamedev»
РІНА УЖЕВКО «Тестування локалізації та терміни в Gamedev»
QADay
 
КАТЕРИНА АБЗЯТОВА «Від бар’єрів до мостів: Важливість Accessibility Testing»
КАТЕРИНА АБЗЯТОВА «Від бар’єрів до мостів: Важливість Accessibility Testing»КАТЕРИНА АБЗЯТОВА «Від бар’єрів до мостів: Важливість Accessibility Testing»
КАТЕРИНА АБЗЯТОВА «Від бар’єрів до мостів: Важливість Accessibility Testing»
QADay
 
ЄВГЕН ГАЙДАЙ «Виділена команда автоматизації тестування. Досвід підтримки та ...
ЄВГЕН ГАЙДАЙ «Виділена команда автоматизації тестування. Досвід підтримки та ...ЄВГЕН ГАЙДАЙ «Виділена команда автоматизації тестування. Досвід підтримки та ...
ЄВГЕН ГАЙДАЙ «Виділена команда автоматизації тестування. Досвід підтримки та ...
QADay
 
АНАСТАСІЯ ЧУДОВСЬКА «Переїзд з моноліта на мікросервіси з точки зору QA: як ...
АНАСТАСІЯ ЧУДОВСЬКА  «Переїзд з моноліта на мікросервіси з точки зору QA: як ...АНАСТАСІЯ ЧУДОВСЬКА  «Переїзд з моноліта на мікросервіси з точки зору QA: як ...
АНАСТАСІЯ ЧУДОВСЬКА «Переїзд з моноліта на мікросервіси з точки зору QA: як ...
QADay
 
СОФІЯ НОВАЧЕНКО «Успішне поєднання QA/BA обовʼязків»
СОФІЯ НОВАЧЕНКО «Успішне поєднання QA/BA обовʼязків»СОФІЯ НОВАЧЕНКО «Успішне поєднання QA/BA обовʼязків»
СОФІЯ НОВАЧЕНКО «Успішне поєднання QA/BA обовʼязків»
QADay
 
ОЛЕНА НІКІТІНА «Глибинне занурення в процеси тестування: від документації до ...
ОЛЕНА НІКІТІНА «Глибинне занурення в процеси тестування: від документації до ...ОЛЕНА НІКІТІНА «Глибинне занурення в процеси тестування: від документації до ...
ОЛЕНА НІКІТІНА «Глибинне занурення в процеси тестування: від документації до ...
QADay
 
ОЛЕСЬ НІКАНЮК «Особливості тестування в міжнародних організаціях: досвід та в...
ОЛЕСЬ НІКАНЮК «Особливості тестування в міжнародних організаціях: досвід та в...ОЛЕСЬ НІКАНЮК «Особливості тестування в міжнародних організаціях: досвід та в...
ОЛЕСЬ НІКАНЮК «Особливості тестування в міжнародних організаціях: досвід та в...
QADay
 
ОЛЕГ ЗАРЕВИЧ «Взаємодії між DevOps і QA»
ОЛЕГ ЗАРЕВИЧ «Взаємодії між DevOps і QA»ОЛЕГ ЗАРЕВИЧ «Взаємодії між DevOps і QA»
ОЛЕГ ЗАРЕВИЧ «Взаємодії між DevOps і QA»
QADay
 
СВЯТ ЛОГІН «Що можна витягнути з мобільних додатків»
СВЯТ ЛОГІН «Що можна витягнути з мобільних додатків»СВЯТ ЛОГІН «Що можна витягнути з мобільних додатків»
СВЯТ ЛОГІН «Що можна витягнути з мобільних додатків»
QADay
 
ГАННА КАПЛУН «Тестування на основі персон: ідея, інструменти, приклади»
ГАННА КАПЛУН «Тестування на основі персон: ідея, інструменти, приклади»ГАННА КАПЛУН «Тестування на основі персон: ідея, інструменти, приклади»
ГАННА КАПЛУН «Тестування на основі персон: ідея, інструменти, приклади»
QADay
 
НАТАЛІЯ КРИВОНІС «Необхідні навички для керування командою»
НАТАЛІЯ КРИВОНІС «Необхідні навички для керування командою»НАТАЛІЯ КРИВОНІС «Необхідні навички для керування командою»
НАТАЛІЯ КРИВОНІС «Необхідні навички для керування командою»
QADay
 
ОКСАНА ВЕРЕТЮК «Effective project quality check або як успішно налагодити про...
ОКСАНА ВЕРЕТЮК «Effective project quality check або як успішно налагодити про...ОКСАНА ВЕРЕТЮК «Effective project quality check або як успішно налагодити про...
ОКСАНА ВЕРЕТЮК «Effective project quality check або як успішно налагодити про...
QADay
 
ВІТАЛІЙ МИХАЙЛЮК «Онбордінг нових тестерів до команди: як ефективно навчати і...
ВІТАЛІЙ МИХАЙЛЮК «Онбордінг нових тестерів до команди: як ефективно навчати і...ВІТАЛІЙ МИХАЙЛЮК «Онбордінг нових тестерів до команди: як ефективно навчати і...
ВІТАЛІЙ МИХАЙЛЮК «Онбордінг нових тестерів до команди: як ефективно навчати і...
QADay
 
СТАНІСЛАВ ПОЛЬСЬКОЙ «QA це спільна справа: залучення БА та девів у процес заб...
СТАНІСЛАВ ПОЛЬСЬКОЙ «QA це спільна справа: залучення БА та девів у процес заб...СТАНІСЛАВ ПОЛЬСЬКОЙ «QA це спільна справа: залучення БА та девів у процес заб...
СТАНІСЛАВ ПОЛЬСЬКОЙ «QA це спільна справа: залучення БА та девів у процес заб...
QADay
 
РАМЕЛЛА БАСЕНКО - Tехніки тест дизайну в дії: розбір задач та корисні поради...
РАМЕЛЛА БАСЕНКО -  Tехніки тест дизайну в дії: розбір задач та корисні поради...РАМЕЛЛА БАСЕНКО -  Tехніки тест дизайну в дії: розбір задач та корисні поради...
РАМЕЛЛА БАСЕНКО - Tехніки тест дизайну в дії: розбір задач та корисні поради...
QADay
 
КАТЕРИНА АБЗЯТОВА - Tехніки тест дизайну в дії: розбір задач та корисні порад...
КАТЕРИНА АБЗЯТОВА - Tехніки тест дизайну в дії: розбір задач та корисні порад...КАТЕРИНА АБЗЯТОВА - Tехніки тест дизайну в дії: розбір задач та корисні порад...
КАТЕРИНА АБЗЯТОВА - Tехніки тест дизайну в дії: розбір задач та корисні порад...
QADay
 
ЮРІЙ БАЖАН «Один спринт з життя тестувальника»
ЮРІЙ БАЖАН «Один спринт з життя тестувальника»ЮРІЙ БАЖАН «Один спринт з життя тестувальника»
ЮРІЙ БАЖАН «Один спринт з життя тестувальника»
QADay
 
АЛЛА ПЕНАЛЬБА «QA automation, the secret weapon that need (a) manual»
АЛЛА ПЕНАЛЬБА «QA automation, the secret weapon that need (a) manual»АЛЛА ПЕНАЛЬБА «QA automation, the secret weapon that need (a) manual»
АЛЛА ПЕНАЛЬБА «QA automation, the secret weapon that need (a) manual»
QADay
 
ЮРІЙ МАЛИЙ «QA метрики в процесі SDLC»..
ЮРІЙ МАЛИЙ «QA метрики в процесі SDLC»..ЮРІЙ МАЛИЙ «QA метрики в процесі SDLC»..
ЮРІЙ МАЛИЙ «QA метрики в процесі SDLC»..
QADay
 
АНДРІЙ ЗАБЛОЦЬКИЙ « Досвід побудови сильної та ефективної QA команди»
АНДРІЙ ЗАБЛОЦЬКИЙ « Досвід побудови сильної та ефективної QA команди»АНДРІЙ ЗАБЛОЦЬКИЙ « Досвід побудови сильної та ефективної QA команди»
АНДРІЙ ЗАБЛОЦЬКИЙ « Досвід побудови сильної та ефективної QA команди»
QADay
 
РІНА УЖЕВКО «Тестування локалізації та терміни в Gamedev»
РІНА УЖЕВКО «Тестування локалізації та терміни в Gamedev»РІНА УЖЕВКО «Тестування локалізації та терміни в Gamedev»
РІНА УЖЕВКО «Тестування локалізації та терміни в Gamedev»
QADay
 
КАТЕРИНА АБЗЯТОВА «Від бар’єрів до мостів: Важливість Accessibility Testing»
КАТЕРИНА АБЗЯТОВА «Від бар’єрів до мостів: Важливість Accessibility Testing»КАТЕРИНА АБЗЯТОВА «Від бар’єрів до мостів: Важливість Accessibility Testing»
КАТЕРИНА АБЗЯТОВА «Від бар’єрів до мостів: Важливість Accessibility Testing»
QADay
 
ЄВГЕН ГАЙДАЙ «Виділена команда автоматизації тестування. Досвід підтримки та ...
ЄВГЕН ГАЙДАЙ «Виділена команда автоматизації тестування. Досвід підтримки та ...ЄВГЕН ГАЙДАЙ «Виділена команда автоматизації тестування. Досвід підтримки та ...
ЄВГЕН ГАЙДАЙ «Виділена команда автоматизації тестування. Досвід підтримки та ...
QADay
 
АНАСТАСІЯ ЧУДОВСЬКА «Переїзд з моноліта на мікросервіси з точки зору QA: як ...
АНАСТАСІЯ ЧУДОВСЬКА  «Переїзд з моноліта на мікросервіси з точки зору QA: як ...АНАСТАСІЯ ЧУДОВСЬКА  «Переїзд з моноліта на мікросервіси з точки зору QA: як ...
АНАСТАСІЯ ЧУДОВСЬКА «Переїзд з моноліта на мікросервіси з точки зору QA: як ...
QADay
 
СОФІЯ НОВАЧЕНКО «Успішне поєднання QA/BA обовʼязків»
СОФІЯ НОВАЧЕНКО «Успішне поєднання QA/BA обовʼязків»СОФІЯ НОВАЧЕНКО «Успішне поєднання QA/BA обовʼязків»
СОФІЯ НОВАЧЕНКО «Успішне поєднання QA/BA обовʼязків»
QADay
 
ОЛЕНА НІКІТІНА «Глибинне занурення в процеси тестування: від документації до ...
ОЛЕНА НІКІТІНА «Глибинне занурення в процеси тестування: від документації до ...ОЛЕНА НІКІТІНА «Глибинне занурення в процеси тестування: від документації до ...
ОЛЕНА НІКІТІНА «Глибинне занурення в процеси тестування: від документації до ...
QADay
 
ОЛЕСЬ НІКАНЮК «Особливості тестування в міжнародних організаціях: досвід та в...
ОЛЕСЬ НІКАНЮК «Особливості тестування в міжнародних організаціях: досвід та в...ОЛЕСЬ НІКАНЮК «Особливості тестування в міжнародних організаціях: досвід та в...
ОЛЕСЬ НІКАНЮК «Особливості тестування в міжнародних організаціях: досвід та в...
QADay
 
ОЛЕГ ЗАРЕВИЧ «Взаємодії між DevOps і QA»
ОЛЕГ ЗАРЕВИЧ «Взаємодії між DevOps і QA»ОЛЕГ ЗАРЕВИЧ «Взаємодії між DevOps і QA»
ОЛЕГ ЗАРЕВИЧ «Взаємодії між DevOps і QA»
QADay
 
СВЯТ ЛОГІН «Що можна витягнути з мобільних додатків»
СВЯТ ЛОГІН «Що можна витягнути з мобільних додатків»СВЯТ ЛОГІН «Що можна витягнути з мобільних додатків»
СВЯТ ЛОГІН «Що можна витягнути з мобільних додатків»
QADay
 
ГАННА КАПЛУН «Тестування на основі персон: ідея, інструменти, приклади»
ГАННА КАПЛУН «Тестування на основі персон: ідея, інструменти, приклади»ГАННА КАПЛУН «Тестування на основі персон: ідея, інструменти, приклади»
ГАННА КАПЛУН «Тестування на основі персон: ідея, інструменти, приклади»
QADay
 
НАТАЛІЯ КРИВОНІС «Необхідні навички для керування командою»
НАТАЛІЯ КРИВОНІС «Необхідні навички для керування командою»НАТАЛІЯ КРИВОНІС «Необхідні навички для керування командою»
НАТАЛІЯ КРИВОНІС «Необхідні навички для керування командою»
QADay
 
ОКСАНА ВЕРЕТЮК «Effective project quality check або як успішно налагодити про...
ОКСАНА ВЕРЕТЮК «Effective project quality check або як успішно налагодити про...ОКСАНА ВЕРЕТЮК «Effective project quality check або як успішно налагодити про...
ОКСАНА ВЕРЕТЮК «Effective project quality check або як успішно налагодити про...
QADay
 
ВІТАЛІЙ МИХАЙЛЮК «Онбордінг нових тестерів до команди: як ефективно навчати і...
ВІТАЛІЙ МИХАЙЛЮК «Онбордінг нових тестерів до команди: як ефективно навчати і...ВІТАЛІЙ МИХАЙЛЮК «Онбордінг нових тестерів до команди: як ефективно навчати і...
ВІТАЛІЙ МИХАЙЛЮК «Онбордінг нових тестерів до команди: як ефективно навчати і...
QADay
 
Ad

Recently uploaded (20)

Introduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe EngineeringIntroduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe Engineering
Damian T. Gordon
 
apa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdfapa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdf
Ishika Ghosh
 
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Library Association of Ireland
 
2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx
contactwilliamm2546
 
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Library Association of Ireland
 
Understanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s GuideUnderstanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s Guide
GS Virdi
 
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Library Association of Ireland
 
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
New Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptxNew Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptx
milanasargsyan5
 
Metamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative JourneyMetamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative Journey
Arshad Shaikh
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
Anti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptxAnti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptx
Mayuri Chavan
 
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
larencebapu132
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
Biophysics Chapter 3 Methods of Studying Macromolecules.pdf
Biophysics Chapter 3 Methods of Studying Macromolecules.pdfBiophysics Chapter 3 Methods of Studying Macromolecules.pdf
Biophysics Chapter 3 Methods of Studying Macromolecules.pdf
PKLI-Institute of Nursing and Allied Health Sciences Lahore , Pakistan.
 
Social Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy StudentsSocial Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy Students
DrNidhiAgarwal
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptxSCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
Ronisha Das
 
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACYUNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
DR.PRISCILLA MARY J
 
Introduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe EngineeringIntroduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe Engineering
Damian T. Gordon
 
apa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdfapa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdf
Ishika Ghosh
 
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Library Association of Ireland
 
2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx
contactwilliamm2546
 
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Library Association of Ireland
 
Understanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s GuideUnderstanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s Guide
GS Virdi
 
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Library Association of Ireland
 
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
New Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptxNew Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptx
milanasargsyan5
 
Metamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative JourneyMetamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative Journey
Arshad Shaikh
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
Anti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptxAnti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptx
Mayuri Chavan
 
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
larencebapu132
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
Social Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy StudentsSocial Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy Students
DrNidhiAgarwal
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptxSCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
Ronisha Das
 
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACYUNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
DR.PRISCILLA MARY J
 

КОСТЯНТИН КЛЮЄВ «Postman: API Automation Testing Swiss Army Knife» Kyiv QADay 2021

  • 1. © 2021 Kos Kliuiev POSTMAN: API Automation Testing Swiss Army knife Not just an automation story
  • 2. • QA Trainer at Start IT • AQA Trainer at Start IT • TPM at EPAM • QA Lead at FastCTO • Life Lover • Frequent Traveller • Vaccinated guy)) Who am I?
  • 3. Swiss army knife? What do you mean? All-in-one tool
  • 4. What about Postman? • Use anywhere - Windows, Linux, Mac OS • REST API • SOAP API • WebSocket (Yeah! It’s working now) • Simple assertions using ChaiJS • Newman CLI (run ) • Any reports, using multiple reporters
  • 5. What should I start from? follow the right flow • Understand the main userflow(s); • Find the most critical one(s); • Build the appropriate scenario(s); • Get familiar with API Documentation; • Send requests and analyse responses; • Write tests for separate requests; • Join requests in one test suite;
  • 6. From User’s flow to request scenarios Capture and Inspect • Follow the steps manually • Inspect each step with browser dev tools • Capture requests with Interceptor plug-in • Capture requests from any devices via Postman Proxy
  • 7. So, I’ve got the request What’s next? • Analyse response and it’s status code; • Analyse headers; • Analyse body; • Find the points to assert; • Save variables, you might use later;
  • 8. What to assert on? Wonderful world is almost here Status code: • pm.response.to.have.status(200); • pm.response.to.have.status(“OK"); • pm.expect(pm.response.code).to.be.oneOf([201,202]); • pm.expect(pm.response.code).to.not.be.oneOf([402,403]); Response time: • pm.expect(pm.response.responseTime).to.be.below(200); Headers: • pm.expect(pm.response.headers.get(‘X-Frame- Options')).to.eql('DENY');
  • 9. Hm…What about body? Do whatever you want Simply check value: • pm.expect(pm.response.json().first_name).to.eql(“Kos”); • pm.expect(pm.response.json().last_name).to.contain(“Kliu”) • pm.expect(pm.response.json().age).to.be.above(18); • pm.expect(pm.response.json().balance).to.not.eql(0); Object properties: • pm.expect(jsonData).to.have.all.keys(‘first_name', ‘last_name'); • pm.expect(jsonData).to.have.any.keys(‘tel', ‘fax’); • pm.expect(jsonData.role).to.be.oneOf([“Admin”, “Superadmin"]); Value type: • pm.expect(pm.response.json()).to.be.an(“object"); • pm.expect(pm.response.json().first_name).to.be.a(“string”); • pm.expect(pm.response.json().problems).to.be.undefined; • pm.expect(pm.response.json().worries).to.be.null; Array properties: • pm.expect(jsonData.errors_array).to.be.empty; • pm.expect(jsonData.sizes).to.include(“XXL”);
  • 10. Variables Total Recall Save: • postman.setEnvironmentVariable("token", responseData.accessToken); Use in request: • $token; Use in tests: • pm.variables.get(“token"); Randomize: • $randomFirstName; • $randomJobTitle; • $randomPhoneNumber; • $randomEmail;
  • 11. Scenario is ready. What’s next? Go! Go! Go! • Run with Postman Runner; • Export as a JSON; • Run with Newman; • Turn on reporting; • Run in CI; • Save the world!
  • 12. Reporters Report anywhere! • npm install newman-reporter-allure; • npm install newman-reporter-testrail; HTML: • npm install newman-reporter-htmlextra;
  • 13. Any CI/CD Go! Go! Go! • Jenkins; • GitHub Actions; • Bitbucket Pipelines; • Travis; • GitLab CI/CD;