Introduction To API Contract Testing With Pact

Learn how Contract testing with Pact can improve the integrations between APIs

WHEN

-
WHAT

99 Minute Workshop

WHERE

Online

COST
Pro Membership is required for this event.

What's Being Covered

Learning outcomes Lewis will cover

After this event you should be able to do the following:

  • Understand what contract testing is
  • Identify key differences between contract tests and integration tests
  • Run simple consumer driven contract test
Read full session description ->

Meet Your Speaker

Lewis Prescott
QA LEAD

I'm an experienced Software Developer in Test. Working in UI, API, Contract and Unit Testing using frameworks such as Cypress, NUnit, RestSharp, Supertest and Jest. Working for clients such as ASOS, Zava and Cancer Research UK. My approach is to pair with developers using tech stacks .Net Core, React, Azure.

The times below are for

Want to take your API testing to the next level? Want to deploy micro-services with more confidence and move to continuous deployment? Then you are in the right place, contract testing is for you.

Ask yourself these questions:

  1. Are your integration tests slow and provide feedback too late causing delays to your release?
  2. Do your integration tests fail due to environment and data issues?
  3. Does changes to other teams API service cause your tests to fail?

Some of the benefits you can gain from contract testing:

  1. Run your API contracts before an integration environment is available.
  2. Run your API contracts in your pipeline as part of the build.
  3. Involve developers in your API testing with API Contract testing

In this session you will learn the fundamentals of contract testing as well as how to implement consumer driven contract testing with Pact & Pactflow. Contract testing can be applied to API or messaging services, allowing you to test any integration point in isolation (https://docs.pact.io/#what-is-contract-testing). This technique is ideal for delivering services within a microservice architecture confidently, for example an API client communicating with a web front-end.

Introduce API contract testing to your test suite to:

  • Open communication between siloed microservices
  • Faster feedback from API changes - Less interruption from integration issues
  • Visualise consumer led scenarios of how they use the API
  • API Versioning made easy to improve backwards compatibility

Takeaways

  • Understand what contract testing is
  • Identify key differences between contract tests and integration tests
  • Run simple consumer driven contract test

99 Minute Workshops

Short Digestable Live Online Workshops

Live and Instructor-led

All our 99-Minute Workshops are hosted live and led by an instructor.

Short and Targeted

These workshops are a max of two hours long which means they can easy be fit into your busy week. The short time also means they are targeted on a few learning outcomes.

Learn with Others

Connect and learn with other community members during these live online testing workshops.

Available with Pro Membership

All our 99-Minute Workshops are available with Pro Membership, you can attend as many as you like. We also do the odd free workshop with our partners.

Frequently Asked Questions

Are the Workshops Recorded?

Our 99-minute workshops are designed to be attended live. If you can’t make the scheduled time, we will add highlights of the workshop in the future once the workshops are complete.