This document provides an agenda and overview for a workshop on testing, automation, and reporting with Postman. The workshop will cover testing concepts and practical exercises, advanced testing techniques like dynamic variables and Chai assertions, automation with the Collection Runner and Newman, and creating reports. Speakers Trent McCann and Danny Dainton will present on prerequisites, testing modules, breaks, automation, and workshop wrap-up.
Join us for a one-hour, introductory Postman learning session geared specifically for API testers.
Learn how to test the functionality and reliability of an API
RESTful API Testing using Postman, Newman, and JenkinsQASymphony
INCLUDE AUTOMATED RESTFUL API TESTING USING POSTMAN, NEWMAN, AND JENKINS
If you’re going to automate one kind of tests at your company, API testing is the perfect place to start! It’s fast and simple to write as well as fast to execute. If your company writes an API for its software, then you understand the need and importance of testing it. In this webinar, we’ll do a live demonstration of how you can use free tools, such as Postman, Newman, and Jenkins, to enhance your software quality and security.
Elise Carmichael will cover:
Why your API tests should be included with your CI
Real examples using Postman, Newman and Jenkins + Newman
An active Q&A where you can get your automated testing questions answered, live!
To get the most out of this session:
Download these free tools prior to the webinar: Postman, Newman (along with node and npm) and Jenkins
Read up on how to parse JSON objects using javascript
*Can’t attend the webinar live? Register and we will send the recording after the webinar is over.
API Testing. Streamline your testing process.Andrey Oleynik
Slides from IT talk: «API Testing. Streamline your testing process. A step by step tutorial»
Code on github: https://github.com/a-oleynik/soap-ui
Webinar on youtube: https://www.youtube.com/watch?v=x2ALtuCjuUo
DataArt P. https://www.meetup.com/ru-RU/DataArt-Wroclaw-IT-talk/events/246967484/?eventId=246967484 Wroclaw, 2018, February 15
An Introduction To Automated API TestingSauce Labs
As more and more apps are being assembled from a rapidly expanding array of microservices, APIs are the key to accessing these new architectures. That new feature you’re working on will often rely on upstream services that can only be accessed via APIs - so to test the functionality of the new component you’ll need to simulate those services.
While APIs are the backbone of the websites and apps we rely on today, automated testing of them is only starting to grow. Join Patrick Poulin, CEO of API Fortress, as he provides an introduction to API testing, the best ways to test your own APIs using popular tools available today, and demonstrates the orchestration of API tests and Sauce Labs tests as part of a Jenkins build process.
Key takeaways:
-Clearly understand what API testing means.
-Learn about best practices.
-See demonstrations of popular testing tools.
-See API and UI/UX testing implemented as part of a Jenkins build.
Join us for a one-hour, introductory Postman learning session geared specifically for API testers.
Learn how to test the functionality and reliability of an API
RESTful API Testing using Postman, Newman, and JenkinsQASymphony
INCLUDE AUTOMATED RESTFUL API TESTING USING POSTMAN, NEWMAN, AND JENKINS
If you’re going to automate one kind of tests at your company, API testing is the perfect place to start! It’s fast and simple to write as well as fast to execute. If your company writes an API for its software, then you understand the need and importance of testing it. In this webinar, we’ll do a live demonstration of how you can use free tools, such as Postman, Newman, and Jenkins, to enhance your software quality and security.
Elise Carmichael will cover:
Why your API tests should be included with your CI
Real examples using Postman, Newman and Jenkins + Newman
An active Q&A where you can get your automated testing questions answered, live!
To get the most out of this session:
Download these free tools prior to the webinar: Postman, Newman (along with node and npm) and Jenkins
Read up on how to parse JSON objects using javascript
*Can’t attend the webinar live? Register and we will send the recording after the webinar is over.
API Testing. Streamline your testing process.Andrey Oleynik
Slides from IT talk: «API Testing. Streamline your testing process. A step by step tutorial»
Code on github: https://github.com/a-oleynik/soap-ui
Webinar on youtube: https://www.youtube.com/watch?v=x2ALtuCjuUo
DataArt P. https://www.meetup.com/ru-RU/DataArt-Wroclaw-IT-talk/events/246967484/?eventId=246967484 Wroclaw, 2018, February 15
An Introduction To Automated API TestingSauce Labs
As more and more apps are being assembled from a rapidly expanding array of microservices, APIs are the key to accessing these new architectures. That new feature you’re working on will often rely on upstream services that can only be accessed via APIs - so to test the functionality of the new component you’ll need to simulate those services.
While APIs are the backbone of the websites and apps we rely on today, automated testing of them is only starting to grow. Join Patrick Poulin, CEO of API Fortress, as he provides an introduction to API testing, the best ways to test your own APIs using popular tools available today, and demonstrates the orchestration of API tests and Sauce Labs tests as part of a Jenkins build process.
Key takeaways:
-Clearly understand what API testing means.
-Learn about best practices.
-See demonstrations of popular testing tools.
-See API and UI/UX testing implemented as part of a Jenkins build.
This one-hour, introductory Postman webinar is geared specifically for developers! Postman is an invaluable part of all developers’ toolkits. At the end of this session, you’ll walk away with all the basic skills you need to get started with Postman.
Talk given at Typeform for the Barcelona Bug busters meetup.
How to Automate API Testing guides you through a possible API Testing workflow for API Functional Testing exploring different tools and approaches.
In this webinar, Postman Developer Advocate Arlemi Turpault will show you:
- How to get started with Postman
- Key tips and tricks
- Where to look for documentation and help
In this webinar, Vu shared a range of ways to help you to quickly get up and running with the Postman platform, focusing on the following areas:
- How to get started with Postman
- Key tips and tricks
- Where to find documentation and help
Learn about the basics of Postman and APIs. If you're brand new to Postman, or new to APIs, this workshop is the first step towards becoming a proficient API user.
Postman An Introduction for Testers, October 26 2022.pptxPostman
Join us for a one-hour, introductory Postman learning session geared specifically for API testers. In this session, you’ll learn how to test the functionality and reliability of an API.
Here’s what we’ll do in this session:
- Send a request and inspect a response
- Use a test snippet
- Write custom tests
- Extract data from one request to use in another with variables
- Save and run tests as collections
- Explain different types of tests that can be written in Postman
- Run a test locally using the Postman Collection Runner
A Postman learning session geared specifically for developers. We’ll walk you through the basics of using Postman as an API client, getting started with testing, navigating different authorization methods, and much more.
Postman Webinar: “Continuous Testing with Postman”Postman
In this webinar, Postman Developer Advocate Joyce Lin and Engineering Manager Trent McCann discuss automating your tests with Postman while walking you through some advanced testing workflows. Topics include:
- Run tests locally using Postman’s Collection Runner
- Automate testing as part of your continuous integration (CI) pipeline using Postman’s Newman (a command-line collection runner for Postman)
- Run health and security checks using Postman monitors
API Testing: The heart of functional testing" with Bj RollisonTEST Huddle
View webinar: http://www.eurostarconferences.com/community/member/webinar-archive/webinar-81-api-testing-the-heart-of-functional-testing
An API, or Application Programming Interface, is a collection of functions that provide much of the functional capabilities in complex software systems. Most customers are accustomed to interacting with a graphical user interface on the computer. But, many customers do not realize the much of the functionality of a program comes from APIs in the operating system or program's dynamic-link libraries (DLL). So, if the business logic or core functionality is exposed via an API call then and if we want to find functional bugs sooner than API testing may be an approach that provides additional value in your overall test strategy. Additionally, API testing can start even before the user interface is complete so functional capabilities can be tested while designers are hashing out the "look and feel." API testing will not replace testing through the user interface, but it can augment your test strategy and provide a solid foundation of automated tests that increase your confidence in the functional quality of your product.
Space Camp :: API Lifecycle, Part I: Build and Test an APIPostman
Join us for a one-hour, intermediate-level Postman learning session geared specifically for API developers, API producers, and anyone else invested in building quality APIs. We’ll walk through the initial stages of the API lifecycle, including designing, defining, documenting, and testing an API.
API testing is a type of software testing that involves testing application programming interfaces (APIs) directly and as part of integration testing to determine if they meet expectations for functionality, reliability, performance, and security.
REST Assured is a Java library .Which, provides a domain-specific language (DSL) for writing powerful, maintainable tests for Restful APIs.
Library behaves like a headless Client to access REST web services.
Selenium is used in many IT companies due to its numerous advantages compared to other automation testing tools in the market.We provide best Selenium training in Chennai with real time scenarios. We are the best training institute in Chennai providing the real time training in Chennai
This one-hour, introductory Postman webinar is geared specifically for developers! Postman is an invaluable part of all developers’ toolkits. At the end of this session, you’ll walk away with all the basic skills you need to get started with Postman.
Talk given at Typeform for the Barcelona Bug busters meetup.
How to Automate API Testing guides you through a possible API Testing workflow for API Functional Testing exploring different tools and approaches.
In this webinar, Postman Developer Advocate Arlemi Turpault will show you:
- How to get started with Postman
- Key tips and tricks
- Where to look for documentation and help
In this webinar, Vu shared a range of ways to help you to quickly get up and running with the Postman platform, focusing on the following areas:
- How to get started with Postman
- Key tips and tricks
- Where to find documentation and help
Learn about the basics of Postman and APIs. If you're brand new to Postman, or new to APIs, this workshop is the first step towards becoming a proficient API user.
Postman An Introduction for Testers, October 26 2022.pptxPostman
Join us for a one-hour, introductory Postman learning session geared specifically for API testers. In this session, you’ll learn how to test the functionality and reliability of an API.
Here’s what we’ll do in this session:
- Send a request and inspect a response
- Use a test snippet
- Write custom tests
- Extract data from one request to use in another with variables
- Save and run tests as collections
- Explain different types of tests that can be written in Postman
- Run a test locally using the Postman Collection Runner
A Postman learning session geared specifically for developers. We’ll walk you through the basics of using Postman as an API client, getting started with testing, navigating different authorization methods, and much more.
Postman Webinar: “Continuous Testing with Postman”Postman
In this webinar, Postman Developer Advocate Joyce Lin and Engineering Manager Trent McCann discuss automating your tests with Postman while walking you through some advanced testing workflows. Topics include:
- Run tests locally using Postman’s Collection Runner
- Automate testing as part of your continuous integration (CI) pipeline using Postman’s Newman (a command-line collection runner for Postman)
- Run health and security checks using Postman monitors
API Testing: The heart of functional testing" with Bj RollisonTEST Huddle
View webinar: http://www.eurostarconferences.com/community/member/webinar-archive/webinar-81-api-testing-the-heart-of-functional-testing
An API, or Application Programming Interface, is a collection of functions that provide much of the functional capabilities in complex software systems. Most customers are accustomed to interacting with a graphical user interface on the computer. But, many customers do not realize the much of the functionality of a program comes from APIs in the operating system or program's dynamic-link libraries (DLL). So, if the business logic or core functionality is exposed via an API call then and if we want to find functional bugs sooner than API testing may be an approach that provides additional value in your overall test strategy. Additionally, API testing can start even before the user interface is complete so functional capabilities can be tested while designers are hashing out the "look and feel." API testing will not replace testing through the user interface, but it can augment your test strategy and provide a solid foundation of automated tests that increase your confidence in the functional quality of your product.
Space Camp :: API Lifecycle, Part I: Build and Test an APIPostman
Join us for a one-hour, intermediate-level Postman learning session geared specifically for API developers, API producers, and anyone else invested in building quality APIs. We’ll walk through the initial stages of the API lifecycle, including designing, defining, documenting, and testing an API.
API testing is a type of software testing that involves testing application programming interfaces (APIs) directly and as part of integration testing to determine if they meet expectations for functionality, reliability, performance, and security.
REST Assured is a Java library .Which, provides a domain-specific language (DSL) for writing powerful, maintainable tests for Restful APIs.
Library behaves like a headless Client to access REST web services.
Selenium is used in many IT companies due to its numerous advantages compared to other automation testing tools in the market.We provide best Selenium training in Chennai with real time scenarios. We are the best training institute in Chennai providing the real time training in Chennai
Functional Testing of RESTful ApplicationsNenad Bozic
Rise in popularity of the microservice architecture on one side and need to have the server which has many clients (mobile, web, machine to machine) brought both the challenge and the opportunity to better test RESTful applications on level of features. Main feature of RESTful application are exposed endpoints which enable creating test application as REST client which will view our application as blackbox. Test application can prepare input and wait for output which can be compared against expected one.
In this presentation we will give overview of types of test you can do, concentrate on blackbox testing over REST Api, touch the terms of whitebox testing and graybox testing and why later approach is useful for external dependencies outside of our control and explain why you should use tools such as Cucumber to better communicate features with business people. Presentation will walk through our experiences and how we overcame problems along the way.
Integration Testing as Validation and MonitoringMelissa Benua
In the world of software-as-a-service, just about anyone with a laptop and an Internet connection can spin up their very own cloud-based web service. Software startups, in particular, are often big on ideas but small on staff. This makes streamlining the traditional develop-test-integrate-deploy-monitor pipeline critically important. Melissa Benua says that an effective way to accomplish this is to reduce the number of different test suites that verify many of the same things for each stage. Melissa explains how teams can avoid this by authoring the right set of tests and using the right frameworks. Drawing on lessons learned in companies both large and small, Melissa shows how teams can drastically slash time spent developing automation, verifying builds for release, and monitoring code in production—without sacrificing availability or reliability.
Continuous Integration, Deploy, Test From Beginning To End 2014Clever Moe
Frank Cohen, CTO/Founder at Appvance, teaches developers and testers how to become more closely aligned with easily deployable and configurable tools such as Jenkins CI and performance testing platforms. Learn how to: * Merge Agile SDLC and Performance Testing * Speed-up test operations by configuring Jenkins for automatic build, deploy, and tests * Instantly identify functional and performance issues using Jenkins as a performance dashboard * Use effective choices in Jenkins deployment – in the cloud, hosted, or in your datacenter
Presented at STPCon 2016. With the extensive amount of testing performed nightly on large software projects, test and verification teams often experience lengthy wait times for the availability of test results of the latest build. As we strive to identify and resolve issues as fast as possible, alternative methods of test execution have to be found. Learn how to use Jenkins to launch tests in parallel across a number of Virtual Machines, monitor execution health, and process results. Learn about various Jenkins plugins and how they contributed to the solution. Learn how to trigger downstream jobs, even if they are on separate Jenkins instances.
Explore seamless development with Continuous Integration using Jenkins and Python. Learn the essentials of integrating Jenkins with Python for efficient software deployment and management.
Software release cycles are now measured in days instead of months. Cutting edge companies are continuously delivering high quality software at a fast pace. In this session, we cover how you can begin your DevOps journey by sharing best practices and tools used by engineering teams at Amazon. We showcase how you can accelerate developer productivity by implementing continuous integration and delivery workflows. In addition, we introduce AWS CodeStar, AWS CodeCommit, AWS CodeBuild, AWS CodePipeline, AWS CodeDeploy, and AWS X-Ray, the services inspired by Amazon's internal developer tools and DevOps practices.
TYPO3 Camp Stuttgart 2015 - Continuous Delivery with Open Source ToolsMichael Lihs
In diesem Talk beschreibe ich die Continuous Integartion Pipeline von punkt.de und deren Entstehen. Es wird motiviert, warum es sich lohnt, eine solche Pipeline zu implementieren und welche Tools wir dafür verwendet haben. Neben der Beschreibung von Git, Jenkins, Chef, Vagrant, Behat und Surf geht es auch um Integration der einzelnen Tools in eine Deployment Kette.
Similar to POST/CON 2019 Workshop: Testing, Automated Testing, and Reporting APIs with Postman (20)
Elevating Developer Experiences with AI-Powered API Testing & DocumentationPostman
In the modern era, APIs have exploded in their popularity, powering absolutely everything we interact with on a daily basis (whether we know it or not). Maintaining their coherence and functionality has become, to say the least, a difficult task for developers and engineering leaders. As the API landscape continues to grow increasingly complex, the absence of robust testing and comprehensive documentation can lead to a cascade of issues, resulting in downstream pain for both developers and end-users alike.
However, there is a silver lining on the horizon: harnessing the power of AI to help write API tests and documentation, ensuring seamless integration, improved developer experiences, and ultimately, greater efficiency in API-driven development workflows. Join us as we delve into the transformative potential of AI in shaping the future of API testing and documentation, paving the way for a more streamlined and effective development ecosystem.
REST APIs are typically endpoint-based, meaning each endpoint has its rate limit, while GraphQL APIs tend to be more flexible and allow for a single endpoint to handle multiple requests. Although more flexible, rate limiting in GraphQL APIs is more complex than rate limiting in REST APIs. This talk discusses popular rate-limiting strategies and helps you choose the strategy that best fits your application's use case and requirements.
Five Ways to Automate API Testing with PostmanPostman
You know it’s the right thing to automate testing, workflows, and tedious processes. Automation saves you time, reduces errors, and allows your team to work more quickly. But where do you get started? This talk covers five ways to automate API testing, which can then be applied to any API workflows. Learn about testing as part of your CI/CD pipeline, uptime monitoring, and other APIOps practices.
How to Scale APIs-as-Product for Future SuccessPostman
Discover the key challenges in scaling API-as-a-Product, focusing on the imperative task of designing robust APIs in resource-constrained organizations. Join me to learn how cultivating the right mindset, leveraging technology, and optimizing processes can set your API-as-a-Product journey for success.
Revolutionizing API Development: Collaborative Workflows with PostmanPostman
There are many pitfalls of siloed API development processes, such as subpar APIs, delayed releases, and duplicated efforts. Join us to explore how Postman's collaborative workflows address these challenges head-on. We will look at how workspaces and collections allow API teams to work together effectively while also accelerating the onboarding process for new consumers of your API. The seamless integration with Amazon API Gateway further streamlines the process, fostering high-quality API development and expediting release cycles.
Everything You Always Wanted to Know About AsyncAPIPostman
From this talk you will learn what is AsyncAPI and AsyncAPI Initiative. You will see how we grow, but also what pains we have, and what are the painkillers. After this session you will know everything needed to join our community.
Elevating Event-Driven World: A Deep Dive into AsyncAPI v3Postman
Let me take you for a journey through the core advancements in AsyncAPI v3, so you learn how it simplifies the development of real-time applications. Whether you’re an experienced event-driven developer or just getting started, this talk will provide invaluable insights and practical tips for harnessing the full potential of AsyncAPI v3.
Over 25 million developers use Postman to work across different aspects of their API lifecycle all across the globe. In this talk, you'll learn about five amazing features that Postman offers that everyone SHOULD be aware of.
Integration-, Snapshot- and Performance-Testing APIs Postman
Postman is used by millions of developers and testers to discover, design, document, test and monitor APIs. Apart from the more than 300,000 APIs to explore openly on Postman, the Postman API network also contains free to use collection templates that cover the best examples we have seen around testing, security, infrastructure and developer workflow automation across various industries. In this talk, we will give a short overview of the available collection templates and then give concrete live demos on how to use the API performance-, snapshot- and integration testing examples. Last but not least, we will provide a magical example of how test cases can be created automatically, just based on the responses of your API endpoints and Postbot - our AI-based helper.
How ChatGPT led OpenAPI's Recent Spike in PopularityPostman
OpenAPI, formerly known as Swagger, is a specification for building and documenting APIs. This talk is about the significance of OpenAPI in the world of API development and when a lot of people suddenly realised its importance for modern-day software development. We'll explore the technical aspects, wider ecosystem, and future of OpenAPI in the world of API development and discuss the benefits of OpenAPI, its role in API documentation, and its importance in building robust and scalable APIs used by leading companies (e.g. OpenAI).
2023 State of the API Report: Key Findings and TrendsPostman
APIs are becoming increasingly important in the modern world. They are used to power a wide range of applications and services, from simple websites to complex enterprise systems. In this talk, Jordan from Postman will discuss the key findings from Postman’s 2023 State of the API Report. He will cover topics such as API adoption, usage, security, and trends and also the implications of these findings for businesses and developers.
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...James Anderson
Effective Application Security in Software Delivery lifecycle using Deployment Firewall and DBOM
The modern software delivery process (or the CI/CD process) includes many tools, distributed teams, open-source code, and cloud platforms. Constant focus on speed to release software to market, along with the traditional slow and manual security checks has caused gaps in continuous security as an important piece in the software supply chain. Today organizations feel more susceptible to external and internal cyber threats due to the vast attack surface in their applications supply chain and the lack of end-to-end governance and risk management.
The software team must secure its software delivery process to avoid vulnerability and security breaches. This needs to be achieved with existing tool chains and without extensive rework of the delivery processes. This talk will present strategies and techniques for providing visibility into the true risk of the existing vulnerabilities, preventing the introduction of security issues in the software, resolving vulnerabilities in production environments quickly, and capturing the deployment bill of materials (DBOM).
Speakers:
Bob Boule
Robert Boule is a technology enthusiast with PASSION for technology and making things work along with a knack for helping others understand how things work. He comes with around 20 years of solution engineering experience in application security, software continuous delivery, and SaaS platforms. He is known for his dynamic presentations in CI/CD and application security integrated in software delivery lifecycle.
Gopinath Rebala
Gopinath Rebala is the CTO of OpsMx, where he has overall responsibility for the machine learning and data processing architectures for Secure Software Delivery. Gopi also has a strong connection with our customers, leading design and architecture for strategic implementations. Gopi is a frequent speaker and well-known leader in continuous delivery and integrating security into software delivery.
Securing your Kubernetes cluster_ a step-by-step guide to success !KatiaHIMEUR1
Today, after several years of existence, an extremely active community and an ultra-dynamic ecosystem, Kubernetes has established itself as the de facto standard in container orchestration. Thanks to a wide range of managed services, it has never been so easy to set up a ready-to-use Kubernetes cluster.
However, this ease of use means that the subject of security in Kubernetes is often left for later, or even neglected. This exposes companies to significant risks.
In this talk, I'll show you step-by-step how to secure your Kubernetes cluster for greater peace of mind and reliability.
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Ramesh Iyer
In today's fast-changing business world, Companies that adapt and embrace new ideas often need help to keep up with the competition. However, fostering a culture of innovation takes much work. It takes vision, leadership and willingness to take risks in the right proportion. Sachin Dev Duggal, co-founder of Builder.ai, has perfected the art of this balance, creating a company culture where creativity and growth are nurtured at each stage.
UiPath Test Automation using UiPath Test Suite series, part 3DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 3. In this session, we will cover desktop automation along with UI automation.
Topics covered:
UI automation Introduction,
UI automation Sample
Desktop automation flow
Pradeep Chinnala, Senior Consultant Automation Developer @WonderBotz and UiPath MVP
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
GraphRAG is All You need? LLM & Knowledge GraphGuy Korland
Guy Korland, CEO and Co-founder of FalkorDB, will review two articles on the integration of language models with knowledge graphs.
1. Unifying Large Language Models and Knowledge Graphs: A Roadmap.
https://arxiv.org/abs/2306.08302
2. Microsoft Research's GraphRAG paper and a review paper on various uses of knowledge graphs:
https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/
The Art of the Pitch: WordPress Relationships and SalesLaura Byrne
Clients don’t know what they don’t know. What web solutions are right for them? How does WordPress come into the picture? How do you make sure you understand scope and timeline? What do you do if sometime changes?
All these questions and more will be explored as we talk about matching clients’ needs with what your agency offers without pulling teeth or pulling your hair out. Practical tips, and strategies for successful relationship building that leads to closing the deal.
Elevating Tactical DDD Patterns Through Object CalisthenicsDorra BARTAGUIZ
After immersing yourself in the blue book and its red counterpart, attending DDD-focused conferences, and applying tactical patterns, you're left with a crucial question: How do I ensure my design is effective? Tactical patterns within Domain-Driven Design (DDD) serve as guiding principles for creating clear and manageable domain models. However, achieving success with these patterns requires additional guidance. Interestingly, we've observed that a set of constraints initially designed for training purposes remarkably aligns with effective pattern implementation, offering a more ‘mechanical’ approach. Let's explore together how Object Calisthenics can elevate the design of your tactical DDD patterns, offering concrete help for those venturing into DDD for the first time!
6. Import Collections
1. Navigate to bit.ly/POSTCON2019WORKSHOP
2. Copy the first Collection link and open up the Postman app
3. Select the Import button at the top of the app.
4. Select Import From Link tab
5. Paste the URL into the field
6. Click Import
7. Repeat for the second link
7. Assumptions
This session assumes that
attendees:
● Are comfortable making Requests
in Postman
● Possess basic working knowledge
of JavaScript
● Have the Latest Postman Desktop
App Installed for your OS
10. What the Hell is API Testing?
● People generally think that API testing is a form of software testing
that you need to know about before getting started
● It is testing but in a different context
● You are still:
○ Using the same test skills and techniques but applying them
differently
○ Focused on mitigating risk
○ Providing information about the software under test
11. Why Write API Tests?
● Determine if the application under test meets expectations for
functionality, reliability, performance, and security
● Ensure consistent high quality as your application grows
● Critical component for automating testing – APIs are the primary
interface to application logic
● Tests at the API layer are less brittle and easier to maintain
● Most stable interface - GUI tests are not sufficient to validate all
functional paths of a multi-tier architecture
12. Scripts
• Postman contains a powerful runtime based on Node.js that allows
you to add dynamic behavior to requests and collections
• Allows you to write test suites, build requests that can contain
dynamic parameters, pass data between requests and more
• You can add JavaScript code to execute during 2 events in the flow:
• Before a request is sent to the server, under the Pre-request Script tab
• After a response is received, as a test script under the Tests tab
13. Execution Order of Scripts
• A Pre-request Script associated with a request will execute before the request
is sent
• A Test script associated with a request will execute after the request is sent
REQUEST
Pre-request script
REQUEST RESPONSE
REQUEST
test script
15. Pre-Request Scripts
• Snippets of code associated with a collection request that are executed
before the request is sent
• Example use cases:
• Including the timestamp in the request headers or
• Sending a random alphanumeric string in the URL parameters
• Can be added to a collection, a folder, or a single request within a collection
• Runs prior to each request in the respective collection or folder, allowing for
commonly used code to be executed prior to every request
16. Pre-Request Script Execution
For every request in a collection, scripts will execute in the following order:
• A pre-request script associated with a collection or folder will run prior to every
request in the respective collection or folder
REQUEST
Pre-request script
REQUEST
FOLDER
Pre-request script
COLLECTION
Pre-request script
18. 1. Click on the New button
2. Select Request
3. Enter a Request Name
4. Create Collection and enter name
Steps
5. Enter URL https://postman-echo.com/get
and hit Send
6. Click on Gear Icon
7. Click on the Add button
8. Enter a name and click Add
9. Select Environment from Dropdown
19. 10. Select the Pre-request Script tab
11. Type:
pm.environment.set("dateTime", new Date());
12. Select the Params tab
13. Enter “date” for the key
and “{{dateTime}}” for the value.
Steps
14. Hit Send
20. Test Scripts
● JavaScript code executed after the request is sent, allowing
access to the pm.response object.
● Tests run in a sandboxed environment, which is separate
from the execution environment of the app
● Commonly used snippets are listed next to the editor and are
a great way to build test cases
○ Select the snippet you want to add and the appropriate
code will populate in the test editor
21. For every request in a collection, scripts will execute in the following order:
• A test script associated with a collection or folder will run after every request in the
respective collection or folder
RESPONSE
COLLECTION
test script
FOLDER
test script
REQUEST
test script
Test Script Execution
23. 1. Select the Tests tab
2. Select Status Code: Code is 200 Snippet
3. Select Response Time is less than
200ms Snippet
4. Edit 200ms to 100ms
Steps
6. Select Test Results tab
5. Hit Send
24. 7. Highlight and Cut the Tests from Request
8. Save Changes to the Request
9. Edit the Collection
10. Select Tests tab
Steps
12. Hit Send
11. Paste Tests and click Update
28. Dynamic Variables
● Postman has dynamic variables that can be used in requests
● Values are randomly generated during the request/collection run
● Established variables {{$randomInt}}, {{$timestamp}} and
{{$guid}} have been included for many versions
● Random fake data can be generated using a subset of the FakerJS
functions
● Can used in the URL, Headers, Request Body and also within Mock
Server Examples
29. Chai Assertions
• Using the popular and well known Chai.js library
• Chai provides natural language assertions in an
expressive and readable style
• Chained together by a series of getters
• be / been / is / and / has / have / not
• Works with the pm.expect() function
• The assertion always starts with the .to getter
30. Built-In Libraries
• Lodash: JS utility library
• Moment: Parse, validate, manipulate, and display dates and
times in JavaScript.
• Cheerio: A fast, lean implementation of the core jQuery API
• Ajv: JSON schema validator.
• CryptoJS: Standard and secure cryptographic algorithms.
• xml2Json: Simple XML to JSON Convertor.
31. Postman Console
• Debugging scripts can be written under either
the Pre-request Script tab or the Tests tab,
with helpful messages logged in the Postman
Console.
• The Postman Console is analogous to a
browser’s version of Developer console,
except that it’s tuned for API development.
• If an API or API test is not behaving as you
expect, this would be the place where you will
go to deep dive while debugging the same.
● The Postman Console can be compared to a browser’s
Developer console, but tuned for API development
● When debug scripts are written under the Pre-request Script
or Test tabs, helpful messages will be logged in the Postman
Console
● If an API or API test is not behaving as expected, the console
will assist with debugging
32. What Does it Do?
• Logs the request that was sent, including all the underlying
request headers, status code etc.
• Logs the exact response sent by the server
• Displays what proxy and certificates were used for the
request
• Shows error logs from Test or Pre-request Scripts
• Allows the console.log() statement to be used from inside
sandbox
33. Console.log();
Your New
Best Friend
• JS method used to write
messages to the debug
console
• Can be used for debugging
your test scripts and
capturing key information
from the test runs
39. Collection Runner
• Collections are groups of requests that can be run together as a series of requests, against a corresponding
environment.
• Running a collection is useful when you want to automate API testing. When you run a collection, you send all
requests in your collection one after another.
• When you use scripts, you can build integration test suites, pass data between API requests, and build workflows
that mirror your actual use case of APIs.
● Collections are groups of requests that can be run together as a
series, against a corresponding environment
● Enables automation of API test collections
● When a collection is run, all requests in the collection will be sent
one after another
● Using scripts allows you to:
○ Build integration test suites
○ Pass data between API requests
○ Build workflows that mirror API use cases
41. Steps
1. Navigate to the Collections tab
2. Click on the Navigation arrow and hit Run
3. Click on the Run “collection name” button
4. Run Results
5. Click on request name
43. What is Newman?
● A globally installed NPM package
● A Collection Runner for Postman that runs directly from the
command line
● Easily integrates with continuous integration servers and build
systems
● Maintains feature parity with the Postman App
● Allows Collections to be run the way they are executed in the
Postman app collection runner
● Built as a library - can be extended and used flexibly
● Collection run reports can be generated using different
custom reporters
49. CI/CD • Newman can run on
popular CI/CD frameworks
such as Jenkins, Travis,
CircleCI and even Azure
(via VSTS).
• Provides a streamlined
way to run Newman in a
Docker container without
operating system
dependencies or
environment setup
55. Why Do We Create Reports?
Reports are generally created to communicate information to some
person, The type of report and the details about what it should contain,
will differ from person to person.
Things to consider when creating reports:
● The report's intended audience
● The report's purpose
● The type of information to be communicated
57. Standard Newman Reporters
CLI
This is the default reporter that comes with Newman and is the standard
output that you will see. There are a number of different configurable
options/cli arguments available to present that out in specific ways.
JUNIT
This reporter will create an XML file containing the all high level test
result data, this can be picked by CI tools like Jenkins to display a
graphical representation of the overall test coverage
66. Review
● Testing within Postman can be an effective way to give you confidence that
your API endpoints are returning the correct information without having to
manually confirm this on each request
● Postman is packed full of different helpers, libraries and utilities that can
enable you to create more complex test suites
● Automating a Collection within the App is super simple using the Built In
Runner
● You can use Newman to run your Collections from either the Command
Line or easily integrate into your CI systems
67. Recommended Resources
● Postman Community - https://community.getpostman.com
● Learning Centre - https://learning.getpostman.com
● GitHub Repo - https://github.com/postmanlabs/postman-app-support
● Support Portal - https://support.getpostman.com/hc
Trent
ca/linkedin.com/in/trentmccann
@Postman_Trent
Danny
uk/linkedin.com/in/dannydainton
@DannyDainton
Keep In Touch!