SlideShare a Scribd company logo
5
Most read
6
Most read
10
Most read
| HELLO, REAL WORLD.
Include Automated Restful API Testing
with your CI using
Postman, Newman, and Jenkins
Elise Carmichael
| HELLO, REAL WORLD.
Elise Carmichael
Vice President of Quality
QASymphony
Agenda
• There are so many types of testing, why focus on API?
• Why use Postman, Newman, and Jenkins?
• How to write tests in Postman
• How to use Newman to execute Postman tests from a commandline
• How to include your tests in Jenkins
• Note: Focusing on REST
• Security
• Security
• Security
• Security
• Security
• Security
Why API Testing?
• Quick tests to write, run, quick
feedback in CI jobs
• Reusability for performance testing
• Put some basic scenarios into your
production monitoring system to be
aware of outages before your
customers
Why API Testing?
INSERT PHOTO ON TOP
• We use Postman at QA
Symphony for our REST
API tests.
• It’s
• Free
• Very Popular
• Easy to use
• Works well with CI
Postman
https://www.getpostman.com/
INSERT PHOTO ON TOP
• We use Newman to integrate
API tests into CI at QA
Symphony
• It’s
• Free
• Works seamlessly with
Postman
• Executes tests from the
command line so that they
can be included in CI
Newman
https://www.getpostman.com/docs/postman/collection_runs/command_line_integration_with_newman
Jenkins
https://jenkins.io/
• Jenkins is one of several tools
we use at QA Symphony to
assist with Continuous
Integration
• It’s
• Free
• Popular
• Very, very flexible with many
plugins (even qTest has one!)
INSERT PHOTO ON TOP
Postman Examples
1. Read Some API
Documentation (let’s use
qTest’s API)
2. Make a call
1. Login & Create Test Case
3. Test the call
1. Verify Status Code
2. Verify Speed
3. Verify Response
INSERT PHOTO ON TOP
Postman Examples (continued)
1. Set up variables (to use/store in
the next call)
2. Check for a security flaw
1. Same verifications
3. Runner GUI
4. Download a collection
5. Download the environment
(staging/dev)
INSERT PHOTO ON TOP
Newman Example
1. Let’s test that same collection
from the commandline
INSERT PHOTO ON TOP
Jenkins Example
1. Simple shell to execute
newman
2. Use script to upload test results
to qTest, just to show the full
cycle if we wanted to not just
include API testing in our CI, but
to have a documented, easy to
read record of what was tested
I just showed you one
example of a tool set that
you could use, but there
are countless others!
Other Options!
| HELLO, REAL WORLD.
Test Early;
Test Often!
Thank You!
Elise Carmichael
elisecarmichael@qasymphony.com
Q&A
| HELLO, REAL WORLD.
Quality Jam LondonOctober 11, 2017 – http://qualityjam.net/uk/
Email Marketing@qasymphony.com to be entered to win a free ticket
| HELLO, REAL WORLD.
Quality Jam LondonOctober 11, 2017 – The Brewery, London
Email Marketing@qasymphony.com to be entered to win a free ticket

More Related Content

What's hot (20)

PDF
Postman: An Introduction for Testers
Postman
 
PPT
Postman.ppt
ParrotBAD
 
PPTX
Api testing
HamzaMajid13
 
PDF
Postman Webinar: Postman 101
Nikita Sharma
 
PDF
Driving Pipeline Automation With Newman and the Postman API
Postman
 
PDF
Postman: An Introduction for Developers
Postman
 
PDF
API_Testing_with_Postman
Mithilesh Singh
 
PDF
Postman
Igor Shubovych
 
PPTX
Api Testing
Vishwanath KC
 
PPTX
API Testing for everyone.pptx
Pricilla Bilavendran
 
PDF
API Testing
Bikash Sharma
 
PDF
Advanced API Debugging
Postman
 
PDF
Reasons To Automate API Testing Process
QASource
 
PDF
API Testing. Streamline your testing process.
Andrey Oleynik
 
PDF
Cucumber ppt
Qwinix Technologies
 
ODP
BDD with Cucumber
Knoldus Inc.
 
PDF
API TESTING
Sijan Bhandari
 
PPTX
API Testing Presentations.pptx
ManmitSalunke
 
PDF
API Testing: The heart of functional testing" with Bj Rollison
TEST Huddle
 
PPTX
POSTMAN.pptx
RamaKrishna970827
 
Postman: An Introduction for Testers
Postman
 
Postman.ppt
ParrotBAD
 
Api testing
HamzaMajid13
 
Postman Webinar: Postman 101
Nikita Sharma
 
Driving Pipeline Automation With Newman and the Postman API
Postman
 
Postman: An Introduction for Developers
Postman
 
API_Testing_with_Postman
Mithilesh Singh
 
Api Testing
Vishwanath KC
 
API Testing for everyone.pptx
Pricilla Bilavendran
 
API Testing
Bikash Sharma
 
Advanced API Debugging
Postman
 
Reasons To Automate API Testing Process
QASource
 
API Testing. Streamline your testing process.
Andrey Oleynik
 
Cucumber ppt
Qwinix Technologies
 
BDD with Cucumber
Knoldus Inc.
 
API TESTING
Sijan Bhandari
 
API Testing Presentations.pptx
ManmitSalunke
 
API Testing: The heart of functional testing" with Bj Rollison
TEST Huddle
 
POSTMAN.pptx
RamaKrishna970827
 

Viewers also liked (18)

PPT
Jolly Postman
Chen Alyssa
 
PPTX
40+ tips to use Postman more efficiently
postmanclient
 
PPTX
Manual Testing is Dead. Long Live Manual Testing
QASymphony
 
PPTX
Debugging Your Testing Team
QASymphony
 
PPTX
Succeeding as an Introvert
QASymphony
 
PPTX
Moving QA from Reactive to Proactive with qTest
QASymphony
 
PPTX
Knowing Where to Tap
QASymphony
 
PDF
BHIM App Case Study
99tests
 
PPTX
Whitebox Testing for Blackbox Testers: Simplifying API Testing
QASymphony
 
PDF
Product Teardown for SaaS companies at #SaaSx4
ProductNation/iSPIRT
 
PPTX
Modernizing Your Testing Tools
QASymphony
 
PDF
Best Practices In Exploratory Testing
99tests
 
PDF
Future Of Software Testing
99tests
 
PDF
Operate 24x7
Astegic
 
PPTX
TUI & qTest: Why, How and Where Next
QASymphony
 
PPTX
Diving into the World of Test Automation The Approach and the Technologies
QASymphony
 
PDF
Best practices for test case creation & maintenance
99tests
 
PPTX
Building Better Collaboration Between Development and Testing in a DevOps World
QASymphony
 
Jolly Postman
Chen Alyssa
 
40+ tips to use Postman more efficiently
postmanclient
 
Manual Testing is Dead. Long Live Manual Testing
QASymphony
 
Debugging Your Testing Team
QASymphony
 
Succeeding as an Introvert
QASymphony
 
Moving QA from Reactive to Proactive with qTest
QASymphony
 
Knowing Where to Tap
QASymphony
 
BHIM App Case Study
99tests
 
Whitebox Testing for Blackbox Testers: Simplifying API Testing
QASymphony
 
Product Teardown for SaaS companies at #SaaSx4
ProductNation/iSPIRT
 
Modernizing Your Testing Tools
QASymphony
 
Best Practices In Exploratory Testing
99tests
 
Future Of Software Testing
99tests
 
Operate 24x7
Astegic
 
TUI & qTest: Why, How and Where Next
QASymphony
 
Diving into the World of Test Automation The Approach and the Technologies
QASymphony
 
Best practices for test case creation & maintenance
99tests
 
Building Better Collaboration Between Development and Testing in a DevOps World
QASymphony
 

Similar to RESTful API Testing using Postman, Newman, and Jenkins (20)

PDF
Postman tests in jenkins
Alex Galkin
 
PPTX
16 - 17h10 - Anthony Todisco_Amadeus.pptx
mega941971
 
PDF
Automation, Integration, and Orchestration for Better Engineering Operations
Postman
 
PDF
Testing Your APIs: Postman, Newman, and Beyond
Postman
 
PPTX
Postman PowerPoint template is a free template with a postman illustration an...
postmanapi6
 
PDF
How do I use Postman in my everyday QA work?
StudySection
 
PDF
Advanced Testing
Postman
 
ODP
Accelerate Quality with Postman - Basics
Knoldus Inc.
 
PDF
Release with confidence
John Congdon
 
PPTX
AUTOMATION TESTING tools extensive application
ssuser94400e
 
PDF
Automated Testing in DevOps
Haufe-Lexware GmbH & Co KG
 
PPTX
API testing - Japura.pptx
TharindaLiyanage1
 
PDF
Postman-Powered API Testing: Streamlining Development
StudySection
 
PDF
Agile Testing Days 2018 USA - API Testing Fundamentals
JoEllen Carter
 
DOCX
Diversified AT Framework - Initial Version
Yu Tao Zhang
 
PDF
Continuous Quality with Postman
Postman
 
PPTX
PostMan and Jenkins RestApi Automation.pptx
EveryThing68
 
PPTX
Real Testing Scenario Strategy Practical TestOps Presentation
Adam Sandman
 
PPTX
API Testing with Open Source Code and Cucumber
SmartBear
 
PDF
Top 11 API testing tools for 2022
Aparna Sharma
 
Postman tests in jenkins
Alex Galkin
 
16 - 17h10 - Anthony Todisco_Amadeus.pptx
mega941971
 
Automation, Integration, and Orchestration for Better Engineering Operations
Postman
 
Testing Your APIs: Postman, Newman, and Beyond
Postman
 
Postman PowerPoint template is a free template with a postman illustration an...
postmanapi6
 
How do I use Postman in my everyday QA work?
StudySection
 
Advanced Testing
Postman
 
Accelerate Quality with Postman - Basics
Knoldus Inc.
 
Release with confidence
John Congdon
 
AUTOMATION TESTING tools extensive application
ssuser94400e
 
Automated Testing in DevOps
Haufe-Lexware GmbH & Co KG
 
API testing - Japura.pptx
TharindaLiyanage1
 
Postman-Powered API Testing: Streamlining Development
StudySection
 
Agile Testing Days 2018 USA - API Testing Fundamentals
JoEllen Carter
 
Diversified AT Framework - Initial Version
Yu Tao Zhang
 
Continuous Quality with Postman
Postman
 
PostMan and Jenkins RestApi Automation.pptx
EveryThing68
 
Real Testing Scenario Strategy Practical TestOps Presentation
Adam Sandman
 
API Testing with Open Source Code and Cucumber
SmartBear
 
Top 11 API testing tools for 2022
Aparna Sharma
 

More from QASymphony (20)

PDF
Saying Goodbye to Quality Center
QASymphony
 
PPTX
QASymphony Atlanta Customer User Group Fall 2017
QASymphony
 
PPTX
Kick-Starting BDD for Your Organization
QASymphony
 
PPTX
BizDevOps – Delivering Business Value Quickly at Scale
QASymphony
 
PPTX
Making the Switch from HP Quality Center to qTest
QASymphony
 
PDF
Quality Jam 2017: Sheekha Singh "Millennials & Testing"
QASymphony
 
PDF
Quality Jam 2017: Jesse Reed & Kyle McMeekin "Test Case Management & Explorat...
QASymphony
 
PDF
Quality Jam 2017: Paul Merrill "Machine Learning & How it Affects Testers"
QASymphony
 
PDF
Quality Jam 2017: Sheekha Singh "Millennials & Testing"
QASymphony
 
PDF
Quality Jam 2017: Kevin Dunne "Macro Trends and Useful Tools that 'Get It'"
QASymphony
 
PDF
Quality Jam 2017: Elise Carmichael and Corey Pyle "Jumpstarting Your Test Aut...
QASymphony
 
PDF
Quality Jam 2017: Keith Klain "Debugging Your Test Team"
QASymphony
 
PPTX
Where Testers & QA Fit in the Story of DevOps
QASymphony
 
PPTX
Closing the Requirements and Testing Loop Webinar
QASymphony
 
PPTX
Streamlining Automation Scripts and Test Data Management
QASymphony
 
PPTX
Agile Testing Analytics
QASymphony
 
PPTX
Making the Move to Behavior Driven Development
QASymphony
 
PPTX
Software Testing Metrics with qTest Insights - QASymphony Webinar
QASymphony
 
PPTX
Using JIRA for Risk Based Testing - QASymphony Webinar
QASymphony
 
PPTX
Evolve or Die: Healthcare IT Testing | QASymphony Webinar
QASymphony
 
Saying Goodbye to Quality Center
QASymphony
 
QASymphony Atlanta Customer User Group Fall 2017
QASymphony
 
Kick-Starting BDD for Your Organization
QASymphony
 
BizDevOps – Delivering Business Value Quickly at Scale
QASymphony
 
Making the Switch from HP Quality Center to qTest
QASymphony
 
Quality Jam 2017: Sheekha Singh "Millennials & Testing"
QASymphony
 
Quality Jam 2017: Jesse Reed & Kyle McMeekin "Test Case Management & Explorat...
QASymphony
 
Quality Jam 2017: Paul Merrill "Machine Learning & How it Affects Testers"
QASymphony
 
Quality Jam 2017: Sheekha Singh "Millennials & Testing"
QASymphony
 
Quality Jam 2017: Kevin Dunne "Macro Trends and Useful Tools that 'Get It'"
QASymphony
 
Quality Jam 2017: Elise Carmichael and Corey Pyle "Jumpstarting Your Test Aut...
QASymphony
 
Quality Jam 2017: Keith Klain "Debugging Your Test Team"
QASymphony
 
Where Testers & QA Fit in the Story of DevOps
QASymphony
 
Closing the Requirements and Testing Loop Webinar
QASymphony
 
Streamlining Automation Scripts and Test Data Management
QASymphony
 
Agile Testing Analytics
QASymphony
 
Making the Move to Behavior Driven Development
QASymphony
 
Software Testing Metrics with qTest Insights - QASymphony Webinar
QASymphony
 
Using JIRA for Risk Based Testing - QASymphony Webinar
QASymphony
 
Evolve or Die: Healthcare IT Testing | QASymphony Webinar
QASymphony
 

Recently uploaded (20)

PDF
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
PDF
GetOnCRM Speeds Up Agentforce 3 Deployment for Enterprise AI Wins.pdf
GetOnCRM Solutions
 
DOCX
Import Data Form Excel to Tally Services
Tally xperts
 
PPTX
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
PPTX
Writing Better Code - Helping Developers make Decisions.pptx
Lorraine Steyn
 
PPTX
3uTools Full Crack Free Version Download [Latest] 2025
muhammadgurbazkhan
 
PDF
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
PPTX
Fundamentals_of_Microservices_Architecture.pptx
MuhammadUzair504018
 
PPTX
The Role of a PHP Development Company in Modern Web Development
SEO Company for School in Delhi NCR
 
PDF
Executive Business Intelligence Dashboards
vandeslie24
 
PDF
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
PDF
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
PPTX
MailsDaddy Outlook OST to PST converter.pptx
abhishekdutt366
 
PDF
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
PPTX
How Apagen Empowered an EPC Company with Engineering ERP Software
SatishKumar2651
 
PPTX
Migrating Millions of Users with Debezium, Apache Kafka, and an Acyclic Synch...
MD Sayem Ahmed
 
PDF
Salesforce CRM Services.VALiNTRY360
VALiNTRY360
 
PPTX
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
PPTX
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
PPTX
Revolutionizing Code Modernization with AI
KrzysztofKkol1
 
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
GetOnCRM Speeds Up Agentforce 3 Deployment for Enterprise AI Wins.pdf
GetOnCRM Solutions
 
Import Data Form Excel to Tally Services
Tally xperts
 
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
Writing Better Code - Helping Developers make Decisions.pptx
Lorraine Steyn
 
3uTools Full Crack Free Version Download [Latest] 2025
muhammadgurbazkhan
 
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
Fundamentals_of_Microservices_Architecture.pptx
MuhammadUzair504018
 
The Role of a PHP Development Company in Modern Web Development
SEO Company for School in Delhi NCR
 
Executive Business Intelligence Dashboards
vandeslie24
 
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
MailsDaddy Outlook OST to PST converter.pptx
abhishekdutt366
 
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
How Apagen Empowered an EPC Company with Engineering ERP Software
SatishKumar2651
 
Migrating Millions of Users with Debezium, Apache Kafka, and an Acyclic Synch...
MD Sayem Ahmed
 
Salesforce CRM Services.VALiNTRY360
VALiNTRY360
 
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
Revolutionizing Code Modernization with AI
KrzysztofKkol1
 

RESTful API Testing using Postman, Newman, and Jenkins

  • 1. | HELLO, REAL WORLD. Include Automated Restful API Testing with your CI using Postman, Newman, and Jenkins Elise Carmichael
  • 2. | HELLO, REAL WORLD. Elise Carmichael Vice President of Quality QASymphony
  • 3. Agenda • There are so many types of testing, why focus on API? • Why use Postman, Newman, and Jenkins? • How to write tests in Postman • How to use Newman to execute Postman tests from a commandline • How to include your tests in Jenkins • Note: Focusing on REST
  • 4. • Security • Security • Security • Security • Security • Security Why API Testing?
  • 5. • Quick tests to write, run, quick feedback in CI jobs • Reusability for performance testing • Put some basic scenarios into your production monitoring system to be aware of outages before your customers Why API Testing?
  • 6. INSERT PHOTO ON TOP • We use Postman at QA Symphony for our REST API tests. • It’s • Free • Very Popular • Easy to use • Works well with CI Postman https://www.getpostman.com/
  • 7. INSERT PHOTO ON TOP • We use Newman to integrate API tests into CI at QA Symphony • It’s • Free • Works seamlessly with Postman • Executes tests from the command line so that they can be included in CI Newman https://www.getpostman.com/docs/postman/collection_runs/command_line_integration_with_newman
  • 8. Jenkins https://jenkins.io/ • Jenkins is one of several tools we use at QA Symphony to assist with Continuous Integration • It’s • Free • Popular • Very, very flexible with many plugins (even qTest has one!)
  • 9. INSERT PHOTO ON TOP Postman Examples 1. Read Some API Documentation (let’s use qTest’s API) 2. Make a call 1. Login & Create Test Case 3. Test the call 1. Verify Status Code 2. Verify Speed 3. Verify Response
  • 10. INSERT PHOTO ON TOP Postman Examples (continued) 1. Set up variables (to use/store in the next call) 2. Check for a security flaw 1. Same verifications 3. Runner GUI 4. Download a collection 5. Download the environment (staging/dev)
  • 11. INSERT PHOTO ON TOP Newman Example 1. Let’s test that same collection from the commandline
  • 12. INSERT PHOTO ON TOP Jenkins Example 1. Simple shell to execute newman 2. Use script to upload test results to qTest, just to show the full cycle if we wanted to not just include API testing in our CI, but to have a documented, easy to read record of what was tested
  • 13. I just showed you one example of a tool set that you could use, but there are countless others! Other Options!
  • 14. | HELLO, REAL WORLD. Test Early; Test Often!
  • 16. | HELLO, REAL WORLD. Quality Jam LondonOctober 11, 2017 – http://qualityjam.net/uk/ Email [email protected] to be entered to win a free ticket
  • 17. | HELLO, REAL WORLD. Quality Jam LondonOctober 11, 2017 – The Brewery, London Email [email protected] to be entered to win a free ticket

Editor's Notes

  • #2: The last webinar with DJ Frank was a 10,000 foot view of API testing, in this one, we’re going to get down and dirty!
  • #4: Review Agenda. The two most popular types of services code adhere to SOAP or Rest standards. They’re both ways to cause code on a service to execute. There is a distinct shift towards restful services, so in this talk, I will focus on testing straightforward restful services.
  • #5: <Click through security items first.. > Static Code analysis is GREAT. Tools like checkmarx that are focused on security are wonderful at looking at the code for deprecated items, or inherently insecure code Hiring a specialty company to do penetration testing is great and invaluable Functional testing with selenium or Appium or other client side testing tool is wonderful for regression testing and making sure your users have a great experience. However, one of the easiest way to expose data to your, undesirable users, is to make a mistake in your API. Forgot to lock down your user role to admin functionality? Developer accidentally deletes a few letters in your role file? Forgot to prevent things in the API that you prevent in the UI? Furthermore, if there is a mistake in the services code, it can affect the entire user base. Maybe someone finds a bug and it actually breaks the services for everyone.
  • #6: 1. Fast to write because it’s like a function – same input, expect the same output unless things are modified based on time. Not only can API tests be simplistic to write, they’re also very quick to run. This makes APIs an ideal part of your code to automate first. It’s stable and should be extremely reliable. 2. As part of your API tests, it’s easy enough to say that if the call takes more than say one or two seconds, fail it. This also gives you some performance tests. Great! 3. Reuse some basic API tests in production and set up alarms when errors occur; this is especially useful if you are using many third party systems. Write a few integration tests or scenarios that cover the riskiest areas of the software. Try to find problems before your customers by setting up alarms when the system is slower than expected or just doesn’t function.
  • #7: Let’s review the tools that we’re going to use today before we get on with a few examples
  • #8: Newman allows you to execute postman tests from the command line instead of the GUI runner.
  • #10: Ok, everyone pull up postman! Note, at the end of July, a new version of postman came out and that allows more control over folders; folder ordering and nested folders. Also, I couldn’t find this in the release notes, but the built in snippets changed format The new snippets use the chair expect format: expect library http://chaijs.com/guide/styles/#expect http://chaijs.com/api/bdd/ https://www.getpostman.com/docs/postman/scripts/postman_sandbox_api_reference Review qTest API with basic Auth Login Response values Status Code Speed Create Test Case
  • #11: * Save token from login call to use in the next call Get Test case with saved token Create an environment Store project ID in the environment
  • #12: Newman –v Newman –help newman run Webinar.postman_collection.json -e WebinarEnv.postman_environment.json
  • #14: I just showed you one example of tooling you could use. Regardless of what tool suite you use, the principles are the same. You want to design your tests, write your tests, and execute them in order for your build to pass. This way, your development team knows about failures basically immediately. This is the most inexpensive way to fix a problem. When you focus on API tests first, you can test more scenarios quicker, and easier than any other type of automated testing. If I were to talk to a team who had zero automation, I’d start by asking them to design a good smoke test suite and a regression test suite. Then first thing would be to automate API tests and get them running as part of CI. Any new API call, or change to an API call would warrant updated tests in that same iteration.
  • #15: Bugs are cheaper when they’re found earlier. Automate the stuff you do all of the time so you can focus your testing energy on the interesting, clever bugs! Obviously you can’t test everything, but focus on risk based testing, and number one is usually going to be your API
  • #17: Joseph – talk about this & intro me If you’re one of the first 5 people to request a ticket, reference me and get a discount to the event!