Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
API testing Beyond the Basics AI & Automation Techniques
1. Attendees are muted
Ask questions under Q&A section of Zoom
A recording of this session will be shared
Post-event feedback survey will be given at the end
Log into your Postman account for this session
(go.postman.co)
1
2
3
4
5
General Information
@getpostman @petuniaGray @poojamakes
2. All rights reserved by Postman Inc
API testing Beyond the
Basics : AI & Automation
Techniques
Joyce Lin
Senior director of
developer relations
Pooja Mistry
Developer Advocate
3. Senior Director of Developer Relations
Joyce Lin
Developer Advocate
Pooja Mistry
@petuniaGray
@poojamakes
4. At the end of this session, you will be able to:
● Harness the automation capabilities of Postman to conduct tests across
diverse environments.
● Amplify the potential of Postman's scripting interface by incorporating
pre-request scripts, assertions, variables, and libraries.
● Employ Postbot, an AI-powered assistant that interprets natural language
input to aid in testing, debugging, data visualization, and data analysis.
● Cultivate proficiency in testing intricate API workflows, encompassing
scenarios with multiple API endpoints, conditional logic, and data
manipulation
Learning Objectives
@getpostman @petuniaGray @poojamakes
5. Agenda
1 What is testing in Postman?
2 Means of test automation
3 Postbot
5 Resources and Q&A
4 Demo
@getpostman @petuniaGray @poojamakes
6. ● Participate in the Poll
○ Which type of tests do you run in
Postman?
A little about you
@getpostman @petuniaGray @poojamakes
8. Tests and Test Results
Postman tests
– BDD assertions
● Chai.js BDD syntax
● pm.expect()
predicate expression
that can be evaluated
to a boolean value
@getpostman @petuniaGray @poojamakes
13. Means of Test Automation
@getpostman @petuniaGray @poojamakes
14. Tips for writing better Postman tests
Group multiple
assertions
● Keep them logically
organized for those
who review the test
results and need to
debug issues
Use messages and
console
statements
● Provide visibility to
validate conditional
testing and execution
order
● Prepend custom
messages
Use descriptive,
consistent, or
dynamic test
names
● Use variables within
test names to provide
more detail, especially
if the same test is used
for multiple scenarios
or iterations
@getpostman @petuniaGray @poojamakes
16. What we learned today:
● Types of testing you can run in Postman
● Testing API workflows with Postbot
● Types of automation capabilities tests across diverse environments.
● Postman's collaboration features to manage test suites, share results with
team members
In summary
@getpostman @petuniaGray @poojamakes
17. Postman API Test Automation for Beginners - Valentin Despa
https://www.youtube.com/watch?v=zp5Jh2FIpF0
15 Days of Postman - for Testers
postman.com/postman/workspace/15-days-of-postman-for-testers/overview
Test examples in Postman
postman.com/postman/workspace/test-examples-in-postman/overview
Quickstarts: hands-on tutorials
quickstarts.postman.com
Additional Resources
@getpostman @petuniaGray @poojamakes
18. Please tell us about
your experience!
FEEDBACK SURVEY
@getpostman @petuniaGray @poojamakes
tinyurl.com/ai-automation-techniques