What is Contract Testing in API automation + Demo (EA Weekly)

  Рет қаралды 36,839

Execute Automation

Execute Automation

Күн бұрын

In this EA Weekly video of our EA Weekly series, we will be discussing Contract testing with Pact and understand how to make sure API testing we are doing is done on both the consumer and provider end while it's otherwise called as TestDouble.
When to start automation testing and what to automate ?
*************************************************************
• When to start automati...
Pact
******
Pact is a contract testing tool. Contract testing is a way to ensure that services can communicate with each other. Without contract testing, the only way to know that services can communicate is by using expensive and brittle integration tests - docs.pact.io/
Contract Testing
----------------------------
martinfowler.com/bliki/Contra...
Udemy Course
---------------------------
The demo in this video is going to part of the course "API testing with RestSharp and Specflow in C#" available in Udemy - www.udemy.com/api-testing-wit...
EAWeekly series
----------------------------
• EA Weekly
Cypress Complete course
--------------------------------------------
www.udemy.com/e2e-cypress/
Selenium Framework development courses
----------------------------------------------------------------------
www.udemy.com/automation-fram...
www.udemy.com/framework-devel...
#executeautomation #udemy #cypress #selenium
For more articles and videos, please visit www.executeautomation.com

Пікірлер: 44
@paulfrischknecht3999
@paulfrischknecht3999 3 жыл бұрын
The exchange of the pact/contract files is the most trivial part of this. Changing the organization culture to produce contracts and for the dev teams to run them against their service is the harder part. The hardest part is getting the teams to communicate well. Indeed, contracts encode the understanding of each party formally and in a machine checkable way, which is always more precise than verbal or informal or formal-uncheckable communications/agreements.
@MrUmang40
@MrUmang40 4 жыл бұрын
Thank you so much......you are making a difference in other's lives....
@ExecuteAutomation
@ExecuteAutomation 4 жыл бұрын
Umang Bhatnagar Thank you Umang!
@sataneisen
@sataneisen 4 жыл бұрын
Thanks for this video, really good presintation, nice explanation.
@ExecuteAutomation
@ExecuteAutomation 4 жыл бұрын
Liza Kaufman Thank you Liza!
@lineuve
@lineuve Жыл бұрын
Excellent contents
@RakeshKumar-dj6jp
@RakeshKumar-dj6jp 3 жыл бұрын
nice to see you in video
@navaneethakrishnan9142
@navaneethakrishnan9142 4 жыл бұрын
can we use pact to test microservices that uses xml.. if yes can you please share any website links that explains this..
@BhargavMurari
@BhargavMurari 3 жыл бұрын
Hi Karthik, Comparing the JSON schema with API response body Structure and mandatory fields, types (json type response) is contract testing all about? Pact seems to be useful while developing the application but in System testing or integration testing phase, is it all about validation Shema Rules vs JSON response sent by application? Please let me know.. little confused here
@sushil1200
@sushil1200 4 жыл бұрын
Thanks for such nice video. Could you please share the Employee API?
@Boygadget
@Boygadget 4 жыл бұрын
Isn't this contract testing the same as testing the json schema of a response or request?...because if im expecting particular json structure to be returned then if it changes then my test will fail.
@Gaurav-S
@Gaurav-S 4 жыл бұрын
Thanks for making the video karthik, your videos are very educational. A small feedback: Maybe you should increase the font size of the code editor while recording as it is quite difficult to read the font. Thanks again!
@ExecuteAutomation
@ExecuteAutomation 4 жыл бұрын
Gaurav Singh Sure, will do, Thanks!
@healthypessimist1512
@healthypessimist1512 3 жыл бұрын
Thanks for the video, there are very few resources on this topic. There is only one thing I'm not clear on Imagine I'm the Consumer (The QA Team). I need to write ConsumerPactTest. What is my source of truth to write the tests? The documentation?
@worglord
@worglord 4 жыл бұрын
Thanks for the video, I like the fact that both Consumer and Provider tests are mentioned and showed within a demo. I feedback tho, I personally disagree with calling Contract tests "unit tests". Consumer tests use a mocked local API from Pact to create the contract files, while Provider tests use the actual API. Both are outside of the scope of a Unit. I'd call them integration tests rather.
@Cold_Shadows
@Cold_Shadows Жыл бұрын
Thank you for the video! In a world where we have contract tests to verify the contract between the consumer/provider for a number of services endpoints with the real service being used for verification, what other tests do we need to write from an integration testing perspective? Is there something that the contract tests are missing that we want other coverage around? Do we reduce the number of necessary tests we need from an integration perspective by creating contract tests instead?
@EYM-ONLINE
@EYM-ONLINE 3 жыл бұрын
I fail to understand what is the difference between end-to-end API response schema validation and using pact? It seems that end to end tests will run the same job anyway - so why do the test twice?
@SimranKaur-ew1uk
@SimranKaur-ew1uk 3 жыл бұрын
I am not exactly able to understand how is consumer-driven contract testing different from behavior-driven testing? what is the pact server doing for consumer-driven contract testing that we have not been doing by specifying the expected behavior of the provider service in the consumer and verifying if the response from the provider matches the expectation in the consumer?
@omarsaddaoui4310
@omarsaddaoui4310 3 жыл бұрын
Hello, Thanks for this video, this example is sur Github ?
@masterlup
@masterlup 4 жыл бұрын
Subscribed
@afzalaiet
@afzalaiet 3 жыл бұрын
Thanks for this stuff. Just wanted to know if we can do it for POST/PUT or it is only for GET HTTP requests?
@ExecuteAutomation
@ExecuteAutomation 3 жыл бұрын
Nope it’s for POST/PUT/PATCH and all http request you can think off
@abdulraheem2874
@abdulraheem2874 4 жыл бұрын
Good content, do we need a separate server to install PACT? is any .NET mandatory?
@poojashrikotan8118
@poojashrikotan8118 7 ай бұрын
This Video is really helpful to understand contract testing with PACT, but in real case if I do not want to use Pact Broken ,still can we implement Contract testing(Without PACT)?.If I get a answer will be very useful.
@luisarmandobr
@luisarmandobr Жыл бұрын
Hello, I can't find information about contract testing in DART
@trypodstudios4238
@trypodstudios4238 4 жыл бұрын
take this as a suggestion, when you explain something little complicated try using animated elements inbetween (like ted ed animation videos). that would be better for understanding more than one's body language
@ExecuteAutomation
@ExecuteAutomation 4 жыл бұрын
trypod studios Thanks friend, I understand, I don’t have those animation knowledge frankly, as I’m only person doing everything, to cover up, I have video demo in the video ! But thanks for your friendly suggestions, really appreciate! Thanks Karthik KK
@prathyushap9249
@prathyushap9249 4 жыл бұрын
Hi, Any idea on pact testing with java and gradle? Have gone through some git links but is very confusing.
@ankushmonga7068
@ankushmonga7068 4 жыл бұрын
Can you please the provide the code of Pact Testing in you github portal?
@ExecuteAutomation
@ExecuteAutomation 4 жыл бұрын
It’s available here in this course www.udemy.com/course/api-testing-with-restsharp-and-specflow-in-csharp/ Thanks
@ruichen9254
@ruichen9254 4 жыл бұрын
hard to understand your accent,but the content is really good.
@sataneisen
@sataneisen 4 жыл бұрын
It's not really "hard-understandable" Asian accent, believe me)
@GG-uz8us
@GG-uz8us Жыл бұрын
So the contract is generated with real production data?
@ExecuteAutomation
@ExecuteAutomation Жыл бұрын
Test data, I don’t think you will ever do testing in production
@GG-uz8us
@GG-uz8us Жыл бұрын
@@ExecuteAutomation In reality, sometimes test data is not the same as production data. Believe it or not, we don't have test environment. In such a case, is it still possible to do contract testing?
@MrUmang40
@MrUmang40 4 жыл бұрын
How is it different than normal API testing.....
@gitpub5198
@gitpub5198 4 жыл бұрын
very different
@gitpub5198
@gitpub5198 4 жыл бұрын
Hi Karthik, with an experienced tutor like you, its expected that you have legible font size when recording your tutorials. Your font size has 0 legibility on a mobile screen. Even on a 17 inch monitor I had to play it on 1080p on full screen to understand whats going on. This is a rookie mistake that new online tutors make. But after 100s of tutorial videos, you should be knowing by now that font size has to be atleast 16-18 for students to follow along.
@dfence1985
@dfence1985 3 жыл бұрын
Particular.
@StefanovMilen
@StefanovMilen 3 жыл бұрын
This particular video has a vary particular presenter who particularly annoyingly uses the word "particular". Otherwise nice video, thanks! :)
@jatinchopra2041
@jatinchopra2041 3 жыл бұрын
English is not his first language. Let's respect that instead of coming from your entitled white perspective. Let's encourage a habit of thanking him for sharing knowledge. You are more than welcome to watch something else if that's "particularly" better. You cam here for a reason my friend.
@potnurunaveen
@potnurunaveen Жыл бұрын
He tried his level best to educate others. I definitely liked this video. Hope you understand.
What is an API Gateway?
10:19
IBM Technology
Рет қаралды 299 М.
Inside Out 2: Who is the strongest? Joy vs Envy vs Anger #shorts #animation
00:22
DEFINITELY NOT HAPPENING ON MY WATCH! 😒
00:12
Laro Benz
Рет қаралды 62 МЛН
Sigma girl and soap bubbles by Secret Vlog
00:37
Secret Vlog
Рет қаралды 12 МЛН
Rest API - Best Practices - Design
15:50
High-Performance Programming
Рет қаралды 102 М.
TestNG Framework- Selenium Tutorial Part-1
1:03:17
Naveen AutomationLabs
Рет қаралды 747 М.
tRPC, gRPC, GraphQL or REST: when to use what?
10:46
Software Developer Diaries
Рет қаралды 75 М.
What are microservices really all about? - Microservices Basics Tutorial
15:12
Playwright Beginner Tutorial 4 | How to write 1st Test
24:54
Automation Step by Step
Рет қаралды 87 М.
How does eBay utilize Contract Testing for their Microservices?
11:29
Software Developer Diaries
Рет қаралды 4 М.
Difference Between REST API vs Web API vs SOAP API Explained
7:24
Learn with Whiteboard
Рет қаралды 174 М.
What is Scrum? | Agile
9:47
Telusko
Рет қаралды 1 МЛН
REST API and OpenAPI: It’s Not an Either/Or Question
9:17
IBM Technology
Рет қаралды 205 М.
OAuth 2.0 & OpenID Connect (OIDC): Technical Overview
16:19
VMware End-User Computing
Рет қаралды 154 М.
Inside Out 2: Who is the strongest? Joy vs Envy vs Anger #shorts #animation
00:22