Consumer-driven Contract Testing using Postman

preview_player
Показать описание
I have gotten many questions regarding contract tests or consumer-driven contract tests in Postman but also how to integrate these tests in a CI/CD pipeline (I have shown an example with GitLab CI).

I decided to create a 30-minute tutorial to introduce you to this topic. I hope you find it useful.

Customers repository (including the CI pipeline in GitLab CI)

#contracttesting #postman

Bookmarks:

00:00:00 Welcome
00:00:49 Provider and Consumer
00:05:00 What is an API test?
00:10:00 What is a contract test?
00:13:05 Advantages of consumer-driven contract tests
00:14:44 Write contract test in Postman
00:24:47 API tests vs contract tests
00:28:04 Summary

___

// POSTMAN COMPLETE GUIDE ONLINE COURSE

👉 Want to learn more about Postman? Check my Postman online course.

Get it at a special price and help support this YouTube channel:

___

// I HAVE A QUESTION!

I do my best to answer all comments here on YouTube but I cannot make any guarantees.

If you have a question, it is best to ask your question on the Postman User Group on Facebook or on the Postman Community (links below).

If you have purchased the Postman Online Course, please use the Q&A section or send me a message on Udemy.

Please do not email me or contact me on other channels as I might not be able to answer. Sorry!

___

// I HAVE A VIDEO IDEA

Do you want me to create a video on a specific topic? Just fill out the form below:

___

// P L A Y L I S T S

___

// F R E E R E S O U R C E S

▸▸▸ DOWNLOAD the FREE Postman Quick Reference Guide

▸▸▸ JOIN the Postman User Group on Facebook

▸▸▸ The OFFICIAL Postman community forum

▸▸▸ 👉 Subscribe to the "Testing and automation with Valentine" newsletter for bi-weekly tutorials, tips, and news from the industry.

___

// YOUR SUPPORT ON PATREON MATTERS

If you enjoy this content, help me create more like this. Consider supporting me on Patreon.

___

// IMPRINT

---
Рекомендации по теме
Комментарии
Автор

👉 Want to learn more about Postman? Check my complete Postman online course.

vdespa
Автор

Interesting to know and see how we can use postman for contract testing, a useful tutorial, thank you, Valentin.

selvaraj
Автор

I am a big fan of you .. Valentin :) You make things so simple !!

manisharya
Автор

Really good topic to do, thanks Valentin. Much appreciated.

CatherineKarena
Автор

Thank you for the explanation of this topic. I've been trying to figure out how to implement CDC tests in Postman all week. While the schema validation doesn't quite work for this purpose, Postman still seems to be a good tool for CDC tests. Personally, I was only using contract tests to enforce the documented schemas in the API spc as the provider.

josephgonzalez
Автор

Informative tutorial Valentine, thanks. Can the presentation be shared?

parasvora
Автор

Thanks Valentin that was a great video, however I have one question regarding changing the "firstName" typo. Can you elaborate as to what happens when the producer rectifies the typo ? Does the "consumer service" pipeline fail due to the contract ? and the producer has to collaborate with all the relevant consumers ?

modakthepuppy
Автор

Awesome content Valentin. If I have to try what you were showing in the demo (the CI part), is there a GitHub repository I could download or is there any course particularly covering what you were discussing in the CI pipeline, the whole 9-yards of Docker and Postman API tests as well as the Billing contract test from your demo. I'm very interested in trying it out. Thank you!

Irfan-kfhu
Автор

Great stuff Valentin!! Ask me a question: where do I find more materials about Consumer-driven Contract Testing using Postman?

ricardodemp
Автор

Please do spring cloud contract testing series

AlexanderHvastovich
Автор

What if the request modifies the status of the database? In Java Spring, I can mock the repository layer, but it seems that I can't do it this way. So, if I perform, for example, a POST request, I'm going to add data to my database every time I execute my tests, and I definitely don't want this. Is there a way to fix this issue?

luca_raveri
Автор

Thanks for this stuff. Just wanted to know if we can do it for POST/PUT or it is only for GET HTTP requests?

afzalaiet
Автор

@Valentin Despa
I am not sure if you already answered this question. But I tried doing exactly you did on this tutorial, but instead of java/gradle I did NestJS and stored in my gitlab repo registry. But for some reason, when I tried doing Docker inside Docker and run my test. I am getting Error Refused Connection, but in this video you did not got any error. Am I missing a step or something?

christopherlim
Автор

can you show us how to test api calls from certain websites using chrome on postman? so far i have learned to copy the information from certain api calls and duplicate it on the postman but its still confusing. can you give a quick walkthrough?

Zack-nivz
Автор

Can you please add assertions and validation test for same response in this example, because whole response is in array ' [ ] ' notation..so please help me to write validation of each and every parameters in the response body.
Thank you,

sumitsuryavanshi
Автор

Postman Contract Testing is free or paid?

AliRaza-nltf
Автор

Swagger was throwing me off as I was confusing it as an API of my Collection

anthonyc
Автор

What would then be the differences between API tests and provider-driven contract testing?

karahtar
Автор

I noticed a gay flag on your laptop 💻?

sn
join shbcf.ru