API Testing with Postman Workshop

Rate this content
Bookmark

In the ever-evolving landscape of software development, ensuring the reliability and functionality of APIs has become paramount. "API Testing with Postman" is a comprehensive workshop designed to equip participants with the knowledge and skills needed to excel in API testing using Postman, a powerful tool widely adopted by professionals in the field. This workshop delves into the fundamentals of API testing, progresses to advanced testing techniques, and explores automation, performance testing, and multi-protocol support, providing attendees with a holistic understanding of API testing with Postman.


1. Welcome to Postman

- Explaining the Postman User Interface (UI)

2. Workspace and Collections Collaboration

- Understanding Workspaces and their role in collaboration

- Exploring the concept of Collections for organizing and executing API requests

3. Introduction to API Testing

- Covering the basics of API testing and its significance

4. Variable Management

- Managing environment, global, and collection variables

- Utilizing scripting snippets for dynamic data

5. Building Testing Workflows

- Creating effective testing workflows for comprehensive testing

- Utilizing the Collection Runner for test execution

- Introduction to Postbot for automated testing

6. Advanced Testing

- Contract Testing for ensuring API contracts

- Using Mock Servers for effective testing

- Maximizing productivity with Collection/Workspace templates

- Integration Testing and Regression Testing strategies

7. Automation with Postman

- Leveraging the Postman CLI for automation

- Scheduled Runs for regular testing

- Integrating Postman into CI/CD pipelines

8. Performance Testing

- Demonstrating performance testing capabilities (showing the desktop client)

- Synchronizing tests with VS Code for streamlined development

9. Exploring Advanced Features - Working with Multiple Protocols: GraphQL, gRPC, and more


Join us for this workshop to unlock the full potential of Postman for API testing, streamline your testing processes, and enhance the quality and reliability of your software. Whether you're a beginner or an experienced tester, this workshop will equip you with the skills needed to excel in API testing with Postman.

FAQ

Postman is a versatile platform for API testing, simplifying each step of the API lifecycle and streamlining collaboration, allowing users to discover, evaluate, test, deploy, and observe APIs. It supports defining, developing, securing, and distributing APIs, making it an all-in-one solution for both API producers and consumers.

To get started with API testing in Postman, you can create a workspace and use available templates for API testing or create a blank workspace. You can then fork collections to your workspace to begin testing, using Postman's UI to navigate and utilize various testing tools and resources.

Advanced testing techniques in Postman include using environment and global variables for dynamic testing scenarios, setting up and utilizing scripts in pre-request and test stages, and leveraging the Postman Collection Runner and CLI for automated test suites and integrations.

Yes, Postman can be integrated with CI/CD pipelines using the Postman CLI, enabling teams to run collections automatically in different environments such as Jenkins, CircleCI, GitLab, and TravisCI. This allows for automated testing as part of the development process.

Postman offers several resources for learning more about its features and capabilities, including the Postman Learning Center, Postman Blogs, and Postman Intergalactic for live workshops and educational training. Additionally, the community forum and documentation provide extensive support.

Postbot is Postman's AI assistant that simplifies the creation of tests by using natural language processing to generate tests automatically. It helps users quickly add tests to requests, validate schemas, and even visualize API responses, enhancing productivity and testing accuracy.

Pooja Mistry
Pooja Mistry
48 min
20 Dec, 2023

Comments

Sign in or register to post your comment.

Video Summary and Transcription

This workshop on API testing with Postman covers a wide range of topics, including creating workspaces and collections, working with variables and dynamic data, testing syntax and methods, building workflows, automating testing with Postman CLI and Postbot, and advanced testing techniques. Postman provides extensive documentation, resources, and tools like Postbot for generating tests and documentation. The workshop also highlights the versatility of Postman in supporting various protocols and types of testing, such as contract testing, performance testing, and regression testing.

1. Introduction to API Testing with Postman

Short description:

Hello and welcome to this session about API testing with Postman. Today's session I'll be walking through a lot of different aspects of testing with Postman and hope to share some things that you might not be aware of. We'll talk about Postman's UI and how to get started with testing, learn advanced techniques, demo interesting features, and share additional resources. Postman is a versatile platform for API testing used by over 25 million people worldwide. It simplifies each step of the API life cycle and streamlines collaboration. You can work and create APIs faster, discover, evaluate, test, deploy, observe, define, develop, secure, and distribute APIs. We'll walk through the entire UI and get started with working with variables, understanding testing, advanced techniques, and automation.

Hello and welcome to this session about API testing with Postman. My name is Pooja Mistry. I'm a developer advocate and I'm excited to be sharing this workshop content with you. Today's session I'll be walking through a lot of different aspects of testing with Postman and hope to share some things that you might not be aware of.

So we'll be going through a workspace and collection and giving you a overall overview of Postman and some things you can do while testing when it comes to Postman. So just introducing myself. I've worked in the DevRel, DevAdvocacy space for about three years now and I'm excited to be educating others and sharing information specifically regarding to Postman.

So in today's agenda we'll be going through is we'll talk about Postman's UI and we'll kind of understand the terminology for those of you who are new to the platform. And we'll talk about how to get started with testing with Postman and learn some advanced testing techniques. And I'll be demoing some interesting features for you to kind of take a look at that you can get started on your testing journey. And then I'll be sharing a lot of additional Postman resources.

So essentially for those of you who are not familiar with Postman, Postman is a versatile platform for API testing and it's over used by over 25 million people worldwide. So if you're learn interested in learning a little bit more about Postman and its statistics, we have the Postman state of the API report which you can Google and you can get a lot more information on statistics around APIs and API development. So with Postman, Postman simplifies each step of the API life cycle and it streamlines collaboration so you can work and create APIs faster. It's an interface for both the producer and the consumer life cycle and it allows, you know, users to not only discover, evaluate, test, deploy, and observe, but they are also able to define and develop their APIs and secure them and distribute them accordingly. So it is trying to be this all-in-one life cycle and we'll walk through the entire UI and kind of how to get started with it. So essentially we are going to kind of get into things like working with variables, understand how testing works, learning some sort of advanced testing and automation techniques, building additional, and then I'll be sharing some additional Postman resources.

So to get started, feel free to take a look at this link where we'll be going through this workshop. So this is for I guess the TestJS summit that we were at previously, that is part of GitNation and we should be able to kind of go through Postman in that way. So I'm going to go ahead and get started and kind of show you what the Postman UI and the workspace looks like. So in this case, we are in this workspace and we have a public workspace. So within Postman, you can create different workspaces. Workspaces allow you to work and they're a template for you to get started. You can look at some of the templates that we have available. For example, you can always create a blank workspace, but if you're interested in some of our templates that we have available, if you're an API producer or an API tester, you may be interested in some of these templates. Like for example, this is a specific template associated to API testing. I'm going to go ahead and take a look and kind of show you this workspace, which is a public workspace. So this workspace, if I share the link with you all, you should have access to some of the collections that are available in this workspace to get started with. And the idea here is that you would like to go ahead and fork a collection to get started with in this specific workspace. So for example, since this is a public workspace, I might be interested in creating a, let's say I create a API testing workspace and call it API testing.

2. Creating Workspace and Forking Collection

Short description:

I'll create a workspace with a template and fork my first folder into my API workspace. This allows for collaboration and the ability to submit changes through pull requests. Forking enables working in our own environment for experiments and testing.

I can create that workspace, which it gives me access to my specific team members, whether that's my team or if it's personal or partner or public in that case. So I'll go ahead and create that workspace just so you know what it looks like to create a workspace with a template. And in a template workspace, we have some pre-created collections. Like for example, we have a collection for contract testing, integration testing. We have a collection to help you get started for writing basic tests, mocking data, performance testing, and then even regression testing. So we'll walk through some of these testing examples in this workspace, but for the most part, I'm going to go ahead and go back to my home page where my workspace exists. And I'll take a look at the workshop that we've created. And I'll go ahead and fork my first folder, which is an introduction to testers into my API workspace to get started with that workspace. So let me go ahead and create that fork and you can see that I'm able to then figure out which workspace I'd like to go ahead and fork that to. And I can always watch the original collection in the original workspace to get some more ideas on how to kind of to see if there's any changes. So for those of you who collaborate with your teams, this is very important because it allows one subject of truth, which is your main workspace that you work with. And then for just like how GitHub is created, you want to create a fork of that repository or a fork of that collection. And then if you want to submit any changes, you can always submit pull requests into a workspace similarly. So this is what allows for higher level of collaboration. So I'm going to go ahead and fork that collection and it should be able to you should see that I can once I create the fork in my API testing, it should be able to, you could see that that fork was created. So in this case, the reason why we wanted fork is to work in our own environment in case we want to do any experiments and testing. Since I own the original workspace, I will be able to send scripts and things like that through that. But since it's a public workspace, you would like need to fork to even send your requests.

Watch more workshops on topic

Designing Effective Tests With React Testing Library
React Summit 2023React Summit 2023
151 min
Designing Effective Tests With React Testing Library
Top Content
Featured Workshop
Josh Justice
Josh Justice
React Testing Library is a great framework for React component tests because there are a lot of questions it answers for you, so you don’t need to worry about those questions. But that doesn’t mean testing is easy. There are still a lot of questions you have to figure out for yourself: How many component tests should you write vs end-to-end tests or lower-level unit tests? How can you test a certain line of code that is tricky to test? And what in the world are you supposed to do about that persistent act() warning?
In this three-hour workshop we’ll introduce React Testing Library along with a mental model for how to think about designing your component tests. This mental model will help you see how to test each bit of logic, whether or not to mock dependencies, and will help improve the design of your components. You’ll walk away with the tools, techniques, and principles you need to implement low-cost, high-value component tests.
Table of contents- The different kinds of React application tests, and where component tests fit in- A mental model for thinking about the inputs and outputs of the components you test- Options for selecting DOM elements to verify and interact with them- The value of mocks and why they shouldn’t be avoided- The challenges with asynchrony in RTL tests and how to handle them
Prerequisites- Familiarity with building applications with React- Basic experience writing automated tests with Jest or another unit testing framework- You do not need any experience with React Testing Library- Machine setup: Node LTS, Yarn
How to Start With Cypress
TestJS Summit 2022TestJS Summit 2022
146 min
How to Start With Cypress
Featured WorkshopFree
Filip Hric
Filip Hric
The web has evolved. Finally, testing has also. Cypress is a modern testing tool that answers the testing needs of modern web applications. It has been gaining a lot of traction in the last couple of years, gaining worldwide popularity. If you have been waiting to learn Cypress, wait no more! Filip Hric will guide you through the first steps on how to start using Cypress and set up a project on your own. The good news is, learning Cypress is incredibly easy. You'll write your first test in no time, and then you'll discover how to write a full end-to-end test for a modern web application. You'll learn the core concepts like retry-ability. Discover how to work and interact with your application and learn how to combine API and UI tests. Throughout this whole workshop, we will write code and do practical exercises. You will leave with a hands-on experience that you can translate to your own project.
Detox 101: How to write stable end-to-end tests for your React Native application
React Summit 2022React Summit 2022
117 min
Detox 101: How to write stable end-to-end tests for your React Native application
Top Content
WorkshopFree
Yevheniia Hlovatska
Yevheniia Hlovatska
Compared to unit testing, end-to-end testing aims to interact with your application just like a real user. And as we all know it can be pretty challenging. Especially when we talk about Mobile applications.
Tests rely on many conditions and are considered to be slow and flaky. On the other hand - end-to-end tests can give the greatest confidence that your app is working. And if done right - can become an amazing tool for boosting developer velocity.
Detox is a gray-box end-to-end testing framework for mobile apps. Developed by Wix to solve the problem of slowness and flakiness and used by React Native itself as its E2E testing tool.
Join me on this workshop to learn how to make your mobile end-to-end tests with Detox rock.
Prerequisites- iOS/Android: MacOS Catalina or newer- Android only: Linux- Install before the workshop
Testing Web Applications Using Cypress
TestJS Summit - January, 2021TestJS Summit - January, 2021
173 min
Testing Web Applications Using Cypress
WorkshopFree
Gleb Bahmutov
Gleb Bahmutov
This workshop will teach you the basics of writing useful end-to-end tests using Cypress Test Runner.
We will cover writing tests, covering every application feature, structuring tests, intercepting network requests, and setting up the backend data.
Anyone who knows JavaScript programming language and has NPM installed would be able to follow along.
Best Practices for Writing and Debugging Cypress Tests
TestJS Summit 2023TestJS Summit 2023
148 min
Best Practices for Writing and Debugging Cypress Tests
Workshop
Filip Hric
Filip Hric
You probably know the story. You’ve created a couple of tests, and since you are using Cypress, you’ve done this pretty quickly. Seems like nothing is stopping you, but then – failed test. It wasn’t the app, wasn’t an error, the test was… flaky? Well yes. Test design is important no matter what tool you will use, Cypress included. The good news is that Cypress has a couple of tools behind its belt that can help you out. Join me on my workshop, where I’ll guide you away from the valley of anti-patterns into the fields of evergreen, stable tests. We’ll talk about common mistakes when writing your test as well as debug and unveil underlying problems. All with the goal of avoiding flakiness, and designing stable test.
Effective Detox Testing
React Advanced Conference 2023React Advanced Conference 2023
159 min
Effective Detox Testing
Workshop
Josh Justice
Josh Justice
So you’ve gotten Detox set up to test your React Native application. Good work! But you aren’t done yet: there are still a lot of questions you need to answer. How many tests do you write? When and where do you run them? How do you ensure there is test data available? What do you do about parts of your app that use mobile APIs that are difficult to automate? You could sink a lot of effort into these things—is the payoff worth it?
In this three-hour workshop we’ll address these questions by discussing how to integrate Detox into your development workflow. You’ll walk away with the skills and information you need to make Detox testing a natural and productive part of day-to-day development.
Table of contents:
- Deciding what to test with Detox vs React Native Testing Library vs manual testing- Setting up a fake API layer for testing- Getting Detox running on CI on GitHub Actions for free- Deciding how much of your app to test with Detox: a sliding scale- Fitting Detox into you local development workflow
Prerequisites
- Familiarity with building applications with React Native- Basic experience with Detox- Machine setup: a working React Native CLI development environment including either Xcode or Android Studio

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

Network Requests with Cypress
TestJS Summit 2021TestJS Summit 2021
33 min
Network Requests with Cypress
Top Content
Whether you're testing your UI or API, Cypress gives you all the tools needed to work with and manage network requests. This intermediate-level task demonstrates how to use the cy.request and cy.intercept commands to execute, spy on, and stub network requests while testing your application in the browser. Learn how the commands work as well as use cases for each, including best practices for testing and mocking your network requests.
Testing Pyramid Makes Little Sense, What We Can Use Instead
TestJS Summit 2021TestJS Summit 2021
38 min
Testing Pyramid Makes Little Sense, What We Can Use Instead
Top Content
Featured Video
Gleb Bahmutov
Roman Sandler
2 authors
The testing pyramid - the canonical shape of tests that defined what types of tests we need to write to make sure the app works - is ... obsolete. In this presentation, Roman Sandler and Gleb Bahmutov argue what the testing shape works better for today's web applications.
Full-Circle Testing With Cypress
TestJS Summit 2022TestJS Summit 2022
27 min
Full-Circle Testing With Cypress
Top Content
Cypress has taken the world by storm by brining an easy to use tool for end to end testing. It’s capabilities have proven to be be useful for creating stable tests for frontend applications. But end to end testing is just a small part of testing efforts. What about your API? What about your components? Well, in my talk I would like to show you how we can start with end-to-end tests, go deeper with component testing and then move up to testing our API, circ
Test Effective Development
TestJS Summit 2021TestJS Summit 2021
31 min
Test Effective Development
Top Content
Developers want to sleep tight knowing they didn't break production. Companies want to be efficient in order to meet their customer needs faster and to gain competitive advantage sooner. We ALL want to be cost effective... or shall I say... TEST EFFECTIVE!But how do we do that?Are the "unit" and "integration" terminology serves us right?Or is it time for a change? When should we use either strategy to maximize our "test effectiveness"?In this talk I'll show you a brand new way to think about cost effective testing with new strategies and new testing terms!It’s time to go DEEPER!
Playwright Test Runner
TestJS Summit 2021TestJS Summit 2021
25 min
Playwright Test Runner
Top Content
Everyone Can Easily Write Tests
TestJS Summit 2023TestJS Summit 2023
21 min
Everyone Can Easily Write Tests
Let’s take a look at how Playwright can help you get your end to end tests written with tools like Codegen that generate tests on user interaction. Let’s explore UI mode for a better developer experience and then go over some tips to make sure you don’t have flakey tests. Then let’s talk about how to get your tests up and running on CI, debugging on CI and scaling using shards.